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

Rafal Bielski via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 02:47:31 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
----------------
rafbiels wrote:

Certainly easier, but would it be fine to change the plugin behaviour? I wasn't sure how much this might be in use with users assuming the unit for a given plugin.

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


More information about the llvm-commits mailing list