Skip to content

Commit e848c15

Browse files
authored
[SYCL][PI][CUDA] Fix transfer stream reuse (#6354)
Fixed a bug that can cause transfer stream to be reused for compute, messing up the synchronization.
1 parent f0f5518 commit e848c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/cuda/pi_cuda.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ struct _pi_queue {
466466
bool can_reuse_stream(pi_uint32 stream_token) {
467467
// stream token not associated with one of the compute streams
468468
if (stream_token == std::numeric_limits<pi_uint32>::max()) {
469-
return true;
469+
return false;
470470
}
471471
// If the command represented by the stream token was not the last command
472472
// enqueued to the stream we can not reuse the stream - we need to allow for

0 commit comments

Comments
 (0)