CUDA in Linux

Greyguy1948

Member
Nov 29, 2008
156
16
91
I have found some interesting code for CUDA so I would like to test the nvcc with my GPU (Geforce 2070).
However my Fedora Linux want something very big dev system like 80 GB (or Nvidia want it with Fedora).
Any smaller alternatives in Linux?
 

mv2devnull

Golden Member
Apr 13, 2010
1,498
144
106
How did you try the install?

NVidia's driver (rpm from ELRepo for el7) are about 100 MB and CUDA (rpm from NVidia's repo for el7) about 3 GB. (el7: RHEL 7, CentOS 7, etc)
 

Greyguy1948

Member
Nov 29, 2008
156
16
91
I started with NVidia site and they wanted me to download Dev System 10.2.
What Linux should I have to use anything smaller?
 

mv2devnull

Golden Member
Apr 13, 2010
1,498
144
106
There are instructions, like: https://linuxconfig.org/how-to-install-nvidia-cuda-toolkit-on-fedora-29-linux
(However, links in them seem old.)

NVidia's site shows essentially the same old instructions for RPM-based ("local") install as the above link.
1. The dnf can both download and install. There is no need for 'wget'. There definitely is no justification for using 'rpm'; the "install a file" part yum/dnf has been able to do for ages.
2. Without the "-y" option the dnf will not auto-install; you can see the estimated download size and can abort.

However, I'd use the RPM(network):
Code:
sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/fedora29/x86_64/cuda-fedora29.repo
sudo dnf install cuda-10-2

What version of Fedora do you have? Only 30 and 31 are currently supported. NVidia's latest dnf-repo being for 29 either means that NVidia does not care or that those packages install to 30 (or 31).

Did you try an RPM-based install or the dreaded runfile?


I don't think that NVidia's blob differs much, no matter which system it is for.
 

Greyguy1948

Member
Nov 29, 2008
156
16
91
I have tested all CUDA alternatives for Fedora but my Linux USB-stick is too small (only 32 GB).
So I got a 512 GB SSD as "live USB-stick" and dowloaded Fedora 31. But to make it a complete Linux is not possible. It is asking for a new HD to install. This was not the problem with the 32 GB USB-stick and the first Fedora 25.....
Even worse- I can't kill the big live SSD in order to get a HD and use a smaller live-USD like 32 GB.
 
Last edited: