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 authored and Maneesh Gupta committed 2021-08-22 23:56:07 -07:00
1 parent 863a43abfc
commit dfbdbfecb5
3 files changed
+15 -3

No files matched your search

+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.