P4 to Git Change 2014744 by vsytchen@vsytchen-ocl-win10-2 on 2019/10/16 17:37:46

SWDEV-207449 - [HIP CQE][HIPonPAL][LNX][QR] 6 hiptests failed on all ASICs

	hipTestHalf fails to build on Windows due to linker error "unresolved external symbol __gnu_h2f_ieee"

	1. Expose __gnu_h2f_ieee() and __gnu_f2h_ieee() for Windows builds.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/18127/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_hcc.def.in#31 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#45 edit
Этот коммит содержится в:
foreman
2019-10-16 17:47:55 -04:00
родитель ef14b8b361
Коммит d43f0eedcc
2 изменённых файлов: 4 добавлений и 2 удалений
+2 -2
Просмотреть файл
@@ -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)