Skip to content

Instantly share code, notes, and snippets.

@mgei
Created May 22, 2019 14:23
Show Gist options
  • Save mgei/ee5563e961c5fba7a54fd995cdb6924b to your computer and use it in GitHub Desktop.
Save mgei/ee5563e961c5fba7a54fd995cdb6924b to your computer and use it in GitHub Desktop.

What I've done thus far

Install QMKL

But before:

Install Py-videocore

Increase video memory!

Note that can be done for Python 3 or 2. For the later installing QMKL it needs to be in Python 2 (sudo python setup.py install).

Install qasm2 (qpu-assembler2)

https://github.com/Terminus-IMRC/qpu-assembler2

Clone and install as described in the README.

Note that you will need cdbs, install with sudo apt-get install cdbs.

Also when something went wront, undo by make clean and/or debuild clean.

qbin2hex

https://github.com/Terminus-IMRC/qpu-bin-to-hex

make

sudo make install

mailbox

https://github.com/Terminus-IMRC/mailbox

librpimemmgr

https://github.com/Idein/librpimemmgr

Install QMKL

as described in the repo README, but additionally do make install (or sudo make install.

Need CUnit? sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev

rpi-peri-regs

(not sure if this is needed)

VC4CL (OpenCL 1.2 standard for the VideoCore IV GPU)

https://github.com/doe300/VC4CL

Install instructions see in the repo's Wiki

Here's an install guide for Raspberry: https://github.com/aaguiar96/VC4CL-Install

Has some requirements:

clang-3.9

llvm-3.9

llvm-3.9-dev

opencl-c-headers

ocl-icd-opencl-dev

vc4c

Compiler

https://github.com/doe300/VC4C

clpy

https://github.com/fixstars/clpy

requires:

CLBlast

https://github.com/CNugteren/CLBlast

Cython 0.24.0

pip3 install cython==0.24.0

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