[llvm] [Offload] Add device UID (PR #164391)
    Kevin Sala Penades via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 08:58:56 PDT 2025
    
    
  
================
@@ -148,7 +148,9 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
   /// Create the device with a specific id.
   GenELF64DeviceTy(GenericPluginTy &Plugin, int32_t DeviceId,
                    int32_t NumDevices)
-      : GenericDeviceTy(Plugin, DeviceId, NumDevices, GenELF64GridValues) {}
+      : GenericDeviceTy(Plugin, DeviceId, NumDevices, GenELF64GridValues) {
+    DeviceUid = getHostDeviceUid();
----------------
kevinsala wrote:
Aren't these "devices" exposed as OpenMP devices? Why they should have a single id?
https://github.com/llvm/llvm-project/pull/164391
    
    
More information about the llvm-commits
mailing list