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
This commit is contained in:
Christophe Paquot
2021-06-16 09:13:58 -07:00
committed by Maneesh Gupta
parent c49f1069ab
commit 133287f31f
3 changed files with 15 additions and 3 deletions
+3 -1
View File
@@ -145,7 +145,9 @@ bool Event::setStatus(int32_t status, uint64_t timeStamp) {
if (status <= CL_COMPLETE) {
// Before we notify the waiters that this event reached the CL_COMPLETE
// status, we release all the resources associated with this instance.
releaseResources();
if (!IS_HIP) {
releaseResources();
}
activity_.ReportEventTimestamps(command());
// Broadcast all the waiters.