this post was submitted on 12 May 2024
471 points (85.8% liked)

linuxmemes

20880 readers
9 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 5 months ago* (last edited 5 months ago) (2 children)

You should consider passing through your Nvidia GPU to a virtual machine in order to do compute tasks on; that way, your host machine won't be infected with proprietary Nvidia drivers (I'm assuming you need CUDA for your compute tasks). The only performance differences you'll notice is less available system RAM (you will have access to all of your VRAM), and very slightly less CPU performance, due to running two operating systems at the same time (barely even noticable, TBH). This is the option that I would personally recommend.

If you want to try a super hacky solution which might not work for everything you need, you can try using the open source, recently released ZLUDA translation layer to perform CUDA tasks on your AMD GPU.

https://github.com/vosen/ZLUDA

The reason Hyprland doesn't work with proprietary Nvidia drivers is due to Nvidia refusing to implement the accepted Wayland standard in favor of their own, home-rolled solution which is incompatible. AFAIK, only GNOME and KDE implement that standard.

[–] [email protected] 6 points 5 months ago

Hyprland works fine on Nvidia, I've been using it for about a year now. It's only going to improve now that Nvidia hired people from the Nouveau team to work on Nouveau and Nvidia is making the open drivers the default in version 560. Can't wait for the 555 drivers they've been working on with the Wayland team and most of the major desktops to implement explicit sync etc.

An option would be to only install the CUDA toolkit without the drivers but distros like Ubuntu just don't support it. You could also switch display managers to sddm because Hyperland recommends it, might work better. Hyprland prints information in the tty if you launch it with Hyprland. I'm just thinking it's gdm being weird tbh.

[–] [email protected] 3 points 5 months ago

Ah, I like this solution. Thanks for the suggestion! I set up GPU passthrough for a VM on a build years ago with QEMU. I'm sure I'll be able to figure that out again.