Skip to content

Commit 1660a61

Browse files
[NFC][SYCL][Reduction] Minor refactoring/simplification (#6646)
Mostly enabled by the removal of ext::oneapi::reduction support. * Drop placeholder accessor support (never create it, deprecated in SYCL2020 as part of the static type) * Drop discard_write accessor support (likewise) * Eliminate several constexpr bool is_*, is_sum is now enough * Prefer "auto" to explicit rw_acessor_type * Our partial sums buffer is always 1-dimensional, don't need a variable for it
1 parent 443971c commit 1660a61

File tree

2 files changed

+61
-131
lines changed

2 files changed

+61
-131
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ class __SYCL_EXPORT handler {
17461746
});
17471747
} // end while (NWorkItems > 1)
17481748

1749-
if (Reduction::is_usm || Reduction::is_dw_acc) {
1749+
if (Reduction::is_usm) {
17501750
MLastEvent = withAuxHandler(QueueCopy, [&](handler &CopyHandler) {
17511751
detail::reduSaveFinalResultToUserMem<KernelName>(CopyHandler, Redu);
17521752
});

0 commit comments

Comments
 (0)