Can I run Cuda or OpenCl on Intel processor graphics I7 (3rd or 4rd generation)
Solution 1
As @Robert Crovella said you cannot run CUDA on Intel GPU/CPU. Where it comes to OpenCL you have few choices:
- Intel OpenCL Driver for Intel GPU and CPU
- Open Source Beignet for Intel GPU
- AMD APP SDK which can be run on Intel CPU
I cannot say which one will be best for Intel GPU on Linux. I think Beignet was first to support Intel GPU then official Intel drivers appeared. For Intel CPU on Linux I use AMD APP SDK.
Solution 2
You can now :-) Using: coriander, which is an NVIDIA® CUDA™ compiler for OpenCL 1.2 GPUs (full disclosure: I'm the author)
Azil
Updated on July 22, 2022Comments
-
Azil almost 2 years
I'm developing on SBC (which have Intel I7 3ed or 4ed, and doesn't have external GPU) I'm using linux. I want to take the advantage of Intel processor graphics . I thought to learn developing with Cuda or OpenCl. I read some old posts (several years ago) (and I'm not sure there is a better technology now):
GPU Programming, CUDA or OpenCL
- Can I run cuda code on Intel processor graphics ?
- Can I run OpenCl code on Intel processor graphics ?
- If I can run Cuda & OpenCl code on Intel processor graphics, which is better ?
-
Azil almost 9 yearsJust to be sure, all of the 3 run on the gpu which locates on the Intel processor ?
-
doqtor almost 9 yearsNo, only the first 2 (Intel official and Beignet). AMD APP SDK on CPU only.
-
Dithermaster almost 9 years(1) and (3) are identical; they both use the OpenCL API, just using a different SDK package. The performance will be identical because the underlying Intel integrated graphics OpenCL GPU driver is the same.
-
doqtor almost 9 years@Dithermaster Yes they are identical in a sense that you can run both on Intel GPU provided you have installed GPU driver. But if (1) is installed then (3) is not really needed - (1) has to be installed with the whole Intel Media Server Studio which already contains OpenCL SDK. I mentioned (3) to say that installed alone it is capable of running OpenCL on Intel CPU.
-
Dithermaster almost 9 yearsSure, but he was asking about Intel GPU, not CPU.
-
Z boson over 8 yearsYou answer is misleading. Beignet is only for the GPU.
-
Anderson Green almost 4 yearsIs the Coriander compiler still being maintained? I found a more recent compiler (HIP) that was developed for the same purpose.
-
Hugh Perkins over 3 yearsHIP is AMD-specific. Coriander aims to be portable across OpenCL 1.2 devices.
-
morgwai over 2 yearsfor lazy folks here is the link to the github repo of the intel openCL driver with installation instructions: github.com/intel/compute-runtime#installation-options
-
morgwai over 2 yearsbeignet seems no longer supported: last release in 2017