From 465a8eb40ba3442bcde9c9c9a32dffddcc9609fd Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Tue, 16 Jul 2019 13:55:38 -0500 Subject: [PATCH] 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 --- runtime/hsa-runtime/loader/executable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/loader/executable.cpp b/runtime/hsa-runtime/loader/executable.cpp index bad09195cb..e8dde0409f 100644 --- a/runtime/hsa-runtime/loader/executable.cpp +++ b/runtime/hsa-runtime/loader/executable.cpp @@ -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;