From 0f4a135e5fc26abce38aa2d403236f960dac123e Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Sat, 26 May 2018 12:10:50 +0100 Subject: [PATCH] Add missing alias half / half2 aliases --- hipamd/include/hip/hcc_detail/hip_fp16_gcc.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hipamd/include/hip/hcc_detail/hip_fp16_gcc.h b/hipamd/include/hip/hcc_detail/hip_fp16_gcc.h index e53afadcf2..9b31f9e3ce 100644 --- a/hipamd/include/hip/hcc_detail/hip_fp16_gcc.h +++ b/hipamd/include/hip/hcc_detail/hip_fp16_gcc.h @@ -248,5 +248,10 @@ struct __half2_raw { { return __internal_half2float(static_cast<__half2_raw>(x).y); } - } -#endif // defined(__cplusplus) \ No newline at end of file + } // Anonymous namespace. + + #if !defined(HIP_NO_HALF) + using half = __half; + using half2 = __half2; + #endif +#endif // defined(__cplusplus)