Skip to content

Commit 3b7f0e0

Browse files
committed
formatting
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent a2f7eb7 commit 3b7f0e0

4 files changed

+10
-8
lines changed

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,8 @@ struct __parallel_find_or_impl_one_wg<__or_tag_check, __internal::__optional_ker
18221822
const std::size_t __rng_n, const std::size_t __wgroup_size, const __FoundStateType __init_value,
18231823
_Predicate __pred, _Ranges&&... __rngs)
18241824
{
1825-
using __result_and_scratch_storage_t = __result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, __FoundStateType>;
1825+
using __result_and_scratch_storage_t =
1826+
__result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, __FoundStateType>;
18261827
__result_and_scratch_storage_t __result_storage{__exec, 1, 0};
18271828

18281829
// Calculate the number of elements to be processed by each work-item.

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge_sort.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ struct __merge_sort_global_submitter<_IndexT, __internal::__optional_kernel_name
581581
// Calculate nd-range params
582582
const nd_range_params __nd_range_params = eval_nd_range_params(__exec, __n, __n_sorted);
583583

584-
using __base_diagonals_sp_storage_t = __result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, _merge_split_point_t>;
584+
using __base_diagonals_sp_storage_t =
585+
__result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, _merge_split_point_t>;
585586

586587
const std::size_t __n_power2 = oneapi::dpl::__internal::__dpl_bit_ceil(__n);
587588
// ctz precisely calculates log2 of an integral value which is a power of 2, while

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_reduce.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ struct __parallel_transform_reduce_device_kernel_submitter<_Tp, _Commutative, _V
214214
__cgh.parallel_for<_KernelName...>(
215215
sycl::nd_range<1>(sycl::range<1>(__n_groups * __work_group_size), sycl::range<1>(__work_group_size)),
216216
[=](sycl::nd_item<1> __item_id) {
217-
auto __temp_ptr =
218-
__result_and_scratch_storage<std::decay_t<_ExecutionPolicy2>, _Tp>::__get_usm_or_buffer_accessor_ptr(
219-
__temp_acc);
217+
auto __temp_ptr = __result_and_scratch_storage<std::decay_t<_ExecutionPolicy2>,
218+
_Tp>::__get_usm_or_buffer_accessor_ptr(__temp_acc);
220219
__device_reduce_kernel<_Tp>(__item_id, __n, __iters_per_work_item, __is_full, __n_groups,
221220
__transform_pattern, __reduce_pattern, __temp_local, __temp_ptr,
222221
__rngs...);
@@ -240,7 +239,8 @@ struct __parallel_transform_reduce_work_group_kernel_submitter<_Tp, _Commutative
240239
auto
241240
operator()(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPolicy&& __exec, sycl::event& __reduce_event,
242241
const _Size __n, const _Size __work_group_size, const _Size __iters_per_work_item, _ReduceOp __reduce_op,
243-
_InitType __init, const __result_and_scratch_storage<std::decay_t<_ExecutionPolicy2>, _Tp>& __scratch_container) const
242+
_InitType __init,
243+
const __result_and_scratch_storage<std::decay_t<_ExecutionPolicy2>, _Tp>& __scratch_container) const
244244
{
245245
using _NoOpFunctor = unseq_backend::walk_n<_ExecutionPolicy, oneapi::dpl::__internal::__no_op>;
246246
auto __transform_pattern =

include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_reduce_then_scan.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,8 @@ __parallel_transform_reduce_then_scan(oneapi::dpl::__internal::__device_backend_
813813
// We need temporary storage for reductions of each sub-group (__num_sub_groups_global).
814814
// Additionally, we need two elements for the block carry-out to prevent a race condition
815815
// between reading and writing the block carry-out within a single kernel.
816-
__result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, _ValueType> __result_and_scratch{__exec, 1,
817-
__num_sub_groups_global + 2};
816+
__result_and_scratch_storage<std::decay_t<_ExecutionPolicy>, _ValueType> __result_and_scratch{
817+
__exec, 1, __num_sub_groups_global + 2};
818818

819819
// Reduce and scan step implementations
820820
using _ReduceSubmitter =

0 commit comments

Comments
 (0)