Skip to content

Is it possible to use OpenCL backend on AMD GPUs? #9388

Answered by AlexeySachkov
biergaizi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @biergaizi,

Is the OpenCL backend still usable in today's DPC++? Or has it already been deprecated?

Yes, OpenCL is still one of the supported backends by this SYCL implementation and I haven't heard about any plans to deprecate it.

If I have a AMD GPU with OpenCL 2.1, is it possible to run DPC++ code without ROCm HIP?

Yes, it should be possible. Strictly speaking, you don't even need OpenCL 2.1, but you need support for SPIR-V. It could also be achieved by supporting cl_khr_il_program by OpenCL runtimes of an older version or it could be OpenCL 3.0 which returns SPIR-V through CL_DEVICE_IL_VERSION (or other similar queries).

At DPC++ side, you would need to compile with spir64 targ…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@al42and
Comment options

@al42and
Comment options

@biergaizi
Comment options

@biergaizi
Comment options

@biergaizi
Comment options

Answer selected by biergaizi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants