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:
Anusha GodavarthySurya
2024-02-27 13:46:44 +00:00
committed by Saleel Kudchadker
parent ea66946399
commit e0e63eb04d
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -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();