-
Notifications
You must be signed in to change notification settings - Fork 80
How to get
doe300 edited this page Feb 9, 2022
·
8 revisions
Download the latest (stable) debian packages and install on your Raspbian via sudo dpkg -i DEB_PACKAGE
.
NOTE: The packages need to be installed in this order: vc4cl-stdlib
, vc4c
, vc4cl
.
wget https://raw.githubusercontent.com/doe300/VC4CL/master/.circleci/get_url.py
wget https://raw.githubusercontent.com/doe300/VC4CL/master/.circleci/build_num.py
- Execute the following lines:
curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C?limit=100&filter=successful" --output /tmp/json
curl "https://circleci.com/api/v1.1/project/github/doe300/VC4C/$(python ./build_num.py /tmp/json)/artifacts" --output /tmp/dump
wget -O /tmp/vc4cl-stdlib.deb $(python get_url.py "vc4cl-stdlib-" "/tmp/dump")
wget -O /tmp/vc4c.deb $(python get_url.py "vc4c-" "/tmp/dump")
curl "https://circleci.com/api/v1.1/project/github/doe300/VC4CL?limit=100&filter=successful" --output /tmp/json
curl "https://circleci.com/api/v1.1/project/github/doe300/VC4CL/$(python ./build_num.py /tmp/json)/artifacts" --output /tmp/dump
wget -O /tmp/vc4cl.deb $(python get_url.py "vc4cl-" "/tmp/dump")
- Now you can install the packages
/tmp/vc4cl-stdlib.deb
,/tmp/vc4c.deb
and/tmp/vc4cl.deb
viasudo dpkg -i <package>
. E.g. by
sudo dpkg -i /tmp/vc4cl-stdlib.deb
sudo dpkg -i /tmp/vc4c.deb
sudo dpkg -i /tmp/vc4cl.deb
Download the debian package for the latest release for VC4CLStdLib, Vc4C and VC4CL.
NOTE: Since the projects are still under heavy development, there are no releases yet!
Since nightly builds created on a single day share the same package number, on update a previous removal of the old package may be required. This can be done via sudo dpkg -r PACKAGE_NAME
, where PACKAGE_NAME
is vc4cl-stdlib
, vc4c
or vc4cl
.
Recommended setup:
- Make sure, all required software is installed (see requirements for VC4C and VC4CL)
- Checkout VC4C, VC4CL and VC4CLStdLib into a common base directory (So you have the directories
<root>/VC4C
,<root>/VC4CL
and<root>/VC4CLStdLib
). - Build VC4C
- Build VC4CL
As an example, the following lines work on a freshly installed Raspberry Pi OS Bullseye:
sudo apt update
sudo apt install git build-essential cmake
sudo apt install clang llvm llvm-dev libclang-dev
sudo apt install libraspberrypi-dev ocl-icd-opencl-dev ocl-icd-dev opencl-headers
git clone https://github.com/doe300/VC4CLStdLib.git
git clone https://github.com/doe300/VC4CL.git
git clone https://github.com/doe300/VC4C.git
cd VC4C
mkdir build
cd build/
cmake ..
make -j2
cd ../../VC4CL
mkdir build
cd build/
cmake -DBUILD_ICD=OFF ../
make -j2
sudo apt install clinfo
LD_PRELOAD=src/libVC4CL.so clinfo