After following these commands you'll observe 2 cuda folders in /usr/local/
Optional commands:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo ubuntu-drivers autoinstall
reboot
gcc --version
nvcc --version
nvidia-smi
sudo apt install nvidia-cuda-toolkit gcc-9
⚠️ Caveat: apt-installing nvidia-cuda-toolkit installs another cuda version on the device, as a result you might see 3 cuda folder in
/usr/local/
cd
ing into the folder where the installer is downloaded and run bash <installer_file.sh>
conda --version
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
git clone https://github.com/DeepLabCut/DeepLabCut.git
-pip:
- "deeplabcut[gui]"
to:
-pip:
- deeplabcut
conda env create -f DEEPLABCUT.yaml
conda activate DEEPLABCUT
pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython
conda install -c conda-forge wxpython
python -m deeplabcut
which should launch the DLC GUI.ipython
console:import tensorflow as tf
tf.test.is_gpu_available()
If
this returns True your setup is COMPLETE!
Else
you just need to wait a lil longer and we'll surely address this
ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory
software install
will pop up and it will look something like this: libcudnn.so.8.3.1
or similar named file in /usr/lib/x86_64-linux-gnu
.cd
into all the cuda*/lib64
folder in /usr/local/
/usr/local/cuda-11/lib64
sudo ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.8.3.1 libcudnn.so.8
sudo ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.8.3.1 libcudnn.so
Thank you reading! I hope it was useful.