File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
sycl/test-e2e/Assert/Inputs Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ void enqueueKernel_1_fromFile2(queue *Q) {
27
27
Q->submit ([&](handler &CGH) {
28
28
auto Acc = Buf.template get_access <mode::read_write>(CGH);
29
29
30
- CGH.parallel_for <class kernel1_from_separate_file >(
31
- numOfItems, [=](sycl::id<1 > wiID) { check_nil (Acc[wiID]); });
30
+ CGH.parallel_for <class kernel1_from_separate_file >(numOfItems,
31
+ [=](sycl::id<1 > wiID) {
32
+ Acc[wiID] = wiID % 2 ;
33
+ check_nil (Acc[wiID]);
34
+ });
32
35
});
33
36
}
34
37
@@ -39,7 +42,10 @@ void enqueueKernel_2_fromFile2(queue *Q) {
39
42
Q->submit ([&](handler &CGH) {
40
43
auto Acc = Buf.template get_access <mode::read_write>(CGH);
41
44
42
- CGH.parallel_for <class kernel2_from_separate_file >(
43
- numOfItems, [=](sycl::id<1 > wiID) { check_nil (Acc[wiID]); });
45
+ CGH.parallel_for <class kernel2_from_separate_file >(numOfItems,
46
+ [=](sycl::id<1 > wiID) {
47
+ Acc[wiID] = wiID % 2 ;
48
+ check_nil (Acc[wiID]);
49
+ });
44
50
});
45
51
}
You can’t perform that action at this time.
0 commit comments