File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ int main(int argc, char **argv) {
32
32
}
33
33
});
34
34
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 " ;
36
37
cl::sycl::program prog (q.get_context ());
37
38
38
- cl::sycl::experimental::spec_constant<int32_t , MyInt32Const> i32 =
39
+ cl::sycl::ONEAPI:: experimental::spec_constant<int32_t , MyInt32Const> i32 =
39
40
prog.set_spec_constant <MyInt32Const>(10 );
40
41
41
42
prog.build_with_kernel_type <Kernel>();
@@ -46,11 +47,8 @@ int main(int argc, char **argv) {
46
47
47
48
q.submit ([&](cl::sycl::handler &cgh) {
48
49
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 (); });
54
52
});
55
53
}
56
54
bool passed = true ;
You can’t perform that action at this time.
0 commit comments