#Change GPU used for a specific process (AMD)

1 messages · Page 1 of 1 (latest)

junior eagle
#

I can change it in Lutris but not sure how to set it before running specific binaries. Is it an environment variable? Something else? I know of amdgporun but that was back on Fedora. I'm on Hyprland and I know I can set it using the AQ_DRM_DEVICES environment variable but that uses it for everything including the desktop

cursive swan
#

One is for nvidia
Second one is for both amd and nvidia
Third one is for vulkan.

#

1st way
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <your_app>

2nd way

DRI_PRIME=1 <your_app>
(The 1 there was a gpu ID i forgot the command for that but you may try 0 instead of 1 to get the correct gpu and check with glxinfo)

And 3rd one

VK_ICD_FILENAMES=/path/to/nvidia_or_amd_or_whatever_icd.json <your_app>