Multi GPU App/Docker Issue - 25.10

Hi all, hopefully some wise one will know how to fix this, but I’m thinking we may need more granular control with apps, and the ability to select the actual GPU we would like to use.

Below are the 3 VGA devices in my setup:

lspci | grep -i vga

03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
3d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev df)
8a:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A310] (rev 05)

I just added the RX 6700, before that, I was using the A310 for apps, has been working really great, no issues with it, both Frigate and Plex use it just fine due to the dual media engine, has been a very good card, I have now added the 6700 just to test out some AI stuff, and I have Vulkan working in LocalAI just fine with it, but now Frigate is throwing errors, and its specifically setup to use Intel, but Plex itself, you can select in the GUI which card you want for HW transcoding, both 6700 and 310 are available, I can select either of them and they both function as expected.

Below is the error I’m getting from Frigate:

AVHWDeviceContext @ 0x56511d46f480] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
AVHWDeviceContext @ 0x55f89247c480] Failed to initialise VAAPI connection: 18 (invalid parameter).
Failed to set value ‘/dev/dri/renderD129’ for option ‘qsv_device’: Input/output error

Now I have had to move the cards around in the slots in order for things to fit properly, so the 6700 is the first device and shows the BIOS screen, where the 310 was the first card in the chain, but not now, I assume this has something to do with it.

I’m assuming maybe the path to the device has maybe changed? and Frigate does not know how to find it?

If I isolate the 6700, reboot the system, Frigate will then find the A310 and function as expected.

It would be really nice if we could select which device we would like the Docker container to access, but unfortunately its all or nothing.

Any help or advice would be great.