SWDEV-488033 - Add dependency between memcpy node for child graph.
Since29cc678d8dH2D can't be synced always so it's good to have dependency set. Change-Id: I7d757a9b6afd3cf7064dc3b7014677cdf754125a [ROCm/hip-tests commit:8515ac9b2f]
This commit is contained in:
committad av
Jaydeepkumar Patel
förälder
6fd086821b
incheckning
bb285f0d43
@@ -226,7 +226,7 @@ static void hipGraphDebugDotPrint_Functional(const char* fName,
|
||||
HIP_CHECK(hipGraphAddMemcpyNodeFromSymbol(&memcpyFromSymbolNode, childGraph,
|
||||
nullptr, 0, B_h, HIP_SYMBOL(globalIn),
|
||||
Nbytes, 0, hipMemcpyDeviceToHost));
|
||||
|
||||
HIP_CHECK(hipGraphAddDependencies(childGraph, &memcpyToSymbolNode, &memcpyFromSymbolNode, 1));
|
||||
// Add memset node to graph & validate its DebugDotPrint descriptions
|
||||
hipMemsetParams memsetParams{};
|
||||
memset(&memsetParams, 0, sizeof(memsetParams));
|
||||
@@ -244,7 +244,7 @@ static void hipGraphDebugDotPrint_Functional(const char* fName,
|
||||
nullptr, 0, childGraph));
|
||||
|
||||
std::map<std::string, unsigned> graphData;
|
||||
graphData["->"] = 3; // number of edges
|
||||
graphData["->"] = 4; // number of edges
|
||||
graphData["MEMCPY"] = 6;
|
||||
graphData["HtoA"] = 1;
|
||||
graphData["HtoD"] = 3;
|
||||
|
||||
Referens i nytt ärende
Block a user