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]
Этот коммит содержится в:
Christophe Paquot
2021-06-16 09:13:58 -07:00
коммит произвёл Maneesh Gupta
родитель 863a43abfc
Коммит dfbdbfecb5
3 изменённых файлов: 15 добавлений и 3 удалений
+3 -1
Просмотреть файл
@@ -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.