Skip to content

Commit fa67f4f

Browse files
Apply GitHUB CLang format
Signed-off-by: Sergey Kopienko <[email protected]>
1 parent c58795a commit fa67f4f

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

include/oneapi/dpl/internal/reduce_by_segment_impl.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ __sycl_reduce_by_segment(__internal::__hetero_tag<_BackendTag>, _ExecutionPolicy
281281
auto __seg_end_identification = __exec.queue().submit([&](sycl::handler& __cgh) {
282282
oneapi::dpl::__ranges::__require_access(__cgh, __keys);
283283
auto __seg_ends_acc = __seg_ends.template get_access<sycl::access_mode::write>(__cgh);
284-
#if _ONEDPL_COMPILE_KERNEL
284+
# if _ONEDPL_COMPILE_KERNEL
285285
__cgh.use_kernel_bundle(__seg_reduce_count_kernel.get_kernel_bundle());
286-
#endif
286+
# endif
287287
__cgh.parallel_for<_SegReduceCountKernel>(
288288
sycl::nd_range<1>{__n_groups * __wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
289289
auto __group = __item.get_group();
@@ -315,9 +315,9 @@ __sycl_reduce_by_segment(__internal::__hetero_tag<_BackendTag>, _ExecutionPolicy
315315
__cgh.depends_on(__seg_end_identification);
316316
auto __seg_ends_acc = __seg_ends.template get_access<sycl::access_mode::read>(__cgh);
317317
auto __seg_ends_scan_acc = __seg_ends_scanned.template get_access<sycl::access_mode::read_write>(__cgh);
318-
#if _ONEDPL_COMPILE_KERNEL
318+
# if _ONEDPL_COMPILE_KERNEL
319319
__cgh.use_kernel_bundle(__seg_reduce_offset_kernel.get_kernel_bundle());
320-
#endif
320+
# endif
321321
__cgh.parallel_for<_SegReduceOffsetKernel>(
322322
sycl::nd_range<1>{__wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
323323
auto __beg = __dpl_sycl::__get_accessor_ptr(__seg_ends_acc);
@@ -335,9 +335,9 @@ __sycl_reduce_by_segment(__internal::__hetero_tag<_BackendTag>, _ExecutionPolicy
335335
auto __partials_acc = __partials.template get_access<sycl::access_mode::read_write>(__cgh);
336336
auto __seg_ends_scan_acc = __seg_ends_scanned.template get_access<sycl::access_mode::read>(__cgh);
337337
__dpl_sycl::__local_accessor<__val_type> __loc_acc(2 * __wgroup_size, __cgh);
338-
#if _ONEDPL_COMPILE_KERNEL
338+
# if _ONEDPL_COMPILE_KERNEL
339339
__cgh.use_kernel_bundle(__seg_reduce_wg_kernel.get_kernel_bundle());
340-
#endif
340+
# endif
341341
__cgh.parallel_for<_SegReduceWgKernel>(
342342
sycl::nd_range<1>{__n_groups * __wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
343343
::std::array<__val_type, __vals_per_item> __loc_partials;
@@ -455,9 +455,9 @@ __sycl_reduce_by_segment(__internal::__hetero_tag<_BackendTag>, _ExecutionPolicy
455455
__dpl_sycl::__local_accessor<__diff_type> __loc_seg_ends_acc(__wgroup_size, __cgh);
456456

457457
__cgh.depends_on(__wg_reduce);
458-
#if _ONEDPL_COMPILE_KERNEL
458+
# if _ONEDPL_COMPILE_KERNEL
459459
__cgh.use_kernel_bundle(__seg_reduce_prefix_kernel.get_kernel_bundle());
460-
#endif
460+
# endif
461461
__cgh.parallel_for<_SegReducePrefixKernel>(
462462
sycl::nd_range<1>{__n_groups * __wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
463463
auto __group = __item.get_group();

include/oneapi/dpl/internal/scan_by_segment_impl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ struct __sycl_scan_by_segment_impl
164164

165165
__dpl_sycl::__local_accessor<__val_type> __loc_acc(2 * __wgroup_size, __cgh);
166166

167-
#if _ONEDPL_COMPILE_KERNEL
167+
# if _ONEDPL_COMPILE_KERNEL
168168
__cgh.use_kernel_bundle(__seg_scan_wg_kernel.get_kernel_bundle());
169-
#endif
169+
# endif
170170
__cgh.parallel_for<_SegScanWgKernel>(
171171
sycl::nd_range<1>{__n_groups * __wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
172172
__val_type __accumulator = __identity;
@@ -265,9 +265,9 @@ struct __sycl_scan_by_segment_impl
265265
__dpl_sycl::__local_accessor<__val_type> __loc_partials_acc(__wgroup_size, __cgh);
266266

267267
__dpl_sycl::__local_accessor<bool> __loc_seg_ends_acc(__wgroup_size, __cgh);
268-
#if _ONEDPL_COMPILE_KERNEL
268+
# if _ONEDPL_COMPILE_KERNEL
269269
__cgh.use_kernel_bundle(__seg_scan_prefix_kernel.get_kernel_bundle());
270-
#endif
270+
# endif
271271
__cgh.parallel_for<_SegScanPrefixKernel>(
272272
sycl::nd_range<1>{__n_groups * __wgroup_size, __wgroup_size}, [=](sycl::nd_item<1> __item) {
273273
auto __group = __item.get_group();

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,11 @@ __radix_sort_reorder_submit(_ExecutionPolicy&& __exec, ::std::size_t __segments,
596596
if (__residual > 0)
597597
{
598598
//_ValueT may not have a default constructor, so we create just a storage via union type
599-
union __storage { _ValueT __v; __storage(){} } __in_val;
599+
union __storage
600+
{
601+
_ValueT __v;
602+
__storage() {}
603+
} __in_val;
600604

601605
::std::uint32_t __bucket = __radix_states; // greater than any actual radix state
602606
if (__self_lidx < __residual)

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

-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ class __kernel_compiler
267267
static_assert(__kernel_count > 0, "At least one kernel name should be provided");
268268

269269
public:
270-
271270
template <typename _Exec>
272271
static auto
273272
__compile(_Exec&& __exec)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ using __has_known_identity = ::std::conditional_t<
6060
::std::is_same<::std::decay_t<_BinaryOp>, __dpl_sycl::__minimum<void>>,
6161
::std::is_same<::std::decay_t<_BinaryOp>, __dpl_sycl::__maximum<_Tp>>,
6262
::std::is_same<::std::decay_t<_BinaryOp>, __dpl_sycl::__maximum<void>>>>>,
63-
::std::false_type>; // This is for the case of __can_use_known_identity<_Tp>==false
63+
::std::false_type>; // This is for the case of __can_use_known_identity<_Tp>==false
6464

6565
#else //_USE_GROUP_ALGOS && defined(SYCL_IMPLEMENTATION_INTEL)
6666

0 commit comments

Comments
 (0)