Skip to content

Instantly share code, notes, and snippets.

@opastorello
Created February 8, 2021 23:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opastorello/05e311a78fe749b382ec4bc0a9086a04 to your computer and use it in GitHub Desktop.
Save opastorello/05e311a78fe749b382ec4bc0a9086a04 to your computer and use it in GitHub Desktop.
Install OpenCL on Raspberry Pi
# get third party software
sudo apt-get install -y cmake git ocl-icd-opencl-dev ocl-icd-dev opencl-headers clinfo libraspberrypi-dev
# get Clang compiler
sudo apt-get install -y clang clang-format clang-tidy
mkdir -p ~/opencl
cd ~/opencl
git clone https://github.com/doe300/VC4CLStdLib.git
git clone https://github.com/doe300/VC4CL.git
git clone https://github.com/doe300/VC4C.git
# first VC4CLStdLib
cd ~/opencl/VC4CLStdLib
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
# next VC4C
cd ~/opencl/VC4C
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
# last VC4CL
cd ~/opencl/VC4CL
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment