-
-
Save Terkwood/0204491f9f1f6eb94c2f4a12d7340d30 to your computer and use it in GitHub Desktop.
Building VC4C and VC4CL on a Raspberry Pi 3 with Raspbian Stretch
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
sudo apt install git cmake clang-3.9 opencl-headers ocl-icd-dev ocl-icd-opencl-dev | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 100 | |
git clone https://github.com/doe300/VC4C.git | |
git clone https://github.com/doe300/VC4CL.git | |
git clone https://github.com/doe300/VC4CLStdLib.git | |
cd VC4C | |
cmake -DBUILD_TESTING=OFF -DSPIRV_FRONTEND=OFF | |
make | |
sudo make install | |
cd - | |
cd VC4CL | |
cmake -DBUILD_TESTING=OFF | |
make | |
sudo make install | |
cd - | |
mkdir VC4CL-test | |
cd VC4CL-test | |
wget https://raw.githubusercontent.com/doe300/VC4C/master/example/fibonacci.cl | |
export LD_LIBRARY_PATH=/usr/local/lib | |
VC4C --llvm --hex -o fibonacci.hex fibonacci.cl | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needed to symlink /usr/bin/llvm-link to version 5.0