Skip to content

Commit db2f720

Browse files
committed
Fix formatting
1 parent 64096a7 commit db2f720

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sycl/test-e2e/WorkGroupMemory/reduction_free_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44

5-
// The name mangling for free function kernels currently does not work with PTX.
65
// UNSUPPORTED: cuda
6+
// UNSUPPORTED-INTENDED: The name mangling for free function kernels currently does not work with PTX.
77

88
// Usage of work group memory parameters in free function kernels is not yet
99
// implemented.

sycl/test-e2e/WorkGroupMemory/reduction_lambda.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ context ctx = q.get_context();
2020

2121
constexpr size_t SIZE = 128;
2222

23-
template <typename T> struct S { T val; };
23+
template <typename T> struct S {
24+
T val;
25+
};
2426

25-
template <typename T> struct M { T val; };
27+
template <typename T> struct M {
28+
T val;
29+
};
2630

2731
union U {
2832
S<int> s;
@@ -45,7 +49,7 @@ void test_struct(size_t SIZE, size_t WGSIZE) {
4549
}
4650
nd_range ndr{{SIZE}, {WGSIZE}};
4751
q.submit([&](sycl::handler &cgh) {
48-
ext::oneapi::experimental::work_group_memory<S<T>[]> mem { WGSIZE, cgh };
52+
ext::oneapi::experimental::work_group_memory<S<T>[]> mem{WGSIZE, cgh};
4953
ext::oneapi::experimental ::work_group_memory<T> result{cgh};
5054
cgh.parallel_for(ndr, [=](nd_item<> it) {
5155
size_t local_id = it.get_local_id();

0 commit comments

Comments
 (0)