Skip to content

Commit

Permalink
Apply GitHUB clang format
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Sep 25, 2024
1 parent 1b91850 commit 235d87a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions include/oneapi/dpl/internal/async_impl/async_impl_hetero.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ __pattern_walk1_async(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec, _For
oneapi::dpl::__ranges::__get_sycl_range<__par_backend_hetero::access_mode::read_write, _ForwardIterator>();
auto __buf = __keep(__first, __last);

return oneapi::dpl::__par_backend_hetero::__parallel_for(
_BackendTag{}, ::std::forward<_ExecutionPolicy>(__exec),
unseq_backend::walk_n<_ExecutionPolicy, _Function>{__f}, __n, __buf.all_view());
return oneapi::dpl::__par_backend_hetero::__parallel_for(_BackendTag{}, ::std::forward<_ExecutionPolicy>(__exec),
unseq_backend::walk_n<_ExecutionPolicy, _Function>{__f},
__n, __buf.all_view());
}

template <__par_backend_hetero::access_mode __acc_mode1 = __par_backend_hetero::access_mode::read,
Expand Down
4 changes: 2 additions & 2 deletions include/oneapi/dpl/internal/async_impl/glue_async_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ for_each_async(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIter
const auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first);

wait_for_all(::std::forward<_Events>(__dependencies)...);
return oneapi::dpl::__internal::__pattern_walk1_async(
__dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __f);
return oneapi::dpl::__internal::__pattern_walk1_async(__dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec),
__first, __last, __f);
}

// [async.reduce]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ struct __parallel_transform_reduce_work_group_kernel_submitter<_Tp, _Commutative
});
});

return __future<sycl::event, __result_and_scratch_storage<_ExecutionPolicy2, _Tp>>{std::move(__reduce_event),
std::move(__scratch_container)};
return __future<sycl::event, __result_and_scratch_storage<_ExecutionPolicy2, _Tp>>{
std::move(__reduce_event), std::move(__scratch_container)};
}
}; // struct __parallel_transform_reduce_work_group_kernel_submitter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,7 @@ class __future : private std::tuple<_Args...>
}

public:
__future(_Event&& __e)
: __my_event(std::move(__e))
{
}
__future(_Event&& __e) : __my_event(std::move(__e)) {}
__future(_Event&& __e, const std::tuple<_Args...>& __data)
: std::tuple<_Args...>(__data), __my_event(std::move(__e))
{
Expand Down

0 comments on commit 235d87a

Please sign in to comment.