Solved by albanD in post #2 
              
              
                Hi, 
The device numbering is consistent accros all applications, except nvidia-smi that ignores the CUDA_DEVICE_ORDER environment variable. 
The problem is that by default the device ordering is FASTEST_FIRST while nvidia-smi uses PCI_BUS_ID. 
To make your applications consistent with nvidia_smi, ju…