Score:1

CUDA on Ubuntu 23.04

ma flag

Installed Ubuntu 23.04 (because it worked with my RTX 4090 out of the box, after problems with 22.04). Now I want to install CUDA.

I followed this guide- CUDA preinstallation steps

I installed the Cuda toolkit for 23.04 from here UbuntuUpdates

with the APT INSTALL.

Now I want to follow the installation guide, but my distro is not listed.

Is there a way to get it on 23.04?

cc flag
You'd be better off following one of the answers on this site, like 1077061. Basically, get your system running with the video driver offered in the standard repositories, then use the Nvidia .run script,to reject any video driver offers, and select the lib/bin locations as the cuda install's bin and lib, not the system areas. CUDA's just an app, don't let it take over your system or various update problems (kernel, video driver,...) will occur.
nanuuq avatar
ma flag
@ubfan1 Your comment pointed me in the right direction. I just realized, for running pytorch with cuda I don't need more (`torch.cuda.device_count()` returns `1`). When installing 23.04 the nvidia drivers where already installed (opted for 3rd party drivers). But looking through the answers you were referring, they all need a distro specific repo, and for 23.04 there is none.
cc flag
In the past, when running a system later than the Nvidia download, I always had good luck just using the latest one (that your hardware supports, but you have no such problem with a 4090). U23.04 may default to a later compiler, but the earlier ones are still available in the standard repos. Do NOT change your system default compiler! Install what's needed, then use the CUDA setup to select the gcc-? needed (links or even putting executables into cuda/bin).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.