Skip to content

Commit 6355d58

Browse files
committed
Updated OpenCL driver installation guide and links
1 parent 3db369d commit 6355d58

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Use-case example: [FluidX3D](https://github.com/ProjectPhysX/FluidX3D) builds en
2525
- **Linux**
2626
<details><summary>AMD GPUs</summary>
2727

28-
- Download and install [AMD GPU Drivers](https://www.amd.com/en/support/linux-drivers), which contain the OpenCL Runtime, with:
28+
- Download and install [AMD GPU Drivers](https://www.amd.com/en/support/download/linux-drivers.html), which contain the OpenCL Runtime, with:
2929
```bash
3030
sudo apt update && sudo apt upgrade -y
3131
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
3232
mkdir -p ~/amdgpu
33-
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.3.2/ubuntu/noble/amdgpu-install_6.3.60302-1_all.deb
33+
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.3.4/ubuntu/noble/amdgpu-install_6.3.60304-1_all.deb
3434
sudo apt install -y ~/amdgpu/amdgpu-install*.deb
3535
sudo amdgpu-install -y --usecase=graphics,rocm,opencl --opencl=rocr
3636
sudo usermod -a -G render,video $(whoami)
@@ -56,22 +56,22 @@ Use-case example: [FluidX3D](https://github.com/ProjectPhysX/FluidX3D) builds en
5656
- Download and install [Nvidia GPU Drivers](https://www.nvidia.com/Download/index.aspx), which contain the OpenCL Runtime, with:
5757
```bash
5858
sudo apt update && sudo apt upgrade -y
59-
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-560
59+
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-570
6060
sudo shutdown -r now
6161
```
6262
6363
</details>
6464
<details><summary>CPUs</summary>
6565
66-
- 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:
66+
- Option 1: Download and install the [oneAPI DPC++ Compiler](https://github.com/intel/llvm/releases?q=%22oneAPI+DPC%2B%2B+Compiler+dependencies%22) and [oneTBB](https://github.com/uxlfoundation/oneTBB/releases) with:
6767
```bash
68-
export OCLV="oclcpuexp-2024.18.10.0.08_rel"
69-
export TBBV="oneapi-tbb-2022.0.0"
68+
export OCLV="oclcpuexp-2025.19.3.0.17_230222_rel"
69+
export TBBV="oneapi-tbb-2022.1.0"
7070
sudo apt update && sudo apt upgrade -y
7171
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
7272
sudo mkdir -p ~/cpurt /opt/intel/${OCLV} /etc/OpenCL/vendors /etc/ld.so.conf.d
73-
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2024-WW43/${OCLV}.tar.gz
74-
sudo wget -P ~/cpurt https://github.com/oneapi-src/oneTBB/releases/download/v2022.0.0/${TBBV}-lin.tgz
73+
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2025-WW13/${OCLV}.tar.gz
74+
sudo wget -P ~/cpurt https://github.com/uxlfoundation/oneTBB/releases/download/v2022.1.0/${TBBV}-lin.tgz
7575
sudo tar -zxvf ~/cpurt/${OCLV}.tar.gz -C /opt/intel/${OCLV}
7676
sudo tar -zxvf ~/cpurt/${TBBV}-lin.tgz -C /opt/intel
7777
echo /opt/intel/${OCLV}/x64/libintelocl.so | sudo tee /etc/OpenCL/vendors/intel_expcpu.icd

src/kernel.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ string get_opencl_c_code() {
1818
}
1919

2020
// everything below is just for syntax highlighting in the editor, this does not change any functionality
21-
// full catalogue: https://www.khronos.org/files/opencl-1-2-quick-reference-card.pdf
21+
// full catalogue: https://www.khronos.org/files/opencl30-reference-guide.pdf
2222

2323
// general
2424
#define get_global_id(x) // global index, set x=0
@@ -29,8 +29,9 @@ string get_opencl_c_code() {
2929
#define get_group_id(x) // group ID, set x=0
3030
#define get_global_offset(x) // global offset, set x=0
3131
#define get_work_dim // number of dimensions in use
32-
#define __attribute__(x)
33-
#define always_inline // for inlining functions
32+
#define __attribute__(x) // compiler attribute qualifiers
33+
#define always_inline // compiler attribute qualifier for inlining functions
34+
#define opencl_unroll_hint // compiler attribute qualifier for loop unrolling
3435
#define barrier(x) // barrier for local work group, x is CLK_LOCAL_MEM_FENCE or CLK_GLOBAL_MEM_FENCE
3536
#define mem_fence(x) // orders loads/stores, x is CLK_LOCAL_MEM_FENCE or CLK_GLOBAL_MEM_FENCE
3637
#define read_mem_fence(x) // orders loads, x is CLK_LOCAL_MEM_FENCE or CLK_GLOBAL_MEM_FENCE

src/opencl.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ string("'-----------------------------------------------------------------------
3434
sudo apt update && sudo apt upgrade -y
3535
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
3636
mkdir -p ~/amdgpu
37-
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.3.2/ubuntu/noble/amdgpu-install_6.3.60302-1_all.deb
37+
wget -P ~/amdgpu https://repo.radeon.com/amdgpu-install/6.3.4/ubuntu/noble/amdgpu-install_6.3.60304-1_all.deb
3838
sudo apt install -y ~/amdgpu/amdgpu-install*.deb
3939
sudo amdgpu-install -y --usecase=graphics,rocm,opencl --opencl=rocr
4040
sudo usermod -a -G render,video $(whoami)
@@ -53,19 +53,19 @@ sudo shutdown -r now
5353
| Nvidia GPU Drivers, which contain the OpenCL Runtime |
5454
'-----------------------------------------------------------------------------'
5555
sudo apt update && sudo apt upgrade -y
56-
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-560
56+
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev nvidia-driver-570
5757
sudo shutdown -r now
5858

5959
)"+string("\033[96m")+R"(.-----------------------------------------------------------------------------.
6060
| CPU Option 1: Intel CPU Runtime for OpenCL (works for both AMD/Intel CPUs) |
6161
'-----------------------------------------------------------------------------'
62-
export OCLV="oclcpuexp-2024.18.10.0.08_rel"
63-
export TBBV="oneapi-tbb-2022.0.0"
62+
export OCLV="oclcpuexp-2025.19.3.0.17_230222_rel"
63+
export TBBV="oneapi-tbb-2022.1.0"
6464
sudo apt update && sudo apt upgrade -y
6565
sudo apt install -y g++ git make ocl-icd-libopencl1 ocl-icd-opencl-dev
6666
sudo mkdir -p ~/cpurt /opt/intel/${OCLV} /etc/OpenCL/vendors /etc/ld.so.conf.d
67-
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2024-WW43/${OCLV}.tar.gz
68-
sudo wget -P ~/cpurt https://github.com/oneapi-src/oneTBB/releases/download/v2022.0.0/${TBBV}-lin.tgz
67+
sudo wget -P ~/cpurt https://github.com/intel/llvm/releases/download/2025-WW13/${OCLV}.tar.gz
68+
sudo wget -P ~/cpurt https://github.com/uxlfoundation/oneTBB/releases/download/v2022.1.0/${TBBV}-lin.tgz
6969
sudo tar -zxvf ~/cpurt/${OCLV}.tar.gz -C /opt/intel/${OCLV}
7070
sudo tar -zxvf ~/cpurt/${TBBV}-lin.tgz -C /opt/intel
7171
echo /opt/intel/${OCLV}/x64/libintelocl.so | sudo tee /etc/OpenCL/vendors/intel_expcpu.icd

0 commit comments

Comments
 (0)