PR from github user DiamondLovesYou.

Allow user specified profiles if the HSAIL note is not found.

Konstantin reviewed and approved.  HSAIL note is not generated by LLVM.

Change-Id: I40fbfbaedd6787b6a716507918f698d02007afe1
This commit is contained in:
Sean Keely
2019-07-16 13:55:38 -05:00
rodzic 4daee0c8a1
commit 465a8eb40b
@@ -1126,7 +1126,7 @@ hsa_status_t ExecutableImpl::LoadCodeObject(
hsa_machine_model_t codeMachineModel;
hsa_default_float_rounding_mode_t codeRoundingMode;
if (!code->GetNoteHsail(&codeHsailMajor, &codeHsailMinor, &codeProfile, &codeMachineModel, &codeRoundingMode)) {
codeProfile = HSA_PROFILE_FULL;
codeProfile = profile_;
}
if (profile_ != codeProfile) {
return HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS;