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
orang tua 7822bf7e42
melakukan 387d0aa829
6 mengubah file dengan 24 tambahan dan 25 penghapusan
+1 -1
Melihat 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");
}
}
}