Skip to content

Commit d574575

Browse files
committed
clang format
1 parent e3573df commit d574575

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

tests/extension/khr_max_num_work_groups/max_num_work_groups_macro.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
#include "../../common/common.h"
2222

2323
namespace max_num_work_groups_macro::tests {
24-
TEST_CASE(
25-
"the max_num_work_groups extension defines the "
26-
"SYCL_KHR_MAX_NUM_WORK_GROUPS macro",
27-
"[khr_max_num_work_groups]") {
28-
#ifndef SYCL_KHR_MAX_NUM_WORK_GROUPS
29-
static_assert(false, "SYCL_KHR_MAX_NUM_WORK_GROUPS is not defined");
30-
#endif
31-
}
24+
TEST_CASE(
25+
"the max_num_work_groups extension defines the "
26+
"SYCL_KHR_MAX_NUM_WORK_GROUPS macro",
27+
"[khr_max_num_work_groups]") {
28+
#ifndef SYCL_KHR_MAX_NUM_WORK_GROUPS
29+
static_assert(false, "SYCL_KHR_MAX_NUM_WORK_GROUPS is not defined");
30+
#endif
31+
}
3232
} // namespace max_num_work_groups_macro::tests

tests/extension/khr_max_num_work_groups/max_num_work_groups_submission.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,20 @@ void check_submit() {
3232
auto local = sycl::range<DIMENSION>();
3333
for (int i = 0; i < DIMENSION; i++) {
3434
local[i] = 1;
35-
//to avoid running too long
35+
// to avoid running too long
3636
max_work_groups_nd[i] = std::min(
3737
max_work_groups_nd[i],
3838
static_cast<size_t>(std::numeric_limits<unsigned int>::max() + 1));
3939
}
4040

4141
int* a = sycl::malloc_shared<int>(1, queue);
4242
a[0] = 0;
43-
queue.parallel_for(sycl::nd_range(max_work_groups_nd, local), [=](auto i) {
44-
if (i.get_global_id(0) == 0) a[0] = 1;
45-
}).wait_and_throw();
43+
queue
44+
.parallel_for(sycl::nd_range(max_work_groups_nd, local),
45+
[=](auto i) {
46+
if (i.get_global_id(0) == 0) a[0] = 1;
47+
})
48+
.wait_and_throw();
4649

4750
CHECK(a[0] == 1);
4851

0 commit comments

Comments
 (0)