Hi, sorry if this has been explained before,
I have a little program, using the “cu” driver api functions, which get the device count, then enumerates the devices (I have 2 in the system). I’d like to also include the results of temperature obtained from the nvidia-smi command. The output of the nvidia-smi command sees the devices in a different order, then enumerating them with the driver api.
nvidia-smi lists the devices as follows:
Timestamp : Tue Oct 19 08:55:18 2010
Product Name : Quadro NVS 295
PCI ID : 6fd10de
Temperature : 64 C
Product Name : Tesla C2050
PCI ID : 6d110de
Board Serial :
Temperature : 66 C
ECC errors :
Single bit : 0
Double bit : 0
Total : 0
Aggregate single bit: 0
Aggregate double bit: 0
Aggregate total : 0
The program that enumerates the devices lists the devices as follows:
Device 0: Tesla C2050: Compute Mode 0
: Bus 4: Device 0
Device 1: Quadro NVS 295: Compute Mode 0
: Bus 3: Device 0
This is in reverse order to the nvidia-smi command. The deviceQueryDrv sample lists in the same order as my program.
The device ID in my program is always 0, I was hoping that I could match on this with the output of the nvidia-smi command. Is this supposed to return a correct Device ID?
Is the order of the nvidia-smi command in the Bus ID number order?
Do you have any other suggestions as to how to match up the nvidia-smi output, to allow me to extract the temperature from this output, and match it to the enumerated output I get using the driver api?
I don’t think device name is good enough, as the next maching will have a few C2050s in it, and then the device names will be the same.
thanks for any input.