[llvm] [Offload] Add `MAX_WORK_GROUP_SIZE` device info query (PR #143718)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 05:57:17 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});
----------------
jhuber6 wrote:
That seems like a weird way to work around just using `Expected<T>`.
https://github.com/llvm/llvm-project/pull/143718
More information about the llvm-commits
mailing list