Can I run Cuda or OpenCl on Intel processor graphics I7 (3rd or 4rd generation)

22,738

Solution 1

As @Robert Crovella said you cannot run CUDA on Intel GPU/CPU. Where it comes to OpenCL you have few choices:

  1. Intel OpenCL Driver for Intel GPU and CPU
  2. Open Source Beignet for Intel GPU
  3. 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)

Share:
22,738
Azil
Author by

Azil

Updated on July 22, 2022

Comments

  • Azil
    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):

    Can i run CUDA on Intel

    GPU Programming, CUDA or OpenCL

    1. Can I run cuda code on Intel processor graphics ?
    2. Can I run OpenCl code on Intel processor graphics ?
    3. If I can run Cuda & OpenCl code on Intel processor graphics, which is better ?
  • Azil
    Azil almost 9 years
    Just to be sure, all of the 3 run on the gpu which locates on the Intel processor ?
  • doqtor
    doqtor almost 9 years
    No, only the first 2 (Intel official and Beignet). AMD APP SDK on CPU only.
  • Dithermaster
    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
    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
    Dithermaster almost 9 years
    Sure, but he was asking about Intel GPU, not CPU.
  • Z boson
    Z boson over 8 years
    You answer is misleading. Beignet is only for the GPU.
  • Anderson Green
    Anderson Green almost 4 years
    Is the Coriander compiler still being maintained? I found a more recent compiler (HIP) that was developed for the same purpose.
  • Hugh Perkins
    Hugh Perkins over 3 years
    HIP is AMD-specific. Coriander aims to be portable across OpenCL 1.2 devices.
  • morgwai
    morgwai over 2 years
    for 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
    morgwai over 2 years
    beignet seems no longer supported: last release in 2017