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>
Этот коммит содержится в:
Godavarthy Surya, Anusha
2025-09-19 17:45:01 +05:30
коммит произвёл GitHub
родитель ce560304a8
Коммит 538528d1e5
+1
Просмотреть файл
@@ -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);
}