[llvm] [Offload] Add `MAX_WORK_GROUP_SIZE` device info query (PR #143718)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 06:08:38 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:
What would be the value of `T`?
https://github.com/llvm/llvm-project/pull/143718
More information about the llvm-commits
mailing list