I have installed cuda toolkit following the installation guide. I choose deb installation. I have ubuntu 20.4 and nvidia Geforce 820m (drivers installed 340).
Before installing cuda, when I run nvidia-smi all things worked properly. Now after the installation I see these errors:
nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
You likely installed full ‘cuda’ meta package which also installs a (most likely) incompatible driver.
The 820M is fermi based, so is supported by the 390 driver and CUDA 8 maximum.
You’ll have to purge anything cuda/nvidia now and start anew. Install the 390 driver from Ubuntu repo, then download cuda 8 and install only the meta package “cuda-toolkit” instead of full “cuda”.
I’m in serious trouble now
I cant uninstall cuda toolkit and nvidia drivers, i received this error and I don’t know what to do:
sudo apt purge nvidia-340
Reading package list … Done
Dependency tree generation
Read status information … Done
It is useful to run “apt --fix-broken install” to correct this.
The following packages have unmet dependencies:
libcuinj64-10.1: It depends: libcuda1 (> = 418.39) or
libnvidia-tesla-cuda1 (> = 418.39) but is not installable or
libcuda.so.1 (> = 418.39) but is not installable or
libcuda-10.1-1
libnvidia-ml-dev: It depends: libnvidia-ml1 (> = 418.39) or
libnvidia-tesla-440-ml1 (> = 418.39) but it is not installable or
libnvidia-tesla-418-ml1 (> = 418.39) but it is not installable or
libnvidia-ml.so.1 (> = 418.39) but it is not installable
E: Dependencies not satisfied. Try “apt --fix-broken install” without packages (or specify a solution).
Thanks for your help, but i receive the same error:
It is useful to run "apt --fix-broken install" to correct this.
The following packages have unmet dependencies:
libcuinj64-10.1: It depends: libcuda1 (> = 418.39) or
libnvidia-tesla-cuda1 (> = 418.39) but is not installable or
libcuda.so.1 (> = 418.39) but is not installable or
libcuda-10.1-1
libnvidia-ml-dev: It depends: libnvidia-ml1 (> = 418.39) or
libnvidia-tesla-440-ml1 (> = 418.39) but it is not installable or
libnvidia-tesla-418-ml1 (> = 418.39) but it is not installable or
libnvidia-ml.so.1 (> = 418.39) but it is not installable
E: Dependencies not satisfied. Try "apt --fix-broken install" without packages (or specify a solution).
With your gpu, you should install the 390 driver from Ubuntu repo, then you need to download and install cuda 8, but only the toolkit. Since Cuda 8 is quite old, I’d recommend to not use the deb package but download the .run installer and skip driver install when it asks for it.
When using the deb packages, you need to install “cuda-toolkit” instead of cuda.
Yes, you should have thought about alternatives before even starting. Your gpu is simply too old to use it for cuda in a sensible way, all modern frameworks don’t support it. It’s only useful if you want to get a glance at cuda programming basics.