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
This commit is contained in:
Ajay authored and Ajay GunaShekar committed 2022-10-11 14:00:28 -04:00
1 parent 7ef4eada54
commit be80bf5406
4 files changed
+19 -32

No files matched your search

+2 -2
View File
@@ -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;
}