Raspberry Pi 5 Limited OpenCL support with CLVK

Опубликовано: 17 Май 2026
на канале: LivingLinux
502
15

I found an OpenCL driver that works on top of Vulkan.
As the Raspberry Pi 5 has a Vulkan driver, I was hoping to get OpenCL fully working.

Unfortunately currently there is no support for half or double precision. And I wasn't able to get Mandelbulber 2 working with OpenCL.

Install dependencies.
sudo apt install mesa-vulkan-drivers vulkan-tools libvulkan-dev git cmake clang clinfo gcc g++

You can build it by cloning the Github repository and follow the instructions.
https://github.com/kpet/clvk

git clone https://github.com/kpet/clvk
cd clvk

git submodule update --init --recursive
./external/clspv/utils/fetch_sources.py --deps llvm

mkdir -p build
cd build
cmake ../
make -j 1

I needed 16GB of memory total. As I have the 8GB Raspberry Pi 5, I added 8 GB swap memory.
https://www.digitalocean.com/communit...

sudo fallocate -l 8G /swapfile1
sudo chmod 600 /swapfile1
sudo mkswap /swapfile1
sudo swapon /swapfile1

00:00 Intro
00:36 CLVK (OpenCL on Vulkan)
01:06 Building CLVK
03:25 Running CLVK
04:58 Closing Thoughts

Bluesky: https://bsky.app/profile/livinglinux....

If this video was helpful, please like, comment and subscribe!

#arm #raspberrypi #raspberrypi5 #opencl