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


[ROCm/clr commit: 6f43afddfb]
这个提交包含在:
foreman 于 2019-10-16 17:47:55 -04:00 提交
1 父节点 3c1fdbce04
当前提交 c355d1f353
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)