- get nvidia drivers from software updates ubuntu. nvidia-440
- get local .deb file of cuda.
- install according to instruction
- export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}}
- export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- Put these commands in bashrc
- source it.
- download cudnn tarball
- extract and go into that directory. you will find a directroy called "cuda".
- sudo cp cuda/include/cudnn.h /usr/local/cuda-10.2/include
- sudo cp cuda/lib64/libcudnn* /usr/local/cuda-10.2/lib64
- sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda-10.2/lib64/libcudnn*
- For pytorch to run cuda you don't need to instal all this shit, just update your ubuntu drivers
- nvcc -v
- locate cuda | grep /cuda$
- locate cudnn | grep /cudnn$
- https://github.com/Hardware-Alchemy/cuDNN-sample
- https://github.com/NVIDIA/cuda-samples , make -k
- https://github.com/NVIDIA/DALI
- nvidia-smi
- https://github.com/NVIDIA/
- https://docs.nvidia.com/deeplearning/sdk/cudnn-developer-guide/index.html
- https://github.com/tbennun/cudnn-training
- https://github.com/cupy/cupy