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

前端 未结 3 1284
北荒
北荒 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:43

    It's expected behavior.

    nvidia-smi enumerates in PCI order.

    By default, the CUDA driver and runtime APIs do not.

    The question you linked clearly shows how to associate the two numbering/ordering schemes.

    There is no way to cause nvidia-smi to modify its ordering scheme to match whatever will be generated by the CUDA runtime or driver APIs. However you can modify the CUDA runtime enumeration order through the use of an environment variable in CUDA 8.

提交回复
热议问题