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 编写, Maneesh Gupta 于 2019-05-29 12:34:48 +05:30 提交
1 父节点 04d56436bb
当前提交 72e51f3ad0
1 个文件已更改
+1 -1
+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 {