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

Change-Id: Ifafbc075d6b9860da040c72859127c4e638a786f
This commit is contained in:
agodavar
2021-01-05 05:08:50 -05:00
committed by Anusha Godavarthy Surya
parent 7e6d748f26
commit 6838df46eb
6 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ extern "C" void __hipRegisterFunction(
hipError_t hip_error = hipSuccess;
for (size_t dev_idx = 0; dev_idx < g_devices.size(); ++dev_idx) {
hip_error = PlatformState::instance().getStatFunc(&hfunc, hostFunction, dev_idx);
guarantee((hip_error == hipSuccess) && "Cannot Retrieve Static function");
guarantee((hip_error == hipSuccess), "Cannot Retrieve Static function");
}
}
}