From 7c559ce47758bd23f746566c0f044a10c3365ee5 Mon Sep 17 00:00:00 2001 From: Allison Vacanti Date: Tue, 17 May 2022 18:27:20 -0400 Subject: [PATCH] Use DebugSyncStream where appropriate. --- thrust/system/cuda/detail/core/agent_launcher.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/thrust/system/cuda/detail/core/agent_launcher.h b/thrust/system/cuda/detail/core/agent_launcher.h index b604f293ec..804ccf81c1 100644 --- a/thrust/system/cuda/detail/core/agent_launcher.h +++ b/thrust/system/cuda/detail/core/agent_launcher.h @@ -514,9 +514,7 @@ namespace core { { if (debug_sync) { - NV_IF_TARGET(NV_IS_HOST, - (cudaStreamSynchronize(stream);), - (cub::detail::device_synchronize();)); + cub::DebugSyncStream(stream); } }