Mapping NvAPI PhysicalHandles to OpenCL devices?

Hello. I want to associate the OpenCL gpu devices with NvAPI handles taken by the nvapi function

NvAPI_EnumPhysicalGPUs

On the OpenCL side the function:

clGetDeviceInfo

can return different statistics like CL_DEVICE_VENDOR_ID for the vendor id, which is nice because it’s always unique but on NVAPI side the function

NvAPI_SYS_GetChipSetInfo

can retrieve the vendor id too, but it’s not associated with the NvPhysicalGpuHandle which i get from the NvAPI enumeration.
What would be the best way to match the devices, rather then just comparing the names, which is incorrect if there is for some reason two similar GPU with the same name?