add an error message before aborting if a wrong GPU target was used for compilation

Change-Id: I7b41e93d420dbc47978238a681f2956a0def01cb


[ROCm/hip commit: 9121a74ac1]
Tá an tiomantas seo le fáil i:
Aryan Salmanpour
2020-07-06 12:38:47 -04:00
tiomanta ag Aryan Salmanpour
tuismitheoir 2ac9c18acf
tiomantas 7a2961fc57
+1 -2
Féach ar an gComhad
@@ -89,8 +89,7 @@ hipError_t CodeObject::extractCodeObjectFromFatBinary(const void* data,
if (num_code_objs == devices.size()) {
return hipSuccess;
} else {
DevLogError("hipErrorNoBinaryForGpu: Coudn't find binary for current devices!");
guarantee(false);
guarantee(false && "hipErrorNoBinaryForGpu: Coudn't find binary for current devices!");
return hipErrorNoBinaryForGpu;
}
}