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

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 02:55:21 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
----------------
RossBrunton wrote:

Someone more familiar with LLVM can probably advise more, but as I understand it this information is only used for liboffload and the `llvm-offload-device-info` binary (which is designed for humans to read). So hopefully changing it should be fine.

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


More information about the llvm-commits mailing list