Installing CUDA with FAI

Stephan Frank stephan.frank at ini.rub.de
Thu Oct 24 14:50:20 CEST 2024


Hallo Thomas,

thank you for your kind reply. 

> I wonder what the problems are. Do you have some excerpt from the logs?

I use this installation guide and try to make it into a script:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/

Amongst other approaches I have tried the runfile installation like so:

> chroot /target apt install -y make linux-headers-$(uname -r)
> chroot /target wget -nc https://developer.download.nvidia.com/compute/cuda/12.6.2/local_installers/cuda_12.6.2_560.35.03_linux.run
> chroot /target sh cuda_12.6.2_560.35.03_linux.run --driver --toolkit

This usually hangs because it wants to uninstall nouveau drivers and asks for permission via a graphical interface.

Is this even the right way to approach this task? How do you do it, it sounded like you approach was a little bit different perhaps?

Bonus question: Is there a good way to autmatically figure out whether the machine can even use CUDA/nvidia drivers? So I don't have to sort machines by hardware in the class file.

Many thanks and kind regards,

Stephan



-----Original Message-----
From: Thomas <lange at cs.uni-koeln.de>
To: fully <linux-fai at uni-koeln.de>
Date: Thursday, 24 October 2024 2:06 PM CEST
Subject: Re: Installing CUDA with FAI


Hi,

I have created several versions of the nfsroot including new nvidia
drivers and CUDA libraries, because we needed the newest drivers for
new hardware.

Often I used a mixture of packages from testing and experimental. I've
also created a nfsroot using the drivers and CUDA libs from nvidia
itself.



-- 
regards Thomas


More information about the linux-fai mailing list