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
이 커밋은 다음에 포함됨:
Siu Chi Chan
2019-05-29 03:04:48 -04:00
커밋한 사람 Maneesh Gupta
부모 04d56436bb
커밋 72e51f3ad0
+1 -1
파일 보기
@@ -34,7 +34,7 @@ THE SOFTWARE.
#include <utility>
#endif
#if defined(__clang__) && (__clang_major__ > 5)
#if __HCC_OR_HIP_CLANG__
typedef _Float16 _Float16_2 __attribute__((ext_vector_type(2)));
struct __half_raw {