Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sycl/include/CL/sycl/handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ class __SYCL_EXPORT handler {
int Dims, typename Reduction>
detail::enable_if_t<Reduction::accessor_mode == access::mode::read_write &&
Reduction::has_fast_atomics>
parallel_for(nd_range<Dims> Range, Reduction &Redu, KernelType KernelFunc) {
parallel_for(nd_range<Dims> Range, Reduction Redu, KernelType KernelFunc) {
if (Reduction::is_usm)
Redu.associateWithHandler(*this);
shared_ptr_class<detail::queue_impl> QueueCopy = MQueue;
Expand Down Expand Up @@ -886,7 +886,7 @@ class __SYCL_EXPORT handler {
int Dims, typename Reduction>
detail::enable_if_t<Reduction::accessor_mode == access::mode::discard_write &&
Reduction::has_fast_atomics>
parallel_for(nd_range<Dims> Range, Reduction &Redu, KernelType KernelFunc) {
parallel_for(nd_range<Dims> Range, Reduction Redu, KernelType KernelFunc) {
shared_ptr_class<detail::queue_impl> QueueCopy = MQueue;
auto RWAcc = Redu.getReadWriteScalarAcc(*this);
intel::detail::reduCGFunc<KernelName>(*this, KernelFunc, Range, Redu,
Expand Down Expand Up @@ -920,7 +920,7 @@ class __SYCL_EXPORT handler {
template <typename KernelName = detail::auto_name, typename KernelType,
int Dims, typename Reduction>
detail::enable_if_t<!Reduction::has_fast_atomics>
parallel_for(nd_range<Dims> Range, Reduction &Redu, KernelType KernelFunc) {
parallel_for(nd_range<Dims> Range, Reduction Redu, KernelType KernelFunc) {
size_t NWorkGroups = Range.get_group_range().size();

// This parallel_for() is lowered to the following sequence:
Expand Down
Loading