hipStreamSynchronize can skip marker if stream is empty (#1667)
[ROCm/hip commit: 3a7eb694f5]
Этот коммит содержится в:
коммит произвёл
Rahul Garg
родитель
f55b1cd6a4
Коммит
492248ef12
@@ -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