@@ -28,8 +28,8 @@ void updateStats(sycl::queue myQueue, sycl::buffer<Actor> actorBuf,
28
28
sum += actorAcc[index].getPrevForce ();
29
29
}
30
30
});
31
- })
32
- . wait_and_throw ();
31
+ });
32
+ myQueue. throw_asynchronous ();
33
33
34
34
myQueue
35
35
.submit ([&](sycl::handler &cgh) {
@@ -46,8 +46,8 @@ void updateStats(sycl::queue myQueue, sycl::buffer<Actor> actorBuf,
46
46
sum += 1 .0f ;
47
47
}
48
48
});
49
- })
50
- . wait_and_throw ();
49
+ });
50
+ myQueue. throw_asynchronous ();
51
51
52
52
sycl::host_accessor<float , 1 , sycl::access::mode::read> forceSumHostAcc (
53
53
forceSumBuf);
@@ -81,8 +81,8 @@ void updateStats(sycl::queue myQueue, sycl::buffer<Actor> actorBuf,
81
81
destinationTimesAcc[index] = duration;
82
82
}
83
83
});
84
- })
85
- . wait_and_throw ();
84
+ });
85
+ myQueue. throw_asynchronous ();
86
86
87
87
sycl::host_accessor<int , 1 , sycl::access::mode::read>
88
88
destinationTimesHostAcc (destinationTimesBuf);
@@ -120,8 +120,8 @@ void finalizeStats(sycl::queue myQueue, std::vector<float> averageForces,
120
120
[=](sycl::id<1 > index, auto &sum) {
121
121
sum += durationAcc[index];
122
122
});
123
- })
124
- . wait_and_throw ();
123
+ });
124
+ myQueue. throw_asynchronous ();
125
125
126
126
sycl::host_accessor<int , 1 , sycl::access::mode::read>
127
127
durationSumHostAcc (durationSumBuf);
0 commit comments