You are not logged in.

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

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

[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: 22,191

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: 129

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: 22,191

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: 22,191

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: 129

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

Board footer

Powered by FluxBB