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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user