hsa_rsrc_factory sync

Change-Id: Idecbc0cdad6068eae5259cb043bdf5746b430aec
This commit is contained in:
Evgeny
2020-01-29 22:16:28 -06:00
parent 2bcf8f653d
commit 5615ade977
5 changed files with 118 additions and 25 deletions
+6 -1
View File
@@ -167,7 +167,12 @@ class Tracker {
auto end = sig_list_.end();
while (it != end) {
auto cur = it++;
hsa_rsrc_->SignalWait((*cur)->signal);
// The wait should be optiona as there possible some inter kernel dependencies and it possible to wait for
// the kernels will never be lunched as the application was finished by some reason.
#if 0
// FIXME: currently the signal value for tracking signals are taken from original application signal
hsa_rsrc_->SignalWait((*cur)->signal, 1);
#endif
Erase(cur);
}
}