SWDEV-240806 - Release resources in Command::terminate for HIP

We do not want to release resources during setStatus in HIP because of Graphs

Change-Id: Idc7b188ab5f8be6975ea91005dd2bbf177401f8c


[ROCm/clr commit: 133287f31f]
This commit is contained in:
Christophe Paquot
2021-06-16 09:13:58 -07:00
committed by Maneesh Gupta
parent 863a43abfc
commit dfbdbfecb5
3 changed files with 15 additions and 3 deletions
+4 -1
View File
@@ -262,7 +262,10 @@ class Command : public Event {
eventWaitList_(nullWaitList),
commandWaitBits_(0) {}
bool terminate() {
virtual bool terminate() {
if (IS_HIP) {
releaseResources();
}
if (Agent::shouldPostEventEvents() && type() != 0) {
Agent::postEventFree(as_cl(static_cast<Event*>(this)));
}