diff --git a/hipamd/src/hip_graph_internal.cpp b/hipamd/src/hip_graph_internal.cpp index 76749b119c..2d41ac756b 100644 --- a/hipamd/src/hip_graph_internal.cpp +++ b/hipamd/src/hip_graph_internal.cpp @@ -740,7 +740,8 @@ hipError_t FillCommands(std::vector>& parallelLists, first = false; continue; } - amd::Command* rootCommand = new amd::Marker(*queue, false, {}); + // marker from the same queue as the list + amd::Command* rootCommand = new amd::Marker(*singleList[0]->GetQueue(), false, {}); amd::Command::EventWaitList waitList; waitList.push_back(rootCommand); if (!singleList.empty()) {