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
这个提交包含在:
Sean Keely 于 2019-07-16 13:55:38 -05:00 提交
1 父节点 4daee0c8a1
当前提交 465a8eb40b
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -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;