From bb285f0d4338c45e7c549d6c27e8875b0bf7b2e8 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Tue, 1 Oct 2024 12:17:22 +0000 Subject: [PATCH] SWDEV-488033 - Add dependency between memcpy node for child graph. Since 29cc678d8d1b0ce755eede4ec9a12892d5d6889f H2D can't be synced always so it's good to have dependency set. Change-Id: I7d757a9b6afd3cf7064dc3b7014677cdf754125a [ROCm/hip-tests commit: 8515ac9b2f0511016349965478fe23922372ef05] --- projects/hip-tests/catch/unit/graph/hipGraphDebugDotPrint.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/graph/hipGraphDebugDotPrint.cc b/projects/hip-tests/catch/unit/graph/hipGraphDebugDotPrint.cc index ec6dcb4eb5..04e3c874e3 100644 --- a/projects/hip-tests/catch/unit/graph/hipGraphDebugDotPrint.cc +++ b/projects/hip-tests/catch/unit/graph/hipGraphDebugDotPrint.cc @@ -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 graphData; - graphData["->"] = 3; // number of edges + graphData["->"] = 4; // number of edges graphData["MEMCPY"] = 6; graphData["HtoA"] = 1; graphData["HtoD"] = 3;