Skip to content

Commit 14bb904

Browse files
authored
Merge pull request #1083 from dkolsen-pgi/bug/cudaStreamWaitEvent
Add third argument to calls to cudaStreamWaitEvent
2 parents 8f00886 + ee928c1 commit 14bb904

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/nvexec/stream/bulk.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
202202

203203
if (begin < end) {
204204
cudaSetDevice(dev);
205-
cudaStreamWaitEvent(stream, op_state.ready_to_launch_);
205+
cudaStreamWaitEvent(stream, op_state.ready_to_launch_, 0);
206206
kernel<block_threads, As&...>
207207
<<<grid_blocks, block_threads, 0, stream>>>(begin, end, self.f_, as...);
208208
cudaEventRecord(op_state.ready_to_complete_[dev], op_state.streams_[dev]);
@@ -225,7 +225,7 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
225225

226226
for (int dev = 0; dev < op_state.num_devices_; dev++) {
227227
if (dev != op_state.current_device_) {
228-
cudaStreamWaitEvent(baseline_stream, op_state.ready_to_complete_[dev]);
228+
cudaStreamWaitEvent(baseline_stream, op_state.ready_to_complete_[dev], 0);
229229
}
230230
}
231231
}

include/nvexec/stream/ensure_started.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
246246
if (status == cudaSuccess) {
247247
if constexpr (stream_sender<Sender, env_t>) {
248248
status = STDEXEC_DBG_ERR(
249-
cudaStreamWaitEvent(op->get_stream(), op->shared_state_->event_));
249+
cudaStreamWaitEvent(op->get_stream(), op->shared_state_->event_, 0));
250250
}
251251

252252
visit(

include/nvexec/stream/split.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
236236
if (status == cudaSuccess) {
237237
if constexpr (stream_sender<Sender, env_t>) {
238238
status = STDEXEC_DBG_ERR(
239-
cudaStreamWaitEvent(op->get_stream(), op->shared_state_->event_));
239+
cudaStreamWaitEvent(op->get_stream(), op->shared_state_->event_, 0));
240240
}
241241

242242
visit(

include/nvexec/stream/when_all.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ namespace nvexec::STDEXEC_STREAM_DETAIL_NS {
259259

260260
for (int i = 0; i < sizeof...(SenderIds); i++) {
261261
if (status_ == cudaSuccess) {
262-
status_ = STDEXEC_DBG_ERR(cudaStreamWaitEvent(stream, events_[i]));
262+
status_ = STDEXEC_DBG_ERR(cudaStreamWaitEvent(stream, events_[i], 0));
263263
}
264264
}
265265
} else {

0 commit comments

Comments
 (0)