No files in dev/nvidia when installing CUDA

Hello I folowed cuda instllation from https://docs.01.org/clearlinux/latest/tutorials/nvidia-cuda.html
/opt/cuda/bin/nvcc --version
gives

Cuda compilation tools, release 11.4, V11.4.48
Build cuda_11.4.r11.4/compiler.30033411_0

yet later when I try to get /dev/nvidia* I can not make it work I tried mentioned bahFile (I saed it in sbash file) and got

bash sbash
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.12.13-1050.native

I tried using medprobe - I installed it - theoretically it should create dev/nvidia files on start up - but it do not I restarted couple times

What can I do ? can I manually run medprobe? or I should manually install nvidia drivers? (I had read that those are automatically installed so no need to do it manually am I right ?)

Also in /usr/local/cuda/ i do not have lib64 so I can not create LD_LIBRARY_PATH and this is what I need to run the singularity container

Thanks for Help !!

Have you installed the nvidia driver prior to installing cuda?

1 Like