[SOLVED] Get Device UUIDs

Hi,

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,
gnux

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:

[url]http://docs.nvidia.com/deploy/nvml-api/group__nvmlDeviceQueries.html#group__nvmlDeviceQueries_1g84dca2d06974131ccec1651428596191[/url]

Thanks a lot!