Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new blackwell gpus (nvidia rtx 5060, 5070, 5080, 5090 etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Benni12345678
n00b
n00b


Joined: 08 Dec 2024
Posts: 23

PostPosted: Wed Jun 04, 2025 1:35 pm    Post subject: new blackwell gpus (nvidia rtx 5060, 5070, 5080, 5090 etc) Reply with quote

Hi there, currently, if one would just install nvidia-drivers, one would get an error that the device is not supported.

On order to remove that one has to use at least the driver version 575.57.08, which is currently under ~arch, i.e. the package needs currently to be unmasked with a file naming the package in the /etc/portage/package.accept.keywords directory.

However, this is not enough.

For blackwell, one must apparently also activate the useflag kernel-open (write it in /etc/portage/make.conf).

I recieved that tip with the useflag from the nvidia developer forum. Then the card works like a charm.

But one also has to set

TORCH_CUDA_ARCH_LIST="12"
CUDAARCHS="12"

for that card and then re-

emerge uUDN world

for the new cuda hardware.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2933

PostPosted: Thu Jun 05, 2025 12:10 am    Post subject: Reply with quote

Blackwell cards are also supported by current stable nvidia-drivers-570.153.02 (575 is an experimental "new feature" branch and is not needed to get support for the latest cards).

It can be easy to miss, but the bit about kernel-open is also in the README.gentoo that is displayed when you first emerge nvidia-drivers, and can later be read at /usr/share/doc/nvidia-drivers-*/README.gentoo*:
Code:
Be warned that USE=kernel-open may need to be either enabled or
disabled for certain cards to function:
- GTX 50xx (blackwell) and higher require it to be enabled
- GTX 1650 and higher (pre-blackwell) should work either way
- Older cards require it to be disabled
The USE description also mentions blackwell if users happen to look at these.

In the future kernel-open will likely become default, albeit given it breaks old cards we've been leaving it alone for now (tend to be worse to break existing configurations than break new ones where users will go read documentation if something does not work rather than wonder why it suddenly broke and file a bug -- albeit ebuild could use supported-gpus.json to auto-detect that kernel-open will not work for old cards and loudly warn or abort when do a potential switch).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum