File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
sycl/test/host-interop-task Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 18
18
#include < CL/sycl.hpp>
19
19
#include < chrono>
20
20
#include < iostream>
21
- #include < vector>
22
21
#include < thread>
22
+ #include < vector>
23
23
24
24
using namespace cl ::sycl;
25
25
using namespace cl ::sycl::access;
@@ -170,7 +170,7 @@ void test4() {
170
170
auto Acc1 = B1.get_access <mode::read_write, target::host_buffer>(CGH);
171
171
auto Acc2 = B2.get_access <mode::read_write, target::host_buffer>(CGH);
172
172
173
- CGH.codeplay_host_task ([=]{
173
+ CGH.codeplay_host_task ([=] {
174
174
Acc0[0 ] = 1 ;
175
175
Acc1[0 ] = 2 ;
176
176
Acc2[0 ] = 3 ;
@@ -218,20 +218,20 @@ int main(int Argc, const char *Argv[]) {
218
218
int TestIdx = std::stoi (Argv[1 ]);
219
219
220
220
switch (TestIdx) {
221
- case 1 :
222
- test1 ();
223
- break ;
224
- case 2 :
225
- test2 ();
226
- break ;
227
- case 3 :
228
- test3 ();
229
- break ;
230
- case 4 :
231
- test4 ();
232
- break ;
233
- default :
234
- return 1 ;
221
+ case 1 :
222
+ test1 ();
223
+ break ;
224
+ case 2 :
225
+ test2 ();
226
+ break ;
227
+ case 3 :
228
+ test3 ();
229
+ break ;
230
+ case 4 :
231
+ test4 ();
232
+ break ;
233
+ default :
234
+ return 1 ;
235
235
}
236
236
237
237
return 0 ;
You can’t perform that action at this time.
0 commit comments