hipStreamSynchronize can skip marker if stream is empty (#1667)

[ROCm/clr commit: dfaaf04611]
이 커밋은 다음에 포함됨:
Jeff Daily
2019-11-19 09:42:43 -08:00
커밋한 사람 Rahul Garg
부모 6813f0436c
커밋 58d1ae32ee
+2
파일 보기
@@ -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);
}