diff --git a/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp b/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp index c78fe207f4..d1b8550d3a 100644 --- a/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp +++ b/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp @@ -1399,24 +1399,7 @@ internal_compile_failure: acl_error IsValidCompilationOptions(aclBinary *bin, aclLogFunction compile_callback) { - acl_error error_code = ACL_SUCCESS; -#if defined(WITH_TARGET_HSAIL) && defined(WITH_TARGET_AMDIL) - amd::option::Options* opts = reinterpret_cast(bin->options); - std::string major = std::string(opts->oVariables->CLStd).substr(2,1); - std::string error_msg; - if (isHSAILTarget(bin->target) && major == "1") { - error_msg = "Error: HSAIL doesn't support OpenCL version < 2.0."; - error_code = ACL_INVALID_OPTION; - } - if (isAMDILTarget(bin->target) && major == "2") { - error_msg = "Error: AMDIL doesn't support OpenCL version >= 2.0."; - error_code = ACL_INVALID_OPTION; - } - if (ACL_SUCCESS != error_code && compile_callback) { - compile_callback(error_msg.c_str(), error_msg.size()); - } -#endif - return error_code; + return ACL_SUCCESS; } acl_error ACL_API_ENTRY