SWDEV-353548 - assert with different behavior for Release vs Debug

assert statement behavior
-Debug: crashes tests with SIGABORT
-Release: continues silently without

Change-Id: I7578eb16a7391ff7f9d68f1cae3bcea7f8225579


[ROCm/clr commit: be80bf5406]
This commit is contained in:
Ajay
2022-09-21 19:50:06 +00:00
committed by Ajay GunaShekar
parent fc3f04fa7d
commit ca2235f671
4 changed files with 19 additions and 32 deletions
@@ -291,7 +291,7 @@ hipError_t hipGraphMemcpyNode::ValidateParams(const hipMemcpy3DParms* pNodeParam
return status;
}
} else {
ShouldNotReachHere();
return hipErrorInvalidValue;
}
return hipSuccess;
}
@@ -469,7 +469,7 @@ hipError_t hipGraphMemcpyNode::SetCommandParams(const hipMemcpy3DParms* pNodePar
amd::CopyMemoryCommand* command = reinterpret_cast<amd::CopyMemoryCommand*>(commands_[0]);
command->setParams(*srcImage, *dstImage, srcOrigin, dstOrigin, copyRegion);
} else {
ShouldNotReachHere();
return hipErrorInvalidValue;
}
return hipSuccess;
}