SWDEV-468424 - Fix kernelArg mgr release and clear commands after capture
Creation of ReferenceCountedObject will increase reference count by 1. Clear the commands from Node after capture so that they wont be reference later. Change-Id: I1cc4085939cf65218ec2aa2e25ab6d737f7cacd3
이 커밋은 다음에 포함됨:
@@ -252,6 +252,8 @@ struct GraphNode : public hipGraphNodeDOTAttribute {
|
||||
command->submit(*(command->queue())->vdev());
|
||||
command->release();
|
||||
}
|
||||
// Commands are captured and released. Clear them from the object.
|
||||
commands_.clear();
|
||||
}
|
||||
hip::Stream* GetQueue() const { return stream_; }
|
||||
|
||||
@@ -704,7 +706,6 @@ struct GraphExec : public amd::ReferenceCountedObject {
|
||||
// child graph nodes and each child graph has only one node.
|
||||
void SetKernelArgManager(GraphKernelArgManager* kernArgManager) {
|
||||
kernArgManager_ = kernArgManager;
|
||||
kernArgManager_->retain();
|
||||
}
|
||||
GraphKernelArgManager* GetKernelArgManager() {
|
||||
return kernArgManager_;
|
||||
|
||||
새 이슈에서 참조
사용자 차단