From bb9e52ab9f0329025d9cf674a51b480a08efa3f4 Mon Sep 17 00:00:00 2001 From: pghafari Date: Tue, 17 May 2022 05:32:52 -0400 Subject: [PATCH] SWDEV-336576 - updated graph check hipGraphExecMemcpyNodeSetParamsFromSymbo was not working in functional case Change-Id: I2ad04f6f91519efa075c36fe737a695fa1bc127a --- hipamd/src/hip_graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/src/hip_graph.cpp b/hipamd/src/hip_graph.cpp index 46c2a10944..9f4b8cade6 100644 --- a/hipamd/src/hip_graph.cpp +++ b/hipamd/src/hip_graph.cpp @@ -1501,8 +1501,8 @@ hipError_t hipGraphAddMemcpyNodeFromSymbol(hipGraphNode_t* pGraphNode, hipGraph_ size_t count, size_t offset, hipMemcpyKind kind) { HIP_INIT_API(hipGraphAddMemcpyNodeFromSymbol, pGraphNode, graph, pDependencies, numDependencies, dst, symbol, count, offset, kind); - if (graph == nullptr || pGraphNode == nullptr || pDependencies == nullptr || - dst == nullptr || !ihipGraph::isGraphValid(graph)) { + if (graph == nullptr || pGraphNode == nullptr || (numDependencies > 0 && pDependencies == nullptr) + || dst == nullptr || !ihipGraph::isGraphValid(graph)) { HIP_RETURN(hipErrorInvalidValue); }