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

前端 未结 3 1286
北荒
北荒 2020-12-03 18:04

I\'m running this command into a shell and get:

C:\\Users\\me>nvidia-smi -L    
GPU 0: Quadro K2000 (UUID: GPU-b1ac50d1-019c-58e1-3598-4877fffffd3f17)    
G         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 18:40

    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
    

提交回复
热议问题