File tree Expand file tree Collapse file tree
sycl/test-e2e/Assert/Inputs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ void enqueueKernel_1_fromFile2(queue *Q) {
2727 Q->submit ([&](handler &CGH ) {
2828 auto Acc = Buf.template get_access <mode::read_write>(CGH );
2929
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+ });
3235 });
3336}
3437
@@ -39,7 +42,10 @@ void enqueueKernel_2_fromFile2(queue *Q) {
3942 Q->submit ([&](handler &CGH ) {
4043 auto Acc = Buf.template get_access <mode::read_write>(CGH );
4144
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+ });
4450 });
4551}
You can’t perform that action at this time.
0 commit comments