From a0cc627c423aa6d421ec7b3d6b9055c7f479b9bf Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 15 Aug 2019 19:13:45 -0700 Subject: [PATCH] Fix build issues seen with hip-clang path (#1331) --- hipamd/src/hip_clang.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_clang.cpp b/hipamd/src/hip_clang.cpp index 85dfb09f62..4e36b9323a 100644 --- a/hipamd/src/hip_clang.cpp +++ b/hipamd/src/hip_clang.cpp @@ -29,6 +29,10 @@ THE SOFTWARE. #include "hip_fatbin.h" #include "trace_helper.h" +#ifdef __GNUC__ +#pragma GCC visibility push (default) +#endif + extern "C" std::vector* __hipRegisterFatBinary(const void* data) { @@ -249,4 +253,6 @@ hipError_t hipLaunchByPtr(const void *hostFunction) return ihipLogStatus(e); } - +#ifdef __GNUC__ +#pragma GCC visibility pop +#endif