SWDEV-480209 - Handle GraphExec object release

=> GraphExec instance is destroyed before async launch completes,
destroy after all pending graph launches
=> Remove GraphExec destroy during next sync point(hipStreamSync,
hipDeviceSync etc..)

Change-Id: I4df682aae5787fd6e5240a7be936ce50361345d0
This commit is contained in:
Anusha GodavarthySurya
2024-10-01 12:00:46 +00:00
committed by Anusha Godavarthy Surya
parent 05d6f75830
commit f9f995c6d0
7 changed files with 46 additions and 74 deletions
-2
View File
@@ -274,8 +274,6 @@ void Device::SyncAllStreams( bool cpu_wait) {
}
// Release freed memory for all memory pools on the device
ReleaseFreedMemory();
// Release all graph exec objects destroyed by user.
ReleaseGraphExec(hip::getCurrentDevice()->deviceId());
}
// ================================================================================================