Which OpenCL driver should I use?

Hi guys.

I am lost which opencl-driver use. The options are:

  1. intel-compute-runtime 2) intel-oneapi-compiler-shared-runtime 3) opencl-mesa 4) opencl-nvidia 5) opencl-nvidia-390xx 6) opencl-nvidia-470xx 7) opencl-nvidia-580xx 8) rocm-opencl-runtime

I intend to keep usingo only UHD Graphics 620:

inxi -G
Graphics:
  Device-1: Intel Kaby Lake-R GT2 [UHD Graphics 620] driver: i915 v: kernel
  Device-2: NVIDIA GP108M [GeForce MX150] driver: N/A
  Device-3: Quanta HD WebCam driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.23 with: Xwayland v: 24.1.12 driver: X:
    loaded: intel dri: i965 gpu: i915 resolution: 1600x900~60Hz
  API: EGL v: 1.5 drivers: iris,swrast platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 vendor: intel mesa v: 26.1.2-arch1.2 renderer: Mesa
    Intel UHD Graphics 620 (KBL GT2)
  Info: Tools: api: clinfo, eglinfo, glxinfo x11: xdpyinfo, xprop, xrandr

I cannot answer the question but please use code formatting for code (the <> button). See how much better/readable it looks now?

p.s. if you only use the intel card, will be one of the first three. Very probably the first one, but i cannot guarantee. Alternatively the mesa. Those would be my bets.

1 Like

kind of query that is best concisely explained in archwiki. FYI: General-purpose computing on graphics processing units - ArchWiki

Then use the first one:

1) intel-compute-runtime

Many implementations of OpenCL can use GPU hardware acceleration, but if you don’t use it then it doesn’t matter.

On my laptop I also use envycontrol to put my dGPU to sleep. (Big power savings, unfortunately I have an Nvidia dGPU as well. ) Available in AUR.

1 Like

For Kaby Lake, your best bet would be beignet or intel-opencl, both of which are in the AUR. Intel compute runtime requires Rocket Lake or newer. opencl-mesa should also work.

2 Likes