Skip to content

OpenCL backend on Nvidia GPU #4838

Answered by Naghasan
Luigi-Crisci asked this question in Q&A
Discussion options

You must be logged in to vote

a TL;DR answer: you can't use Nvidia's OpenCL with DPC++.

AFAIK it only supports OpenCL 1.2. You would need a OpenCL version that is at least 2.0 or 2.1 with DPC++.
Plus you would need to compile kernels to the "opencl flavor" of PTX, which isn't supported by DPC++ (you would need to add support in the clang driver, clang codegen and the SPIR-V binding providied by libclc).

I want to run a SYCL application using the OpenCL backend on an Nvidia GPU (Tesla V100)

Out of curiosity, why would want to do that ? Nvidia's OpenCL is known to have poor performance compared to CUDA. DPC++ rely on CUDA to execute SYCL kernels, and if you take POCL, they do also rely on the CUDA api to run OpenCL ke…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Luigi-Crisci
Comment options

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