SWDEV-460770 - Handle Graph Exec release

Handle GraphExec instance is destroyed before async launch completes
GraphExec instance is destroyed after async launch completes
GraphExec instance is destroyed without a launch

Change-Id: I45a7c82295fea916c7559bd8f796df710513aea1
This commit is contained in:
Anusha GodavarthySurya
2024-03-28 17:28:41 +00:00
committed by Maneesh Gupta
parent 51e4368723
commit bf4d10ff61
7 changed files with 64 additions and 8 deletions
+2 -1
View File
@@ -444,7 +444,8 @@ hipError_t hipEventSynchronize(hipEvent_t event) {
hipError_t status = e->synchronize();
// Release freed memory for all memory pools on the device
g_devices[e->deviceId()]->ReleaseFreedMemory();
// Release all graph exec objects destroyed by user.
ReleaseGraphExec(e->deviceId());
HIP_RETURN(status);
}