intel / intel/llvm

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

Open
#738 3 comments 0 reactions 0 assignees View on GitHub
confirmed enhancement good first issue
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

The `piProgramCreate` function in [pi_opencl.cpp](https://github.com/intel/llvm/blob/5b9fd3ca018111046b471e7461d1a0ee46604d3a/sycl/plugins/opencl/pi_opencl.cpp#L516) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.