Inconsistency of IDs between ‘nvidia-smi -L’ and cuDeviceGetName()

You can set the device order for CUDA environment in your shell to follow the bus ID instead of the default of fastest card. Requires CUDA 7 and up.

export CUDA_DEVICE_ORDER=PCI_BUS_ID

Leave a Comment