Skip to content

[SYCL][PI][OpenCL] unhelpful piProgramCreate error code if extension not supported #738

Open
@bjoernknafla

Description

@bjoernknafla

The piProgramCreate function in pi_opencl.cpp checks late in its execution if a device supports the OpenCL cl_khr_il_program extension. If the check fails it returns a CL_INVALID_CONTEXT equivalent PI error code.
This error code seems to indicate that the context is bad and does not convey that a device in the context is missing an extension or is not an OpenCL 2.x device.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions