[llvm] [Offload] Add `MAX_WORK_GROUP_SIZE` device info query (PR #143718)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 08:47:17 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};
----------------
RossBrunton wrote:
Good spot. This is also an issue with GetInfoString above as well. I'll see about getting errors out of this helper function properly.
https://github.com/llvm/llvm-project/pull/143718
More information about the llvm-commits
mailing list