Skip to content

Instantly share code, notes, and snippets.

@nunenuh
Created September 27, 2021 08:55
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 nunenuh/6eb8450804ad32ef50684ba3ed673711 to your computer and use it in GitHub Desktop.
Save nunenuh/6eb8450804ad32ef50684ba3ed673711 to your computer and use it in GitHub Desktop.
Install PyCuda Ubuntu 20.04

source information https://medium.com/leadkaro/setting-up-pycuda-on-ubuntu-18-04-for-gpu-programming-with-python-830e03fc4b81

sudo apt-get install build-essential binutils gdb

sudo apt-get install freeglut3 freeglut3-dev libxi-dev libxmu-dev

sudo apt install nvidia-cuda-toolkit

sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y

$ gedit ~/.bashrc

Add the following at the end of the file:

export PATH="/usr/local/cuda/bin:${PATH} export LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"

sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y

pip install pycuda

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