SWDEV-336576 - updated graph check
hipGraphExecMemcpyNodeSetParamsFromSymbo was not working in functional
case
Change-Id: I2ad04f6f91519efa075c36fe737a695fa1bc127a
[ROCm/clr commit: bb9e52ab9f]
This commit is contained in:
zatwierdzone przez
Payam Ghafari
rodzic
a3c9b7dde6
commit
b2188142d9
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user