SWDEV-336576 - updated graph check

hipGraphExecMemcpyNodeSetParamsFromSymbo was not working in functional
case

Change-Id: I2ad04f6f91519efa075c36fe737a695fa1bc127a


[ROCm/clr commit: bb9e52ab9f]
Этот коммит содержится в:
pghafari authored and Payam Ghafari committed 2022-05-17 17:36:10 -04:00
1 родитель a3c9b7dde6
Коммит b2188142d9
1 file changed
+2 -2
+2 -2
Просмотреть файл
@@ -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);
}