Skip to content

Commit 786b93a

Browse files
committed
formatting fixes
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent 26a374d commit 786b93a

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,8 @@ __parallel_set_reduce_then_scan(sycl::queue& __q, _Range1&& __rng1, _Range2&& __
10871087
__q.get_device().template get_info<sycl::info::device::local_mem_size>() / (__average_input_ele_size * 2);
10881088

10891089
_GenReduceInput __gen_reduce_input{_SetOperation{}, __diagonal_spacing,
1090-
_BoundsProvider{__diagonal_spacing, __partition_size, __partition_threshold}, __comp};
1090+
_BoundsProvider{__diagonal_spacing, __partition_size, __partition_threshold},
1091+
__comp};
10911092

10921093
constexpr std::uint32_t __bytes_per_work_item_iter =
10931094
__average_input_ele_size * (__diagonal_spacing + 1) + sizeof(_TemporaryType);
@@ -1100,8 +1101,8 @@ __parallel_set_reduce_then_scan(sycl::queue& __q, _Range1&& __rng1, _Range2&& __
11001101

11011102
if (__total_size >= __partition_threshold)
11021103
{
1103-
__partition_event = __parallel_set_balanced_path_partition<_CustomName>(__q, __in_rng, __num_diagonals,
1104-
__gen_reduce_input);
1104+
__partition_event =
1105+
__parallel_set_balanced_path_partition<_CustomName>(__q, __in_rng, __num_diagonals, __gen_reduce_input);
11051106
}
11061107
return __parallel_transform_reduce_then_scan<__bytes_per_work_item_iter, _CustomName>(
11071108
__q, __num_diagonals, __in_rng, std::forward<_Range3>(__result), __gen_reduce_input, _ReduceOp{},

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,13 @@ struct __gen_set_balanced_path
763763
return 0;
764764
if (!__is_partitioned)
765765
{
766-
auto [__idx_rng1, __idx_rng2, __local_star] = calc_and_store_balanced_path(__in_rng, __id,
767-
__get_bounds_simple{});
766+
auto [__idx_rng1, __idx_rng2, __local_star] =
767+
calc_and_store_balanced_path(__in_rng, __id, __get_bounds_simple{});
768768
__rng1_balanced_pos = __idx_rng1;
769769
__rng2_balanced_pos = __idx_rng2;
770770
__star = __local_star;
771771
}
772-
else if(__id % __get_bounds.__tile_size != 0)
772+
else if (__id % __get_bounds.__tile_size != 0)
773773
{
774774
auto [__idx_rng1, __idx_rng2, __local_star] = calc_and_store_balanced_path(__in_rng, __id, __get_bounds);
775775
__rng1_balanced_pos = __idx_rng1;
@@ -846,7 +846,8 @@ struct __partition_set_balanced_path_submitter<_GenInput, __internal::__optional
846846
operator()(sycl::queue& __q, _InRng&& __in_rng, std::size_t __num_diagonals) const
847847
{
848848
const std::size_t __tile_size = __gen_input.__get_bounds.__tile_size;
849-
const std::size_t __n = oneapi::dpl::__internal::__dpl_ceiling_div(__num_diagonals + __tile_size - 1, __tile_size);
849+
const std::size_t __n =
850+
oneapi::dpl::__internal::__dpl_ceiling_div(__num_diagonals + __tile_size - 1, __tile_size);
850851
return __q.submit([&__in_rng, this, __n, __num_diagonals](sycl::handler& __cgh) {
851852
oneapi::dpl::__ranges::__require_access(__cgh, __in_rng);
852853

@@ -1288,7 +1289,7 @@ __get_reduce_then_scan_workgroup_size(const sycl::queue& q)
12881289
const std::size_t __max_wg_size = oneapi::dpl::__internal::__max_work_group_size(q);
12891290
const std::uint8_t __sg_size = __get_reduce_then_scan_workaround_sg_sz();
12901291
// Round down to multiple of sub-group size
1291-
return __max_wg_size - (__max_wg_size % __sg_size);
1292+
return __max_wg_size - (__max_wg_size % __sg_size);
12921293
}
12931294

12941295
struct __reduce_then_scan_sub_group_params

0 commit comments

Comments
 (0)