This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install nvidia-drivers: see gist.github.com/mjkvaak/5769ebdfbf6598b3fd0ece66b3c12a3c | |
# create conda environment | |
conda create --name myenv python=3.9 pip | |
conda activate myenv | |
# install cuda drivers | |
conda install -c anaconda cudatoolkit=11.3 | |
conda install -c conda-forge cudnn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blacklist noveau drivers | |
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf" | |
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf" | |
# confirm that the changes were correctly applied | |
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf | |
# prints: | |
# blacklist nouveau | |
# options nouveau modeset=0 |