Fix warning about inlined function is not defined

이 커밋은 다음에 포함됨:
Yaxun (Sam) Liu가 2018-05-08 16:38:50 -04:00를 커밋했습니다
1 부모 eeedfc5567
커밋 4c2d2b9e69
1 파일이 변경됨
+5 -5
+5 -5
파일 보기
@@ -613,15 +613,15 @@ extern const __device__ __attribute__((weak)) __hip_builtin_gridDim_t gridDim;
#define hipGridDim_z gridDim.z
#pragma push_macro("__DEVICE__")
#define __DEVICE__ extern "C" __device__ inline __attribute__((always_inline)) \
#define __DEVICE__ extern "C" __device__ __attribute__((always_inline)) \
__attribute__((weak))
__DEVICE__ void __device_trap() __asm("llvm.trap");
__DEVICE__ void __assert_fail(const char * __assertion,
const char *__file,
unsigned int __line,
const char *__function)
__DEVICE__ void inline __assert_fail(const char * __assertion,
const char *__file,
unsigned int __line,
const char *__function)
{
// Ignore all the args for now.
__device_trap();