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 {