SWDEV-374380 - hipGraphAddMemcpyNode1D errorCheck
Change-Id: I50501de139e3898783c1cc9c91c5ed3ed2564f3b
[ROCm/clr commit: 236a725d67]
Tá an tiomantas seo le fáil i:
tiomanta ag
Payam Ghafari
tuismitheoir
f94a34e128
tiomantas
7261e8fa39
@@ -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);
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir