From b2dff855507f70be31ecb48b6927e25e7fcc7c10 Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Wed, 29 May 2019 03:04:48 -0400 Subject: [PATCH] fix compilation error when host compiler is clang (#1147) * fix compilation error when host compiler is clang * use a macro specifically for hcc && hip-clang [ROCm/hip commit: 72e51f3ad018e6cfa50c1b2b98e68fc0a14643d7] --- projects/hip/include/hip/hcc_detail/hip_fp16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_fp16.h b/projects/hip/include/hip/hcc_detail/hip_fp16.h index 93ede207c2..74424a9f8b 100644 --- a/projects/hip/include/hip/hcc_detail/hip_fp16.h +++ b/projects/hip/include/hip/hcc_detail/hip_fp16.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include #endif -#if defined(__clang__) && (__clang_major__ > 5) +#if __HCC_OR_HIP_CLANG__ typedef _Float16 _Float16_2 __attribute__((ext_vector_type(2))); struct __half_raw {