SWDEV-245381 : Updated guarantee error messages to print based on BUILD_TYPE

Change-Id: Ia21039326b440f6d807a6495a9a05dd52b384c76


[ROCm/clr commit: 69a786e8d1]
This commit is contained in:
agodavar
2021-01-05 04:53:59 -05:00
parent 5f4a45164a
commit b1eb35e730
5 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ int32_t Program::addDeviceProgram(Device& device, const void* image, size_t leng
const device::Program* same_dev_prog = nullptr;
if ((amd::IS_HIP) && (same_prog != nullptr)) {
auto same_dev_prog_map_ = same_prog->devicePrograms();
guarantee(same_dev_prog_map_.size() == 1);
guarantee(same_dev_prog_map_.size() == 1, "For same_prog, devicePrograms size != 1");
same_dev_prog = same_dev_prog_map_.begin()->second;
}