GPU Help. AMD and Nvidia in the same pc
Hi. I am quite new to linux fedora. I have a few simple Debian servers. But I was wondering if I can use an Nvidia gpu and a AMD gpu at the "same" time.
5 Replies
I suspect that you would need to use the nvidia images for Bazzite which will unfortunately exclude you from gamemode. If you want to run tools on a specific GPU then you'd need to play around with
switcherooctl
tooli think its possible so as long as you use your AMD GPU as the primary graphics for driving gamemode, you can offload the game rendering to nvidia using prime-run: https://wiki.archlinux.org/title/PRIME
There was a youtube video floating around where this guy pulls off just that, hogwarts legacy being rendered on an nvidia desktop GPU using prime-run, but his primary AMD GPU (in his case i think he was using the iGPU on the CPU) is what was pushing the frames to the screen. There was a bit of overhead, but was totally doable. I will see if i can find it. This guy if i remember right was on arch. To get this to work on bazzite i think you may have to overlay rpm packages yourself, especially the nvidia drivers, if you plan on using the regular bazzite or bazzite-deck images, as well as a ton of experimentation, i doubt this would ever be officially supported by the devs here, or even recommended.
oh wait... i am forgetting something important regarding nvidia drivers... it might not be as simple as installing rpms actually, i don't think we can dynamically load kernel modules like we can on regular fedora / other linux distros due to rpm-ostree
yep, i totally forgot that normally you'd want dkms or similar since nvidia driver is an out-of-tree kernel module, you can't overlay that on these distros i don't think, you'd need the image to have the kmod already built in
Thanks for the help. I want to mostly use my amd gpu for games but I want to use the nvidia one for more intense games. I have a friend that recomended me Bazzite and I like it. I am planing to go all amd but I havent found anyone to sell my 3070 to yet. I have a rx470 or somthing like that and a rtx 3070 in my system now. Some games "need" the extra gpu power so I whould like to get the nvidia working atleast in desktop mode and the amd in game mode. I have found something that I think is a nvidia "driver" for linux Here: https://developer.nvidia.com/cuda-downloads I found it whet looking at the nvidia container toolkit.
NVIDIA Developer
CUDA Toolkit 12.1 Downloads
Get the latest feature updates to NVIDIA's proprietary compute stack.
If I select my platform I get a cuda toolkit install but also somthing about a driver