Skip to content

Instantly share code, notes, and snippets.

@harshraj22
Created October 20, 2022 07:21
Show Gist options
  • Save harshraj22/8eaec3a5130ccb6ae3031be8f8b0b95a to your computer and use it in GitHub Desktop.
Save harshraj22/8eaec3a5130ccb6ae3031be8f8b0b95a to your computer and use it in GitHub Desktop.
while doing `pip install pycuda==2020.1`
Reference: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#mandatory-post
mapped python to python3 outside the virtal env
cuda.h was not found:
1. export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}} -> `ls /usr/local` showed us that our cuda version was 10.2
pyconfig.h error:
1. export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
`nvcc --version` started to work
tried:
```
export CPATH=$CPATH:/usr/local/cuda/include
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
```
ran:
```
sudo apt-get install python3-dev
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment