Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incongruent instructions for drivers’ installation #374

Open
vatsimanos opened this issue Feb 23, 2024 · 0 comments
Open

Incongruent instructions for drivers’ installation #374

vatsimanos opened this issue Feb 23, 2024 · 0 comments

Comments

@vatsimanos
Copy link

Hello,
I have the same issue as in here and I was asking myself if the drivers were installed incorretly as the instructions are incogruent and some clarification would be appricitated:

In the case of ubuntu 22.04, at point 2.7 in the tutorial if the link to the download page is followed and the corresponding version is selected (installer type deb(local)). The instructions are as follows:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda-repo-ubuntu2204-12-3-local_12.3.2-545.23.08-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-12-3-local_12.3.2-545.23.08-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-12-3-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3

followed by either:

sudo apt-get install -y cuda-drivers

or

sudo apt-get install -y nvidia-kernel-open-545
sudo apt-get install -y cuda-drivers-545

for the different kernel flavors.

On the other hand following the instructions at the tutorial page (still for ubuntu), it is suggested that:

sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
sudo cp /var/cuda-repo-<distro>-X-Y-local/cuda-*-keyring.gpg /usr/share/keyrings/
wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/x86_64/cuda-<distro>.pin
 sudo mv cuda-<distro>.pin /etc/apt/preferences.d/cuda-repository-pin-600

are executed (exchanging <>,X,Y with the individual values of course)

and then

sudo apt-get update
sudo apt-get install cuda-toolkit
sudo apt-get install nvidia-gds

(rebooting here)

Finally adding to PATH

export PATH=/usr/local/cuda-12.2/bin${PATH:+:${PATH}}

So how should this be handled? I suppose only one of the two should be followed. I encountered a simmilar issue when istalling the drivers on Debian 12.

Thx for any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant