[llvm] [Offload] Add device UID (PR #164391)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 05:24:30 PDT 2025


================
@@ -544,6 +545,8 @@ Error olGetDeviceInfoImplDetailHost(ol_device_handle_t Device,
     return Info.writeString("Virtual Host Device");
   case OL_DEVICE_INFO_PRODUCT_NAME:
     return Info.writeString("Virtual Host Device");
+  case OL_DEVICE_INFO_UID:
+    return Info.writeString(GenericDeviceTy::getHostDeviceUid());
----------------
jhuber6 wrote:

We really need to improve that, the only reason we don't do it now is because the host device doesn't actually work properly. We should probably just mandate that it exist and actually hook it up.

https://github.com/llvm/llvm-project/pull/164391


More information about the llvm-commits mailing list