You are not logged in.

#1 2024-03-28 20:28:27

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

[SOLVED] Install OpenCL with Intel iGPU i915

I have Intel UHD Graphics (CML GT2) and I'm trying to make OpenCL work on the GPU (it works on the CPU).
I tried the various options in the guide and non worked for me.

clinfo returns the CPU:

# clinfo -l
Platform #0: Intel(R) CPU Runtime for OpenCL(TM) Applications
 `-- Device #0: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz

The ICD I have in /etc/OpenCL/vendors/:

# pacman -Qo /etc/OpenCL/vendors*                                                                                                                [0]
/etc/OpenCL/vendors/ is owned by intel-compute-runtime 23.48.27912.11-1
/etc/OpenCL/vendors/ is owned by intel-opencl-runtime 1:18.1.0.015-3

Package installed:

# pacman -Qs 'opencl|intel|runtime'                                                                                                              [0]
local/clinfo 3.0.23.01.25-1
    Simple OpenCL application that enumerates all available platform and device properties
local/intel-compute-runtime 23.48.27912.11-1
    Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver
local/intel-gpu-tools 1.27-2
    Tools for development and testing of the Intel DRM driver
local/intel-graphics-compiler-bin 1:1.0.15985.7-1
    Intel Graphics Compiler for OpenCL (pre-compiled binaries)
local/intel-media-driver 24.1.4-1
    Intel Media Driver for VAAPI — Broadwell+ iGPUs
local/intel-opencl-runtime 1:18.1.0.015-3
    OpenCL runtime for Intel Core and Xeon processors
local/libmfx 23.2.2-2
    Intel Media SDK dispatcher library
local/ocl-icd 2.3.2-1
    OpenCL ICD Bindings
local/onetbb 2021.11.0-1
    High level abstract threading library (oneAPI Threading Building Blocks)
local/opencl-headers 2:2023.04.17-2
    OpenCL (Open Computing Language) header files
local/vulkan-intel 1:24.0.3-2
    Open-source Vulkan driver for Intel GPUs

Am I missing a package?

Last edited by impossibleveins23 (2024-03-30 18:18:35)


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#2 2024-03-28 21:43:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,170

Re: [SOLVED] Install OpenCL with Intel iGPU i915

Pretty sure that output would look different if you were to actually run in software. I'd assume this looks like it's supposed to look... but don't have access to an intel cpu/gpu right now to verify. Check intel_gpu_top on whether compute is getting used when making use of it

Offline

#3 2024-03-29 18:06:06

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: [SOLVED] Install OpenCL with Intel iGPU i915

Thanks.
I checked and it doesn't affect intel_top_gpu while the effect on the CPUs is significant.

AFAICT the full clinfo shows it's a CPU (property: Device Type):

# clinfo
Number of platforms                               1
  Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications
  Platform Vendor                                 Intel(R) Corporation
  Platform Version                                OpenCL 2.1 LINUX
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint 
  Platform Extensions function suffix             INTEL
  Platform Host timer resolution                  1ns

  Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications
Number of devices                                 1
  Device Name                                     Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  Device Vendor                                   Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 2.1 (Build 0)
  Driver Version                                  18.1.0.0920
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     CPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  Max clock frequency                             1800MHz
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     by counts, equally, by names (Intel)
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             8192x8192x8192
  Max work group size                             8192
  Preferred work group size multiple (kernel)     128
  Max sub-groups per work group                   1
  Preferred / native vector sizes                 

I'm trying to use hashcat which allows you to state the "Device Type". And when stating GPU it says there isn't a device available.
AFAIU I'm missing the icd file pointing to the lib (and the lib?).


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#4 2024-03-29 19:29:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,170

Re: [SOLVED] Install OpenCL with Intel iGPU i915

https://wiki.archlinux.org/title/GPGPU#Intel

Suggests the only thing you need for your GPU is intel-compute-runtime , maybe get rid of the potentially conflicting intel-graphics-compiler-bin and intel-opencl-runtime

Offline

#5 2024-03-30 01:35:33

limestrike
Member
Registered: 2024-03-30
Posts: 1

Re: [SOLVED] Install OpenCL with Intel iGPU i915

I also have this problem, and in my case I only have `intel-compute-runtime` installed. `clinfo` shows no platforms. If I install `intel-opencl-runtime` then `clinfo` does list a CPU-based platform, like the output shown by OP.

Seems the GPGPU page needs updating. Not sure what to try next.

Last edited by limestrike (2024-03-30 01:36:02)

Offline

#6 2024-03-30 11:38:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,170

Re: [SOLVED] Install OpenCL with Intel iGPU i915

If anything id rather opt for the mesa rusticl package

https://github.com/intel/compute-runtim … plications suggest a soft-dep on ocl-icd, is that installed?

And by logical extension, did you see https://wiki.archlinux.org/title/GPGPU# … OpenCL.so) ?

Last edited by V1del (2024-03-30 11:40:23)

Offline

#7 2024-03-30 18:17:55

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: [SOLVED] Install OpenCL with Intel iGPU i915

I added both libs, and run ldconfig, and now I can see the GPU:

# cat /etc/ld.so.conf.d/00-usrlib.conf
/usr/lib
/usr/lib/intel-opencl/libigdrcl.so

clinfo -l looks like this:

# clinfo -l      
Platform #0: Intel(R) OpenCL Graphics
 `-- Device #0: Intel(R) UHD Graphics
