2
0

improve code object loading error message (#1889)

Este cometimento está contido em:
Siu Chi Chan
2020-02-28 06:17:41 -05:00
cometido por GitHub
ascendente 3e1f41c165
cometimento 57edf48191
+5 -1
Ver ficheiro
@@ -426,7 +426,11 @@ public:
auto check_hsa_error = [](hsa_status_t s) {
if (s != HSA_STATUS_SUCCESS) {
hip_throw(std::runtime_error{"error when loading code object"});
const char* hsa_err_msg;
hsa_status_string(s, &hsa_err_msg);
hip_throw(std::runtime_error{
std::string("error when loading code object: ") +
hsa_err_msg});
}
};