From 858afb7922dbb194b7629ce765116216aacb81a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadej=20Ciglari=C4=8D?= Date: Fri, 24 Jun 2022 09:45:11 +0100 Subject: [PATCH] fix a bug that can cause transfer stream to be reused for compute, messing up the synchronization --- sycl/plugins/cuda/pi_cuda.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/plugins/cuda/pi_cuda.hpp b/sycl/plugins/cuda/pi_cuda.hpp index d0a7f3a9ed622..feda2c87ff115 100644 --- a/sycl/plugins/cuda/pi_cuda.hpp +++ b/sycl/plugins/cuda/pi_cuda.hpp @@ -466,7 +466,7 @@ struct _pi_queue { bool can_reuse_stream(pi_uint32 stream_token) { // stream token not associated with one of the compute streams if (stream_token == std::numeric_limits::max()) { - return true; + return false; } // If the command represented by the stream token was not the last command // enqueued to the stream we can not reuse the stream - we need to allow for