SWDEV-370309 - GetNodes should do levelorder
- GetNode should retrun nodes based on the dependency between them Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Ie8ecdd976f8dc9d9b5dc2adc6ae8f879912c8169
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Anusha Godavarthy Surya
ebeveyn
f2b0542442
işleme
ce60d47b61
@@ -1219,7 +1219,8 @@ hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t* nodes, size_t* num
|
||||
if (graph == nullptr || numNodes == nullptr) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
const std::vector<hipGraphNode_t>& graphNodes = graph->GetNodes();
|
||||
std::vector<hipGraphNode_t> graphNodes;
|
||||
graph->LevelOrder(graphNodes);
|
||||
if (nodes == nullptr) {
|
||||
*numNodes = graphNodes.size();
|
||||
HIP_RETURN(hipSuccess);
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle