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:
committed by
Maneesh Gupta
parent
863a43abfc
commit
dfbdbfecb5
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user