Created
February 8, 2021 23:02
-
-
Save opastorello/05e311a78fe749b382ec4bc0a9086a04 to your computer and use it in GitHub Desktop.
Install OpenCL on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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