SWDEV-368166 - hipGraphAddMemcpyNode1D paramcheck
adding parameter check for hipGraphAddMemcpyNode1D Change-Id: I94dc944bd55ea04b8e9288a27c8f58dd3720161b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user