Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 31f0c2f

Browse files
committed
Clang-format fix
1 parent 3369f9d commit 31f0c2f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

SYCL/SubGroup/broadcast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ template <typename T> void check(queue &Queue) {
2424
/*Broadcast GID of element with SGLID == SGID % SGMLR*/
2525
syclacc[NdItem.get_global_id()] =
2626
ONEAPI::broadcast(SG, T(NdItem.get_global_id(0)),
27-
SG.get_group_id() % SG.get_max_local_range()[0]);
27+
SG.get_group_id() % SG.get_max_local_range()[0]);
2828
if (NdItem.get_global_id(0) == 0)
2929
sgsizeacc[0] = SG.get_max_local_range()[0];
3030
});

SYCL/SubGroup/scan.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ void check_op(queue &Queue, T init, BinaryOperation op, bool skip_init = false,
3434
inacc[NdItem.get_global_id(0)] =
3535
ONEAPI::inclusive_scan(sg, T(NdItem.get_global_id(0)), op);
3636
} else {
37-
exacc[NdItem.get_global_id(0)] =
38-
ONEAPI::exclusive_scan(sg, T(NdItem.get_global_id(0)), init, op);
39-
inacc[NdItem.get_global_id(0)] =
40-
ONEAPI::inclusive_scan(sg, T(NdItem.get_global_id(0)), op, init);
37+
exacc[NdItem.get_global_id(0)] = ONEAPI::exclusive_scan(
38+
sg, T(NdItem.get_global_id(0)), init, op);
39+
inacc[NdItem.get_global_id(0)] = ONEAPI::inclusive_scan(
40+
sg, T(NdItem.get_global_id(0)), op, init);
4141
}
4242
if (NdItem.get_global_id(0) == 0)
4343
sgsizeacc[0] = sg.get_max_local_range()[0];

0 commit comments

Comments
 (0)