Platform #1: Intel(R) CPU Runtime for OpenCL(TM) Applications
 `-- Device #0: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz

Thanks for the help smile

Last edited by impossibleveins23 (2024-03-30 18:20:00)


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#8 2024-11-18 10:34:49

srajan0149
Member
Registered: 2024-11-16
Posts: 1

Re: [SOLVED] Install OpenCL with Intel iGPU i915

I do have similar a problem with my integrated gpu Intel Jasperlake (Gen11).

#clinfo
Number of platforms                               0

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.2
  ICD loader Profile                              OpenCL 3.0

ICD vendors:

$pacman -Qo /etc/OpenCL/vendors/*        
/etc/OpenCL/vendors/intel.icd is owned by intel-compute-runtime 24.39.31294.12-1

Packages:

$pacman -Qs 'opencl|intel|runtime'
local/boost-libs 1.86.0-3
    Free peer-reviewed portable C++ source libraries (runtime libraries)
local/clinfo 3.0.23.01.25-1
    Simple OpenCL application that enumerates all available platform and device properties
local/intel-compute-runtime 24.39.31294.12-1
    Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver
local/intel-gmmlib 22.5.2-1
    Intel Graphics Memory Management Library
local/intel-gpu-tools 1.29-1
    Tools for development and testing of the Intel DRM driver
local/intel-graphics-compiler 1:1.0.17791.9-1
    Intel Graphics Compiler for OpenCL
local/intel-ucode 20241112-1
    Microcode update files for Intel CPUs
local/libclc 18.1.8-1
    Library requirements of the OpenCL C programming language
local/llvm-libs 18.1.8-4
    LLVM runtime libraries
local/ocl-icd 2.3.2-2
    OpenCL ICD Bindings
local/onetbb 2022.0.0-1
    High level abstract threading library (oneAPI Threading Building Blocks)
... (some unrelated packages like vim, neovim...)

I tried the fixes above said, but it just did not show up anything.
I'm not sure even if opencl supports this gpu.

Offline

#9 2024-11-18 10:44:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] Install OpenCL with Intel iGPU i915

Please start  a new thread where you include the following answers/outputs

#clinfo

Did you run clinfo as root or is that  a typo ?
If as root, re-run as normal user.

Post outputs of

$ pacman -Qi libclc
$ pacman -Qi onetbb
$ lspci -k

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#10 2024-11-18 10:50:53

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 148

Re: [SOLVED] Install OpenCL with Intel iGPU i915

And try to downgrade intel-compute-runtime (current latest: 24.39.31294.12-1 didn't work but for: 24.35.30872.22-2 does).


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

#11 2024-11-18 22:03:18

Crouze
Member
Registered: 2017-10-04
Posts: 13

Re: [SOLVED] Install OpenCL with Intel iGPU i915

impossibleveins23 wrote:

And try to downgrade intel-compute-runtime (current latest: 24.39.31294.12-1 didn't work but for: 24.35.30872.22-2 does).

Indeed. As it happens I scratched my head over this for several hours today, until I found your suggestion, and subsequently https://gitlab.archlinux.org/archlinux/ … -/issues/3.

This is probably affecting more people, that's why I'm posting this. I guess we'll need to wait for a legacy package to appear and in the mean time revert to, and stay on 24.35.

Thanks, I'll sleep better tonight!

Offline

Board footer

Powered by FluxBB