Skip to content

Feature/opencl#2610

Closed
gmeeker wants to merge 16 commits intoKhronosGroup:mainfrom
gmeeker:feature/opencl
Closed

Feature/opencl#2610
gmeeker wants to merge 16 commits intoKhronosGroup:mainfrom
gmeeker:feature/opencl

Conversation

@gmeeker
Copy link
Copy Markdown

@gmeeker gmeeker commented Mar 17, 2026

Implements the OpenCL side of #1602 (no CUDA support) and validates with clang. #1602 is pretty old so I'm curious if there's still interest in this, but I need OpenCL/CUDA and support for legacy reasons. While this backend is smaller due to being compute only, it requires some changes in spirv_glsl to deal with OpenCL being a C-based language. The tests have mostly been copied from MSL, with more tests to cover subgroup emulation. Nvidia and AMD never fully implemented the subgroup extensions this more complicated emulation is necessary.

Please let me know if you think this would be a useful backend and if you have any thoughts about the design. I'm looking at CUDA as well.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 17, 2026

CLA assistant check
All committers have signed the CLA.

@HansKristian-Work
Copy link
Copy Markdown
Contributor

OpenCL support has come up before but it was rejected. There is absolutely no bandwidth to take on another backend. And seeing a 40 ksloc+ PR dumped on me without any prior discussion is absolutely not a great first impression.

@gmeeker
Copy link
Copy Markdown
Author

gmeeker commented Apr 21, 2026

Thanks, I understand. We will go in a different direction.

@gmeeker gmeeker closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants