SWDEV-249499 - Add message to Guarantee assert code in hip runtime.

Change-Id: I1850463675bbc3e6ff5e3cef8211b1fd40e55f96


[ROCm/hip commit: 9c75797d9f]
This commit is contained in:
kjayapra-amd
2020-08-24 17:25:21 -04:00
parent 4fcbffd307
commit 16b52c4a62
3 changed files with 25 additions and 20 deletions
+1 -1
View File
@@ -127,7 +127,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);
guarantee((hip_error == hipSuccess) && "Cannot Retrieve Static function");
}
}
}