[llvm] [Offload] Add `MAX_WORK_GROUP_SIZE` device info query (PR #143718)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 07:02:55 PDT 2025
================
@@ -264,13 +266,16 @@ 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 GetInfoXyz = [&](std::vector<std::string> Names) -> Error {
+ if (Device == OffloadContext::get().HostDevice())
+ return ReturnValue(ol_dimensions_t{0u, 0u, 0u});
----------------
RossBrunton wrote:
The information handling logic has been reworked so I think hopefully this should be resolved now.
https://github.com/llvm/llvm-project/pull/143718
More information about the llvm-commits
mailing list