SWDEV-374380 - hipGraphAddMemcpyNode1D errorCheck
Change-Id: I50501de139e3898783c1cc9c91c5ed3ed2564f3b
[ROCm/clr commit: 236a725d67]
This commit is contained in:
@@ -103,7 +103,7 @@ hipError_t ihipGraphAddMemcpyNode1D(hipGraphNode_t* pGraphNode, hipGraph_t graph
|
||||
const hipGraphNode_t* pDependencies, size_t numDependencies,
|
||||
void* dst, const void* src, size_t count, hipMemcpyKind kind) {
|
||||
if (pGraphNode == nullptr || graph == nullptr ||
|
||||
(numDependencies > 0 && pDependencies == nullptr)) {
|
||||
(numDependencies > 0 && pDependencies == nullptr) || count ==0) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
hipError_t status = hipGraphMemcpyNode1D::ValidateParams(dst, src, count, kind);
|
||||
|
||||
Reference in New Issue
Block a user