[llvm] [Offload] Add `MAX_WORK_GROUP_SIZE` device info query (PR #143718)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 08:38:10 PDT 2025


================
@@ -264,6 +264,31 @@ Error olGetDeviceInfoImplDetail(ol_device_handle_t Device,
 
     return "";
   };
+  auto GetInfoXyz = [&](std::vector<std::string> Names) {
+    if (!Device->Device)
+      return ol_dimensions_t{0, 0, 0};
+
+    auto Info = Device->Device->obtainInfoImpl();
+    if (auto Err = Info.takeError())
+      return ol_dimensions_t{0, 0, 0};
----------------
jhuber6 wrote:

Errors must be consumed or they turn into traps.

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


More information about the llvm-commits mailing list