Fix __syncthreads for hip-clang

[ROCm/hip commit: b7641cf835]
Cette révision appartient à :
Yaxun (Sam) Liu
2018-05-30 16:33:18 -04:00
Parent de13fa6e8b
révision 2bd034a0d9
+5 -3
Voir le fichier
@@ -471,12 +471,12 @@ static inline __device__ void printf(const char* format, All... all) {}
#endif
#endif
#define __syncthreads() hc_barrier(CLK_LOCAL_MEM_FENCE)
#endif //__HCC_OR_HIP_CLANG__
#ifdef __HCC__
#define __syncthreads() hc_barrier(CLK_LOCAL_MEM_FENCE)
#define HIP_KERNEL_NAME(...) (__VA_ARGS__)
#define HIP_SYMBOL(X) #X
@@ -656,6 +656,8 @@ __DEVICE__ void inline __assert_fail(const char * __assertion,
__device_trap();
}
extern "C" __device__ __attribute__((noduplicate)) void __syncthreads();
#pragma push_macro("__DEVICE__")
#include <hip/hcc_detail/math_functions.h>