Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install CUDA, OpenCL, and PyOpenCL on EC2 with Ubuntu 12.04
sudo apt-get update
sudo apt-get install gcc
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo apt-get update
sudo apt-get install cuda
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
sudo apt-get install opencl-headers python-pip python-dev python-numpy python-mako
tar -vxzf pyopencl-2013.1.tar.gz
cd pyopencl-2013.1
sudo python install


This doesn't seem to work with cuda 6.0 anymore. Here are some updates after the install cuda step

export PATH=/usr/local/cuda-6.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib64:$LD_LIBRARY_PATH
tar -vxzf pyopencl-2014.1.tar.gz
cd pyopencl-2014.1
sudo cp -R /usr/local/cuda-6.0/lib64/ /usr/lib
sudo ldconfig -v
sudo python install


erikhazzard commented Jul 23, 2014

Thanks for the update!

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