Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 0a62fd4

Browse files
committed
Use DebugSyncStream where appropriate.
1 parent c4c36db commit 0a62fd4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

thrust/system/cuda/detail/core/agent_launcher.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,7 @@ namespace core {
512512

513513
THRUST_RUNTIME_FUNCTION void sync() const
514514
{
515-
if (debug_sync)
516-
{
517-
NV_IF_TARGET(NV_IS_HOST,
518-
(cudaStreamSynchronize(stream);),
519-
(cub::detail::device_synchronize();));
520-
}
515+
CubDebug(cub::detail::DebugSyncStream(stream, this->debug_sync));
521516
}
522517

523518
template<class K>

0 commit comments

Comments
 (0)