From 7528052a8fd8969c68182bee4c74556d4b81ffd0 Mon Sep 17 00:00:00 2001 From: sdashmiz Date: Wed, 22 Feb 2023 16:23:33 -0500 Subject: [PATCH] SWDEV-377862 - kind does not show on dotprint - for to/from symbols nodes the correct kind is not showing Signed-off-by: sdashmiz Change-Id: Idf203976b71fcca67b2dd989de0daba4d0554b6d [ROCm/clr commit: ae631aaa325f973443811f102c63ab71d3687cf9] --- projects/clr/hipamd/src/hip_graph_internal.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/clr/hipamd/src/hip_graph_internal.hpp b/projects/clr/hipamd/src/hip_graph_internal.hpp index 76e9adc7df..d3cac3a09f 100644 --- a/projects/clr/hipamd/src/hip_graph_internal.hpp +++ b/projects/clr/hipamd/src/hip_graph_internal.hpp @@ -1344,6 +1344,12 @@ class hipGraphMemcpyNode1D : public hipGraphNode { memcpyDirection = "DtoH"; } else if ((srcMemory != nullptr) && (dstMemory != nullptr)) { memcpyDirection = "DtoD"; + } else { + if (kind_ == hipMemcpyHostToDevice) { + memcpyDirection = "HtoD"; + } else if (kind_ == hipMemcpyDeviceToHost) { + memcpyDirection = "DtoH"; + } } std::string label; if (flag == hipGraphDebugDotFlagsMemcpyNodeParams || flag == hipGraphDebugDotFlagsVerbose) {