From f724c69c4e44bac3dcbe08c8c2e18fea243b5296 Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Tue, 5 Feb 2019 12:21:10 -0500 Subject: [PATCH] Fix build failure on windows due to vector type [ROCm/hip commit: 43c144fe68358402a2baddc6e4a403fb180eacf3] --- projects/hip/include/hip/hcc_detail/hip_vector_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_vector_types.h b/projects/hip/include/hip/hcc_detail/hip_vector_types.h index 924498583d..acfb16423f 100644 --- a/projects/hip/include/hip/hcc_detail/hip_vector_types.h +++ b/projects/hip/include/hip/hcc_detail/hip_vector_types.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "hip/hcc_detail/host_defines.h" -#if !defined(_MSC_VER) +#if !defined(_MSC_VER) || __HIP_DEVICE_COMPILE__ #if defined(__clang__) #define __NATIVE_VECTOR__(n, ...) __attribute__((ext_vector_type(n))) #elif defined(__GNUC__) // N.B.: GCC does not support .xyzw syntax.