From 4e5861df7af38aaa76b875b736ec6f9af9b99c9c Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 28 Mar 2017 10:46:31 -0500 Subject: [PATCH] disabled metadata apis Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144 --- hipamd/bin/hipcc | 3 +-- hipamd/src/hip_module.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 3dd8c2d60b..de4883fea3 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -103,7 +103,6 @@ if ($HIP_PLATFORM eq "hcc") { $HIPLDFLAGS = `${HCC_HOME}/bin/hcc-config --ldflags`; -# $LLVM_HOME = "/opt/rocm/llvm"; #### GCC system includes workaround #### $HCC_WA_FLAGS = " "; @@ -130,7 +129,7 @@ if ($HIP_PLATFORM eq "hcc") { $HIPLDFLAGS .= " -lsupc++"; $HIPLDFLAGS .= " -L$HSA_PATH/lib -L$ROCM_PATH/lib -lhsa-runtime64 -lhc_am -lhsakmt "; - $HIPLDFLAGS .= " -L$HCC_HOME/compiler/lib -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMMC -lLLVMCore -lLLVMSupport "; +# $HIPLDFLAGS .= " -L$HCC_HOME/compiler/lib -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMMC -lLLVMCore -lLLVMSupport "; # Add trace marker library: # TODO - once we cleanly separate the HIP API headers from HIP library headers this logic should move to CMakebuild option - apps do not need to see the marker library. diff --git a/hipamd/src/hip_module.cpp b/hipamd/src/hip_module.cpp index dc0a681c6d..c4b6cb8e08 100644 --- a/hipamd/src/hip_module.cpp +++ b/hipamd/src/hip_module.cpp @@ -202,7 +202,7 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname){ (*module)->size = size; in.seekg(0, std::ios::beg); std::copy(std::istreambuf_iterator(in), std::istreambuf_iterator(), ptr); - +/* Elf *e = elf_memory((char*)p, size); if(elf_kind(e) != ELF_K_ELF){ return ihipLogStatus(hipErrorInvalidValue); @@ -251,7 +251,7 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname){ } } } - +*/ status = hsa_code_object_deserialize(ptr, size, NULL, &(*module)->object); if(status != HSA_STATUS_SUCCESS){