SWDEV-368166 - hipGraphAddMemcpyNode1D paramcheck

adding parameter check for hipGraphAddMemcpyNode1D

Change-Id: I94dc944bd55ea04b8e9288a27c8f58dd3720161b
This commit is contained in:
pghafari
2022-12-06 11:22:49 -05:00
committed by Payam Ghafari
parent e2279b3869
commit 5acc2cdcc2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ hipError_t ihipGraphAddMemcpyNode1D(hipGraphNode_t* pGraphNode, hipGraph_t graph
(numDependencies > 0 && pDependencies == nullptr)) {
return hipErrorInvalidValue;
}
hipError_t status = ihipMemcpy_validate(dst, src, count, kind);
hipError_t status = hipGraphMemcpyNode1D::ValidateParams(dst, src, count, kind);
if (status != hipSuccess) {
return status;
}
+1 -1
View File
@@ -1201,7 +1201,7 @@ class hipGraphMemcpyNode1D : public hipGraphNode {
}
// ToDo: use this when commands are cloned and command params are to be updated
hipError_t SetCommandParams(void* dst, const void* src, size_t count, hipMemcpyKind kind);
hipError_t ValidateParams(void* dst, const void* src, size_t count, hipMemcpyKind kind);
static hipError_t ValidateParams(void* dst, const void* src, size_t count, hipMemcpyKind kind);
std::string GetLabel(hipGraphDebugDotFlags flag) {
size_t sOffsetOrig = 0;
amd::Memory* origSrcMemory = getMemoryObject(src_, sOffsetOrig);