Skip to content

Instantly share code, notes, and snippets.

@nerdralph
Last active December 27, 2016 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerdralph/a65f1b0a6abf3be005beea6e00f21fda to your computer and use it in GitHub Desktop.
Save nerdralph/a65f1b0a6abf3be005beea6e00f21fda to your computer and use it in GitHub Desktop.
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