Skip to content

How OpenCL is Different from gpgpu-rs #11

Answered by UpsettingBoy
RahulDas-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Let me answer you per question :). I think you are mixing some terms, I recommend you to start reading 4. and the paragraph bellow.

  1. More or less. OpenCL can be executed on accelerators other than GPUs such as FPGAs, CPUs etc. gpgpu-rs only runs on GPUs since it's using wgpu as backend, which use dx12, metal and vulkan. The main problem is that OpenCL GPU programs, writen in OpenCL C, cannot be directly executed with any of the graphics backends mentioned above (vulkan, ...) because they are different. IIRC Google is working on a OpenCL C -> SpirV compiler.
  2. You are correct. OpenCL requires a driver (sometimes not easy to install). Using graphics only requires the driver of the GPU, so usi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RahulDas-dev
Comment options

Answer selected by RahulDas-dev
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