Skip to content

Instantly share code, notes, and snippets.

@nerdralph
Last active Dec 27, 2016
Embed
What would you like to do?
llvm/OpenCL setup
wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main"
sudo apt-get update
sudo apt-get install clang-3.9
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 10
sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.9 10
#install POCL deps http://portablecl.org/docs/html/install.html
# sudo apt-get install libhwloc-dev
# but POCL doesn't suppor discrete GPUs
# https://github.com/pocl/pocl/issues/291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment