From f54da9358b9265661fc2c504d91fc346ff63bb55 Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Sat, 9 Mar 2019 14:23:34 -0500 Subject: [PATCH] remove old style triple name --- .../include/hip/hcc_detail/code_object_bundle.hpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp index 67154026ef..b3f47ba542 100644 --- a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp +++ b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp @@ -59,20 +59,6 @@ std::string isa_name(std::string triple) triple.erase(0, sizeof(offload_prefix) - 1); - static hsa_isa_t tmp{}; - static const bool is_old_rocr{ - hsa_isa_from_name(triple.c_str(), &tmp) != HSA_STATUS_SUCCESS}; - - if (is_old_rocr) { - std::string tmp{triple.substr(triple.rfind('x') + 1)}; - triple.replace(0, std::string::npos, "AMD:AMDGPU"); - - for (auto&& x : tmp) { - triple.push_back(':'); - triple.push_back(x); - } - } - return triple; }