Skip to content

Commit c06746f

Browse files
committed
Workaround for Intel CPU compiler bug that causes rendering corruption, updated OpenCL headers, better OpenCL device specs detection, added multi-GPU performance chart in Readme, updated driver install guides
1 parent 964dcc8 commit c06746f

File tree

17 files changed

+20624
-16144
lines changed

17 files changed

+20624
-16144
lines changed

DOCUMENTATION.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
sudo apt update && sudo apt upgrade -y
2626
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
2727
mkdir -p ~/amdgpu
28-
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.2.3/ubuntu/noble/amdgpu-install_6.2.60203-1_all.deb
28+
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.3.2/ubuntu/noble/amdgpu-install_6.3.60302-1_all.deb
2929
sudo apt install -y ~/amdgpu/amdgpu-install*.deb
3030
sudo amdgpu-install -y --usecase=graphics,rocm,opencl --opencl=rocr
3131
sudo usermod -a -G render,video $(whoami)
@@ -51,7 +51,7 @@
5151
- Download and install [Nvidia GPU Drivers](https://www.nvidia.com/Download/index.aspx), which contain the OpenCL Runtime, with:
5252
```bash
5353
sudo apt update && sudo apt upgrade -y
54-
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-550
54+
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-560
5555
sudo shutdown -r now
5656
```
5757
@@ -60,21 +60,21 @@
6060
6161
- Option 1: Download and install the [oneAPI DPC++ Compiler](https://github.com/intel/llvm/releases?q=oneAPI+DPC%2B%2B+Compiler) and [oneTBB](https://github.com/oneapi-src/oneTBB/releases) with:
6262
```bash
63-
export OCLV="2024.18.10.0.08_rel"
64-
export TBBV="2022.0.0"
63+
export OCLV="oclcpuexp-2024.18.10.0.08_rel"
64+
export TBBV="oneapi-tbb-2022.0.0"
6565
sudo apt update && sudo apt upgrade -y
6666
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
67-
sudo mkdir -p ~/cpurt /opt/intel/oclcpuexp_${OCLV} /etc/OpenCL/vendors /etc/ld.so.conf.d
68-
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2024-WW43/oclcpuexp-${OCLV}.tar.gz
69-
sudo wget -P ~/cpurt https://github.com/oneapi-src/oneTBB/releases/download/v${TBBV}/oneapi-tbb-${TBBV}-lin.tgz
70-
sudo tar -zxvf ~/cpurt/oclcpuexp-${OCLV}.tar.gz -C /opt/intel/oclcpuexp_${OCLV}
71-
sudo tar -zxvf ~/cpurt/oneapi-tbb-${TBBV}-lin.tgz -C /opt/intel
72-
echo /opt/intel/oclcpuexp_${OCLV}/x64/libintelocl.so | sudo tee /etc/OpenCL/vendors/intel_expcpu.icd
73-
echo /opt/intel/oclcpuexp_${OCLV}/x64 | sudo tee /etc/ld.so.conf.d/libintelopenclexp.conf
74-
sudo ln -sf /opt/intel/oneapi-tbb-${TBBV}/lib/intel64/gcc4.8/libtbb.so /opt/intel/oclcpuexp_${OCLV}/x64
75-
sudo ln -sf /opt/intel/oneapi-tbb-${TBBV}/lib/intel64/gcc4.8/libtbbmalloc.so /opt/intel/oclcpuexp_${OCLV}/x64
76-
sudo ln -sf /opt/intel/oneapi-tbb-${TBBV}/lib/intel64/gcc4.8/libtbb.so.12 /opt/intel/oclcpuexp_${OCLV}/x64
77-
sudo ln -sf /opt/intel/oneapi-tbb-${TBBV}/lib/intel64/gcc4.8/libtbbmalloc.so.2 /opt/intel/oclcpuexp_${OCLV}/x64
67+
sudo mkdir -p ~/cpurt /opt/intel/${OCLV} /etc/OpenCL/vendors /etc/ld.so.conf.d
68+
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2024-WW43/${OCLV}.tar.gz
69+
sudo wget -P ~/cpurt https://github.com/oneapi-src/oneTBB/releases/download/v2022.0.0/${TBBV}-lin.tgz
70+
sudo tar -zxvf ~/cpurt/${OCLV}.tar.gz -C /opt/intel/${OCLV}
71+
sudo tar -zxvf ~/cpurt/${TBBV}-lin.tgz -C /opt/intel
72+
echo /opt/intel/${OCLV}/x64/libintelocl.so | sudo tee /etc/OpenCL/vendors/intel_expcpu.icd
73+
echo /opt/intel/${OCLV}/x64 | sudo tee /etc/ld.so.conf.d/libintelopenclexp.conf
74+
sudo ln -sf /opt/intel/${TBBV}/lib/intel64/gcc4.8/libtbb.so /opt/intel/${OCLV}/x64
75+
sudo ln -sf /opt/intel/${TBBV}/lib/intel64/gcc4.8/libtbbmalloc.so /opt/intel/${OCLV}/x64
76+
sudo ln -sf /opt/intel/${TBBV}/lib/intel64/gcc4.8/libtbb.so.12 /opt/intel/${OCLV}/x64
77+
sudo ln -sf /opt/intel/${TBBV}/lib/intel64/gcc4.8/libtbbmalloc.so.2 /opt/intel/${OCLV}/x64
7878
sudo ldconfig -f /etc/ld.so.conf.d/libintelopenclexp.conf
7979
sudo rm -r ~/cpurt
8080
```

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022-2024 Dr. Moritz Lehmann
1+
Copyright (c) 2022-2025 Dr. Moritz Lehmann
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to use this software for public research, education or personal use, and to alter it and redistribute it freely, subject to the following restrictions:
44

README.md

Lines changed: 220 additions & 40 deletions
Large diffs are not rendered by default.

src/OpenCL/include/CL/cl.h

Lines changed: 1935 additions & 1235 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)