Closed jeffdaily closed 4 years ago
This PR seems to break HIP unit tests. Needs more testing.
HIP unit tests are passing with current PR. Removed dontmerge labels.
After discussion with @scchan, instead of changing isEmpty
et all, we should find a way to notify HCC's dep tracking.
An external library can call
acquireLockedHsaQueue()
and insert its own packets into the HSA queue. #1382 caught the case where doing so would put the HSAQueue into an inconsistent state. However, it did not go far enough.isEmpty()
should reflect the contents of the underlying HSA queue (if any), not the contents of theHSAQueue::asyncOps
vector.This will become a blocker for future HIP/hcc runtime improvements.