Upgrade to 7900XTX, or use RTX 4080/4090 headless for ML?

Very silly question that I think I know the answer to: can I have two GPU’s in my Linux box, AMD driving visuals and Nvidia driving compute?

I have a workstation with an AMD RX 6600 working great for my software development workflow.

I would like to add some GPU compute though … and I am wondering how best to do this.

  • Keep my solid AMD setup for driving graphics and add a 2nd card for ML, opening the door to nvidia devices
  • Upgrade my RX 6600 to a 7900XTX

What would yall do? If I can slap an nvidia card into a spare pci slot (with adequate bandwidth) and use it strictly as GPU compute, then I will probably opt for that route. I would like to remain using AMD for driving my actual display as it is better supported on linux.

Considering the following devices:

  • 7900XTX, either Asus Tuf or Sapphire Nitro+
  • RTX 4080/4090 as a secondary card
  • RTX A5000 as a secondary card

The more VRAM the better of course. I need to run code-specific ML models locally to accelerate a large software refactoring project from one toolset to another.

Did you watch Wendell’s latest video on the A4000 SFF GPU yet ?

Maybe this will fit your needs as it comes with 20GB of VRAM.

Is your use case PCIe bandwidth heavy? If you’re just uploading data, shaking the gpu around, then getting output, the 4x chipset lanes should be fine. If it is bandwidth heavy you’d really want a CPU with 2 x 8x split.

You can use two cards at once, but you might run into some fun with multiple drivers interacting with each other. As an alternative you could setup a VM and passthorugh the nvidia card t the VM, making it invisible to the host. The benefit of this setup is that you can snapshot the VM, or have multiple VMs for different projects running at once.

There is no reason you could only have one brand of gpu in your system. I have an AMD iGPU and an NVIDIA GPU on Linux with no issues.

How so? I could see there might be issues with applications using another gpu than you’d like them to use, etc. But there are ways around that.

I have an Intel ARC A380 and an Nvidia RTX A4500. The Intel drives my displays, leaving all the Nvidia for ML work.
I was running EndeavourOS when I added the Intel card, and everything worked fine.
Many other distros aren’t happy about installing, and it seems to be because the monitors are not connected to the Nvidia card. You’ll need to use ‘Fallback graphics’ or similar, and/or blacklist the nouveau driver. It also might be necessary to install the OS with the Nvidia card installed, then add the other card, or vice-versa.
My setup works well for me, and it’s nice to have the extra 1.8GB or so for training models.

I do exactly this; AMD GPU for the main OS (Debian) and a VM with the nVidia card passed through for ML. As long as you blacklist all the nvidia drivers in the host OS you’ll have no problem.

The kind of is the issue I’m referring to. Applications choosing the wrong card to start rending on. As you said there are ways around it, but it’s still something you have to deal with.