Skip to content

Instantly share code, notes, and snippets.

@aumouvantsillage
Created November 28, 2017 09:40
Show Gist options
  • Save aumouvantsillage/671ecb1e68729c5e1a897c62251e00cf to your computer and use it in GitHub Desktop.
Save aumouvantsillage/671ecb1e68729c5e1a897c62251e00cf to your computer and use it in GitHub Desktop.
Building VC4C and VC4CL on a Raspberry Pi 3 with Raspbian Stretch
sudo apt install git cmake clang-3.9 opencl-headers ocl-icd-dev ocl-icd-opencl-dev
sudo ln -s /usr/bin/clang{-3.9,}
git clone https://github.com/doe300/VC4C.git
git clone https://github.com/doe300/VC4CL.git
git clone https://github.com/doe300/VC4CLStdLib.git
mkdir VC4C/build
cd VC4C/build
cmake -DBUILD_TESTING=OFF -DSPIRV_FRONTEND=OFF ..
make
sudo make install
cd -
mkdir VC4CL/build
cd VC4CL/build
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
@yasintuncer
Copy link


İs it includes GPU configuration?

@aumouvantsillage
Copy link
Author

aumouvantsillage commented Aug 9, 2019

I'm sorry but I don't understand your question.

I wrote these instructions 2 years ago to illustrate a bug report in VC4C.
Since then I have moved to other projects and I have never actually used VC4C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment