Fix hipcc and hip_vector_types.h for windows

Disable linux specific compilation and linking options for windows.

In hip_vector_types.h, hip-clang needs HIP's own implementation for vector types even
on windows. MSVC specific implementation is for building runtime itself, which is compiled
by MSVC.
Cette révision appartient à :
Yaxun Sam Liu a révisé 2019-02-07 11:07:50 -05:00
1 Parent 4c6c25818e
révision a474dc7579
2 fichiers modifiés
+16 -8

Aucun fichier ne correspond à votre recherche

+1 -1
Voir le fichier
@@ -34,7 +34,7 @@ THE SOFTWARE.
#include "hip/hcc_detail/host_defines.h"
#if !defined(_MSC_VER) || __HIP_DEVICE_COMPILE__
#if !defined(_MSC_VER) || __clang__
#if defined(__clang__)
#define __NATIVE_VECTOR__(n, ...) __attribute__((ext_vector_type(n)))
#elif defined(__GNUC__) // N.B.: GCC does not support .xyzw syntax.