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

Commit

Permalink
Use DebugSyncStream where appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Jun 29, 2022
1 parent 3b4d838 commit cb30a6b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions thrust/system/cuda/detail/core/agent_launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,7 @@ namespace core {

THRUST_RUNTIME_FUNCTION void sync() const
{
if (debug_sync)
{
NV_IF_TARGET(NV_IS_HOST,
(cudaStreamSynchronize(stream);),
(cub::detail::device_synchronize();));
}
CubDebug(cub::detail::DebugSyncStream(stream, this->debug_sync));
}

template<class K>
Expand Down

0 comments on commit cb30a6b

Please sign in to comment.