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
Dieser Commit ist enthalten in:
Christophe Paquot
2021-06-16 09:13:58 -07:00
committet von Maneesh Gupta
Ursprung c49f1069ab
Commit 133287f31f
3 geänderte Dateien mit 15 neuen und 3 gelöschten Zeilen
+3 -1
Datei anzeigen
@@ -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.