Skip to content

Commit 6207521

Browse files
committed
update dangling ns in test and clang-format
Signed-off-by: James Brodman <[email protected]>
1 parent 6308c5d commit 6207521

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

sycl/test/aot/spec_const_aot.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ int main(int argc, char **argv) {
3232
}
3333
});
3434

35-
std::cout << "Running on " << q.get_device().get_info<info::device::name>() << "\n";
35+
std::cout << "Running on " << q.get_device().get_info<info::device::name>()
36+
<< "\n";
3637
cl::sycl::program prog(q.get_context());
3738

38-
cl::sycl::experimental::spec_constant<int32_t, MyInt32Const> i32 =
39+
cl::sycl::ONEAPI::experimental::spec_constant<int32_t, MyInt32Const> i32 =
3940
prog.set_spec_constant<MyInt32Const>(10);
4041

4142
prog.build_with_kernel_type<Kernel>();
@@ -46,11 +47,8 @@ int main(int argc, char **argv) {
4647

4748
q.submit([&](cl::sycl::handler &cgh) {
4849
auto acc = buf.get_access<cl::sycl::access::mode::write>(cgh);
49-
cgh.single_task<Kernel>(
50-
prog.get_kernel<Kernel>(),
51-
[=]() {
52-
acc[0] = i32.get();
53-
});
50+
cgh.single_task<Kernel>(prog.get_kernel<Kernel>(),
51+
[=]() { acc[0] = i32.get(); });
5452
});
5553
}
5654
bool passed = true;

0 commit comments

Comments
 (0)