Jump to content

CUDA: Difference between revisions

7 bytes removed ,  6 February 2021
Line 27: Line 27:
# Reboot. Check that GPUs are visible using the command: nvidia-smi
# Reboot. Check that GPUs are visible using the command: nvidia-smi


# Install development and runtime libraries (~4GB)
# Install development and runtime libraries
sudo apt-get install --no-install-recommends \
sudo apt-get install --no-install-recommends \
     cuda libcudnn7 libcudnn7-dev
     cuda libcudnn7 libcudnn7-dev
Line 35: Line 35:
</syntaxhighlight>
</syntaxhighlight>


For tensorflow and pytorch, you may need to add <code>LD_LIBRARY_PATH=/usr/local/cuda/lib64</code> to your environment variables.<br>
For TensorFlow and PyTorch, 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]]