Skip to content

Commit 3136ba8

Browse files
Two minor fixes
1 parent a8a0a64 commit 3136ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/sycl/ext/oneapi/reduction.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ class reduction_impl
980980
reduction_impl(span<T, Extent> Span, const T &Identity, BinaryOperation BOp,
981981
bool InitializeToIdentity = false)
982982
: algo(Identity, BOp, InitializeToIdentity, Span.data()) {}
983-
#endif
983+
#endif // __cplusplus >= 201703L
984984
};
985985

986986
/// A helper to pass undefined (sycl::detail::auto_name) names unmodified. We
@@ -2462,7 +2462,7 @@ void reduSaveFinalResultToUserMemHelper(
24622462
std::vector<event> &Events, std::shared_ptr<detail::queue_impl> Queue,
24632463
bool IsHost, Reduction &Redu, RestT... Rest) {
24642464
// Reductions initialized with USM pointer currently do not require copying
2465-
// because the last kernel write directly to USM memory.
2465+
// because the last kernel writes directly to the USM memory.
24662466
if constexpr (!Reduction::is_usm)
24672467
if (Redu.hasUserDiscardWriteAccessor()) {
24682468
event CopyEvent =

0 commit comments

Comments
 (0)