diff --git a/hipamd/api/hip/hip_hcc.def.in b/hipamd/api/hip/hip_hcc.def.in index 45aa1503cc..9df5287092 100644 --- a/hipamd/api/hip/hip_hcc.def.in +++ b/hipamd/api/hip/hip_hcc.def.in @@ -153,6 +153,8 @@ __hipRegisterFatBinary __hipRegisterFunction __hipRegisterVar __hipUnregisterFatBinary +__gnu_h2f_ieee +__gnu_f2h_ieee hipConfigureCall hipSetupArgument hipLaunchByPtr diff --git a/hipamd/api/hip/hip_platform.cpp b/hipamd/api/hip/hip_platform.cpp index b6ea5070e2..9773251bb0 100644 --- a/hipamd/api/hip/hip_platform.cpp +++ b/hipamd/api/hip/hip_platform.cpp @@ -869,6 +869,8 @@ void hipLaunchCooperativeKernelGGLImpl( } +#endif // defined(ATI_OS_LINUX) + // conversion routines between float and half precision static inline std::uint32_t f32_as_u32(float f) { union { float f; std::uint32_t u; } v; v.f = f; return v.u; } static inline float u32_as_f32(std::uint32_t u) { union { float f; std::uint32_t u; } v; v.u = u; return v.f; } @@ -908,5 +910,3 @@ extern "C" float __gnu_h2f_ieee(unsigned short h){ extern "C" unsigned short __gnu_f2h_ieee(float f){ return (unsigned short)__convert_float_to_half(f); } - -#endif // defined(ATI_OS_LINUX)