SWDEV-447545 - Fix Enable/Disable node with hipGraph
Node can be enabled/disabled only for kernel, memcpy and memset nodes. If the node is disabled it becomes empty node. To maintain ordering just enqueue marker with respective node dependencies. Change-Id: I710f3e88ab4e76c81f6f86a40a7dc61fd4c7e440
This commit is contained in:
committed by
Saleel Kudchadker
parent
ea66946399
commit
e0e63eb04d
@@ -629,7 +629,7 @@ hipError_t GraphExec::Run(hipStream_t stream) {
|
||||
rootCommand->release();
|
||||
}
|
||||
for (int i = 0; i < topoOrder_.size(); i++) {
|
||||
topoOrder_[i]->EnqueueCommands(stream);
|
||||
topoOrder_[i]->EnqueueCommands(reinterpret_cast<hipStream_t>(topoOrder_[i]->GetQueue()));
|
||||
}
|
||||
if (endCommand != nullptr) {
|
||||
endCommand->enqueue();
|
||||
|
||||
Reference in New Issue
Block a user