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>
This commit is contained in:
committato da
GitHub
parent
ce560304a8
commit
538528d1e5
@@ -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);
|
||||
}
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user