SWDEV-548417 - Fix Memleaks in Graph (#973)

Command enqueued on the graph internal stream are not released add stream during graphExec release

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Cette révision appartient à :
Godavarthy Surya, AnushaetRahul Manocha a créé et GitHub a révisé 2025-09-19 17:45:01 +05:30
1 Parent ce560304a8
révision 538528d1e5
1 fichier modifié
+1
+1
Voir le fichier
@@ -818,6 +818,7 @@ class GraphExec : public amd::ReferenceCountedObject, public Graph {
~GraphExec() {
for (auto stream : parallel_streams_) {
if (stream != nullptr) {
stream->finish();
constexpr bool kForceDestroy = true;
hip::Stream::Destroy(stream, kForceDestroy);
}