I'm trying to use OpenCL inside WSL2 Ubuntu 24.04 LTS. Target GPU is Intel UHD770.
Software:
Windows 11 25H2 + Intel GPU driver: v32.0.101.7076.
wsl.exe -v
WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.6901
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
apt show intel-opencl-icd|head
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Package: intel-opencl-icd
Version: 23.43.27642.40-1ubuntu3
Priority: optional
Section: universe/libs
Source: intel-compute-runtime
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian OpenCL Maintainers <pkg-opencl-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23.0 MB
Preparation:
sudo apt-get install ocl-icd-opencl-dev pocl-opencl-icd clinfo intel-opencl-icd
sudo usermod -a -G render,video $USER
sudo modprobe vgem
./geekbench6 --gpu-list
...
OpenCL
0 0 Intel(R) Graphics [0xa780]
Vulkan
0 0 llvmpipe (LLVM 20.1.2, 256 bits)
But when I try to run popular benchmark Geekbench v6.5.0 for Linux in OpenCL mode, I have following output. Looks like opencl code compilation error:
Running:
./geekbench6 --gpu
...
System Information
Operating System Ubuntu 24.04.3 LTS
Kernel Linux 6.6.87.2-microsoft-standard-WSL2 x86_64
Model N/A
Motherboard N/A
CPU Information
Name Intel Core i7-14700K
Topology 1 Processor, 14 Cores, 28 Threads
Identifier GenuineIntel Family 6 Model 183 Stepping 1
Base Frequency 3.42 GHz
L1 Instruction Cache 32.0 KB x 14
L1 Data Cache 48.0 KB x 14
L2 Cache 2.00 MB x 14
L3 Cache 33.0 MB
Instruction Sets sse2 sse3 pclmul fma3 sse41 aesni avx avx2 shani vaes avx-vnni
Memory Information
Size 46.9 GB
OpenCL Information
Platform Vendor Intel(R) Corporation
Platform Name Intel(R) OpenCL Graphics
Device Vendor Intel(R) Corporation
Device Name Intel(R) Graphics [0xa780]
Device Driver Version 23.43 .027642
Maximum Frequency 1600 MHz
Compute Units 32
Device Memory 44.6 GB
OpenCL
Running Background Blur
[1106/191755:ERROR:consolemain.cpp(993)] Geekbench encountered an internal error and cannot continue. Please contact support@primatelabs.com for assistance.
Internal error message: clBuildProgram() failed: 1:12:86: warning: unknown attribute 'max_constant_size' ignored
__constant float* gaussian_kernel __attribute__((max_constant_size(512))), int diameter)
^~~~~~~~~~~~~~~~~~~~~~
1:36:86: warning: unknown attribute 'max_constant_size' ignored
__constant float* gaussian_kernel __attribute__((max_constant_size(512))), int diameter)
^~~~~~~~~~~~~~~~~~~~~~
1:60:86: warning: unknown attribute 'max_constant_size' ignored
__constant float* gaussian_kernel __attribute__((max_constant_size(512))), int diameter)
^~~~~~~~~~~~~~~~~~~~~~
1:76:8: warning: expression result unused
for (x_min; x_min <= x_max; x_min++) {
^~~~~
1:89:86: warning: unknown attribute 'max_constant_size' ignored
__constant float* gaussian_kernel __attribute__((max_constant_size(512))), int diameter)
^~~~~~~~~~~~~~~~~~~~~~
1:105:8: warning: expression result unused
for (y_min; y_min <= y_max; y_min++) {
^~~~~
error: undefined reference to `_Z37__spirv_ImageSampleExplicitLod_Ruint4PU3AS140__spirv_SampledImage__void_1_0_0_0_0_0_0Dv2_iif'
in function: '__spirv_ImageSampleExplicitLod_Ruint4(__spirv_SampledImage__void_1_0_0_0_0_0_0 AS1*, int vector[2], int, float)' called by kernels:
- 'convolve_vertical_img'
- 'convolve_horizontal_img'
error: backend compiler failed build.
error: undefined reference to `_Z18__spirv_ImageWritePU3AS133__spirv_Image__void_1_0_0_0_0_0_1Dv2_iDv4_ji'
in function: '__spirv_ImageWrite(__spirv_Image__void_1_0_0_0_0_0_1 AS1*, int vector[2], unsigned int vector[4], int)' called by kernels:
- 'convolve_vertical_img'
- 'convolve_horizontal_img'
error: backend compiler failed build.
I'm trying to use OpenCL inside WSL2 Ubuntu 24.04 LTS. Target GPU is Intel UHD770.
Software:
Windows 11 25H2 + Intel GPU driver:
v32.0.101.7076.Preparation:
But when I try to run popular benchmark Geekbench v6.5.0 for Linux in OpenCL mode, I have following output. Looks like opencl code compilation error:
Running: