hipStreamSynchronize can skip marker if stream is empty (#1667)
[ROCm/clr commit: dfaaf04611]
Этот коммит содержится в:
коммит произвёл
Rahul Garg
родитель
6813f0436c
Коммит
58d1ae32ee
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user