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

Change-Id: I7b41e93d420dbc47978238a681f2956a0def01cb


[ROCm/hip commit: 9121a74ac1]
Αυτή η υποβολή περιλαμβάνεται σε:
Aryan Salmanpour authored and Aryan Salmanpour committed 2020-07-07 14:50:44 -04:00
1 γονέας 2ac9c18acf
υποβολή 7a2961fc57
1 file changed
+1 -2
@@ -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;
}
}