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


[ROCm/ROCR-Runtime commit: 465a8eb40b]
This commit is contained in:
Sean Keely
2019-07-16 13:55:38 -05:00
orang tua 9364c7ac0e
melakukan 49e70a3ef5
@@ -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;