5,323
edits
(→Linux) |
(→Linux) |
||
Line 2: | Line 2: | ||
==Installation== | ==Installation== | ||
===Linux=== | ===Linux=== | ||
[https://developer.nvidia.com/cuda-toolkit CUDA Toolkit] | |||
See [https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation CUDA Ubuntu Installation] | See [https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation CUDA Ubuntu Installation] | ||
Line 31: | Line 24: | ||
# Install development and runtime libraries | # Install development and runtime libraries | ||
sudo apt install libcudnn8 libcudnn8-dev | sudo apt install libcudnn8 libcudnn8-dev | ||
</syntaxhighlight> | </syntaxhighlight> | ||
For | |||
;Notes | |||
* For machine learning, I just have Anaconda install a compatible CUDA since different versions of TF and PyTorch require different CUDA versions. | |||
You may need to add <code>LD_LIBRARY_PATH=/usr/local/cuda/lib64</code> to your environment variables.<br> | |||
You can also do this in PyCharm.<br> | You can also do this in PyCharm.<br> | ||
[[File:Pycharm LD LIBRARY PATH config.png| 200x200px]] | [[File:Pycharm LD LIBRARY PATH config.png| 200x200px]] |