Skip to content

fix: Add conditional compilation for OpenCL 2.0 compatibility #15383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baonudesifeizhai
Copy link

  • Add #ifdef CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT check
  • Fixes compilation error when targeting OpenCL 2.0
  • CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT was introduced in OpenCL 3.0
  • Maintains backward compatibility with OpenCL 3.0+ devices
  • Resolves issue Compile bug: Can't compile with opencl 2.0 #15368

Make sure to read the contributing guidelines before submitting a PR

- Add #ifdef CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT check
- Fixes compilation error when targeting OpenCL 2.0
- CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT was introduced in OpenCL 3.0
- Maintains backward compatibility with OpenCL 3.0+ devices
- Resolves issue ggml-org#15368
@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend labels Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant