[llvm] [Offload] Define additional device info properties (PR #152533)

Callum Fare via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 09:28:33 PDT 2025


================
@@ -339,6 +398,29 @@ Error olGetDeviceInfoImplDetail(ol_device_handle_t Device,
     return Info.write(static_cast<uint32_t>(Value));
   }
 
+  case OL_DEVICE_INFO_MAX_CLOCK_FREQUENCY:
+  case OL_DEVICE_INFO_MEMORY_CLOCK_RATE: {
+    // Frequency might require unit conversion to MHz
----------------
callumfare wrote:

+1 that the changes are fine since it's just `llvm-offload-device-info` that uses this, but if there's a problem we could just make the Offload query return in kHz and do the conversion in UR

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


More information about the llvm-commits mailing list