SWDEV-502579 - Remove duplicated symbols (#21)
Remove duplicated compiler symbols from hip-rt. hip-rt should use symbols such as EF_AMDGPU_MACH_AMDGCN_XXX and
ELFABIVERSION_AMDGPU_HSA_VX defined in compiler header.
[ROCm/clr commit: b15c1657b8]
This commit is contained in:
@@ -19,13 +19,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hip_comgr_helper.hpp"
|
||||
#include "llvm/BinaryFormat/ELF.h"
|
||||
#if defined(_WIN32)
|
||||
#include <io.h>
|
||||
#if defined(__has_attribute)
|
||||
// MS compiler doesn't support __has_attribute
|
||||
#undef __has_attribute
|
||||
#endif
|
||||
|
||||
#include "../src/amd_hsa_elf.hpp"
|
||||
#endif
|
||||
#include "hip_comgr_helper.hpp"
|
||||
using namespace llvm::ELF;
|
||||
|
||||
namespace hip {
|
||||
|
||||
@@ -60,8 +63,6 @@ struct __ClangOffloadBundleHeader {
|
||||
__ClangOffloadBundleInfo desc[1];
|
||||
};
|
||||
|
||||
uint64_t ElfSize(const void* emi) { return amd::Elf::getElfSize(emi); }
|
||||
|
||||
static bool getProcName(uint32_t EFlags, std::string& proc_name, bool& xnackSupported,
|
||||
bool& sramEccSupported) {
|
||||
switch (EFlags & EF_AMDGPU_MACH) {
|
||||
|
||||
مرجع در شماره جدید
Block a user