diff --git a/projects/clr/hipamd/src/hip_clang.cpp b/projects/clr/hipamd/src/hip_clang.cpp index 85dfb09f62..4e36b9323a 100644 --- a/projects/clr/hipamd/src/hip_clang.cpp +++ b/projects/clr/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