Skip to content

Commit f0d0716

Browse files
committed
[NFC] Fix build warnings; change 'sycl' with 'SYCL' in comments
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent aa3f0c9 commit f0d0716

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/include/CL/sycl/ONEAPI/reduction.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,14 @@ class reduction_impl : private reduction_impl_base {
532532
/// Returns user's USM pointer passed to reduction for editing.
533533
template <bool IsOneWG, bool _IsUSM = is_usm>
534534
std::enable_if_t<IsOneWG && _IsUSM, result_type *>
535-
getWriteMemForPartialReds(size_t, handler &CGH) {
535+
getWriteMemForPartialReds(size_t, handler &) {
536536
return getUSMPointer();
537537
}
538538

539539
/// Returns user's accessor passed to reduction for editing.
540540
template <bool IsOneWG, bool _IsUSM = is_usm>
541541
std::enable_if_t<IsOneWG && !_IsUSM, accessor_type>
542-
getWriteMemForPartialReds(size_t, handler &CGH) {
542+
getWriteMemForPartialReds(size_t, handler &) {
543543
return *MAcc;
544544
}
545545

@@ -658,7 +658,7 @@ struct get_reduction_aux_kernel_name_t {
658658
/// user's lambda function KernelFunc and also does one iteration of reduction
659659
/// of elements computed in user's lambda function.
660660
/// This version uses ONEAPI::reduce() algorithm to reduce elements in each
661-
/// of work-groups, then it calls fast sycl atomic operations to update
661+
/// of work-groups, then it calls fast SYCL atomic operations to update
662662
/// user's reduction variable.
663663
///
664664
/// Briefly: calls user's lambda, ONEAPI::reduce() + atomic, INT + ADD/MIN/MAX.
@@ -685,7 +685,7 @@ reduCGFuncImpl(handler &CGH, KernelType KernelFunc, const nd_range<Dims> &Range,
685685
/// user's lambda function KernelFunc and also does one iteration of reduction
686686
/// of elements computed in user's lambda function.
687687
/// This version uses tree-reduction algorithm to reduce elements in each
688-
/// of work-groups, then it calls fast sycl atomic operations to update
688+
/// of work-groups, then it calls fast SYCL atomic operations to update
689689
/// user's reduction variable.
690690
///
691691
/// Briefly: calls user's lambda, tree-reduction + atomic, INT + AND/OR/XOR.
@@ -1351,7 +1351,7 @@ void reduCGFunc(handler &CGH, KernelType KernelFunc,
13511351

13521352
// The list of reductions may be empty; for such cases there is nothing to do.
13531353
// This function is intentionally made template to eliminate the need in holding
1354-
// it in sycl library, what would be less efficient and also would create the
1354+
// it in SYCL library, what would be less efficient and also would create the
13551355
// need in keeping it for long due support backward ABI compatibility.
13561356
template <typename HandlerT>
13571357
std::enable_if_t<std::is_same<HandlerT, handler>::value>

0 commit comments

Comments
 (0)