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

Este commit está contenido en:
Jeff Daily authored and Rahul Garg committed 2019-11-19 09:42:43 -08:00
1 padre 188752b2cb
commit 3a7eb694f5
1 file changed
+2
+2
Ver fichero
@@ -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);
}