Get device adapter name from DeviceAdapterId
If you have a DeviceAdapterTag*
and want to get a human-readable name for the device, you can call vtkm::cont::DeviceAdapterTraits<>::GetName()
. However, if you have a vtkm::cont::DeviceAdapterId
, there is no practical way to get a readable device name. You end up with obfuscated error messages like "Device with id 2 is not valid."
There should be some sort of function or method you could call to get a reasonable name for a DeviceAdapterId
.