I have a 4-card RTX 3060 system with driver version 580.82.09. Using the nvidia/cuda:13.0.1-cud decoder-devel-ubuntu22.04-1 base image, I created 4 separate containers mapping cards 0-3 into each container respectively. Cards 0, 1, and 2 all return the error cuvidGetDecoderCaps(&decodecaps) returned CUDA_ERROR_NO_DEVICE (code: 100), while only card 3 returns correct results from cuvidGetDecoderCaps(&decodecaps). However, when I map all 4 cards into a single container simultaneously, each card returns correct results. Using the same code, on another system with driver 535.274.02 using the nvidia/cuda:12.8.1-devel-ubuntu20.04 image, I created 4 containers using the same method, mapping the 4 cards into each container separately, and cuvidGetDecoderCaps(&decodecaps) returns correct results on all cards
System Information:
system: ubuntu:22.04
Nvidia card: four NVIDIA GeForce RTX 3060
Nvidia dirver : 580.82.09
Code project address and replication method: git@github.com:Yyong25/nvidia_decoder_test.git
Create 4 containers, map 4 cards each, only one card can output correctly