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
[ROCm/clr commit: 6ae5d6896c]
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user