我的桌面安装了2个gpu:1080和1080Tinvidia-smi显示gpu-0为1080,gpu-1为1080Ti
组
export CUDA_DEVICE_ORDER=PCI_BUS_ID 。
export CUDA_DEVICE_ORDER=PCI_BUS_ID
另见 这个问题