From 1237a0b691fc25739917ef91be257ce294fd1c95 Mon Sep 17 00:00:00 2001 From: David Salinas Date: Tue, 16 Apr 2019 19:33:34 +0000 Subject: [PATCH] Revert "append the ELF flags for sram-ecc and xnack to the target triple per code object" This reverts commit 4d0dc45078580b09a7ad969ab1af8fb9b24f1870. --- .../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 1b24bf55fb..8b1ae8aa49 100644 --- a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp +++ b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp @@ -31,8 +31,6 @@ THE SOFTWARE. #include #include #include -#include -#include "elfio/elfio.hpp" namespace hip_impl { @@ -127,18 +125,6 @@ class Bundled_code_header { std::copy_n(f + y.header.offset, y.header.bundle_sz, std::back_inserter(y.blob)); - // we need to read the blob (ELF) for this bundle to get the feature flags - std::stringstream tmp{std::string{y.blob.cbegin(), y.blob.cend()}}; - ELFIO::elfio reader; - if (reader.load(tmp)) { - unsigned int xnack_enabled = reader.get_flags() & 0x100; - unsigned int sram_ecc_enabled = reader.get_flags() & 0x200; - if (xnack_enabled) - y.triple.append("+xnack"); - if (sram_ecc_enabled) - y.triple.append("+sram-ecc"); - } - it += y.header.triple_sz; x.bundled_code_size = std::max(x.bundled_code_size,