[SOLVED] Get Device UUIDs


how can I retrieve device UUIDs via the Cuda or Driver API in C++?

What I need in my program is the device UUIDs like they are listed by nvidia-smi -L:

e.g. GPU 0: GeForce GTX 650 (UUID: GPU-04546190-b68d-65ac-101b-035f8faed77d)

Best regards,

nvidia-smi uses the NVML library to retrieve the UUID. The particular API for retrieving this information is nvmlDeviceGetUUID(), the documentation for which can be found here:


Thanks a lot!