GPU not allocatable to apps: "Allocate 0 amd.com/gpu GPU"

treant

Dabbler
Joined
Jan 3, 2023
Messages
12
I am trying to pass my system's GPU device to apps.
I am running SCALE Cobia, release version.
The GPU device is an integrated AMD GPU (Ryzen 5 PRO 4650G), correctly recognised by the host system:
Code:
[truenas]> system device gpu_pci_ids_choices
+-----------------------------------------------+--------------+
| Advanced Micro Devices, Inc. [AMD/ATI] Renoir | 0000:06:00.0 |
+-----------------------------------------------+--------------+

Code:
# lspci | grep VGA
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d9)


However, I can't seem to pass the GPU to apps. I'm getting "Allocate 0 amd.com/gpu GPU":

Screenshot_20231202_210355.png


Does anybody have any idea on how to solve this?
The GPU is NOT isolated.
I have seen multiple reports of similar problems on the forum, but mostly for Nvidia, not much for AMD.
 
Last edited:

tannisroot

Dabbler
Joined
Oct 14, 2023
Messages
45
Run `lspci -k` in ssh and check what module is loaded for the GPU. Share output here too (for VGA device).
 

treant

Dabbler
Joined
Jan 3, 2023
Messages
12
Run `lspci -k` in ssh and check what module is loaded for the GPU. Share output here too (for VGA device).

There it is:
Code:
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev d9)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir
Kernel driver in use: amdgpu
Kernel modules: amdgpu


Should be correct, amdgpu is the best AMD driver to use right now iirc
 

flammen

Dabbler
Joined
Oct 16, 2022
Messages
20
The same thing happens with nVidia:
and even integrated intel GPUs:

I do not have any idea what causes it though.
 

azanutta

Cadet
Joined
Mar 27, 2024
Messages
3
any solution for this?
I have two GPUs in my server but none of them, once isolated can be used by the apps

Code:
03:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
        Subsystem: ZOTAC International (MCO) Ltd. GK208B [GeForce GT 710]
        Kernel modules: nouveau, nvidia_current_drm, nvidia_current
03:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
        Subsystem: ZOTAC International (MCO) Ltd. GK208 HDMI/DP Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
 

flammen

Dabbler
Joined
Oct 16, 2022
Messages
20
I also have not been able to get a GPU to show up in apps. I tried 4 different GPUs (R9 290X, GTX660, RTX2060super, Quattro P1000), I tried attaching Monitors via HDMI or DisplayPort or HDMI sinks to the GPUs, during boot and/or after boot, I tried multiple GPUs at once and changed which is the first display device set in the BIOS. None seem to make a difference.
As far as I know, they should not be isolated to be used by apps.
I am a bit mad now to be honest.
If anyone knows something, please let us know.
 
Top