Skip to content

Instantly share code, notes, and snippets.

@mirh
Last active January 30, 2018 21:30
Show Gist options
  • Save mirh/f0042f84e57e610c6b065f17b66212e6 to your computer and use it in GitHub Desktop.
Save mirh/f0042f84e57e610c6b065f17b66212e6 to your computer and use it in GitHub Desktop.
SYCL tensorflow on arch
yaourt computecpp
# register and manually download into temp build folder https://developer.codeplay.com/computecppce/latest/download
sudo pacman -S bazel python-numpy python-pip python-wheel
wget https://codeload.github.com/lukeiwanski/tensorflow/zip/dev/amd_gpu
unzip amd_gpu
cd tensorflow-dev-amd_gpu
export TF_NEED_JEMALLOC=1
export TF_NEED_GCP=0
export TF_NEED_HDFS=0
export TF_NEED_S3=0
export TF_ENABLE_XLA=1
export TF_NEED_GDR=0
export TF_NEED_VERBS=0
export TF_NEED_OPENCL_SYCL=1
export TF_NEED_COMPUTECPP=1
export TF_NEED_CUDA=0
export TF_NEED_MPI=0
export TF_SET_ANDROID_WORKSPACE=0
./configure
# https://developer.codeplay.com/computecppce/latest/getting-started-with-tensorflow#BuildingTensorflowSourceWithComputecpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment