Skip to content

Commit

Permalink
hipStreamSynchronize can skip marker if stream is empty (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily authored and gargrahul committed Nov 19, 2019
1 parent 188752b commit 3a7eb69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hip_hcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ void ihipStream_t::locked_wait() {
hc::completion_future marker;
{
LockedAccessor_StreamCrit_t crit(_criticalData);
// skipping marker since stream is empty
if (crit->_av.get_is_empty()) return;
marker = crit->_av.create_marker(hc::no_scope);
}

Expand Down

0 comments on commit 3a7eb69

Please sign in to comment.