[llvm] [offload] support arbitrary memoryFill pattern sizes in L0 plugin (PR #209724)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 04:03:49 PDT 2026
================
@@ -98,31 +98,29 @@ bool L0DeviceTy::isDeviceIPorNewer(uint32_t Version) const {
return IPVersion.ipVersion >= Version;
}
-/// Get default compute group ordinal. Returns Ordinal-NumQueues pair.
-std::pair<uint32_t, uint32_t> L0DeviceTy::findComputeOrdinal() {
- std::pair<uint32_t, uint32_t> Ordinal{MaxOrdinal, 0};
+/// Find the default compute command queue group. Returns std::nullopt if the
+/// device exposes no compute queue group.
+std::optional<ComputeGroupInfoTy> L0DeviceTy::findCommandQueueGroup() {
----------------
adurang wrote:
Please, use Expected<ComputeGrouupInfoTy> for error handling here instead of std::optional.
https://github.com/llvm/llvm-project/pull/209724
More information about the llvm-commits
mailing list