From 47b832bba7a63eaa4e3c056c5071d795b86123f9 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) --- src/hip_clang.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hip_clang.cpp b/src/hip_clang.cpp index 85dfb09f62..4e36b9323a 100644 --- a/src/hip_clang.cpp +++ b/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