Fix warning about inlined function is not defined

Tento commit je obsažen v:
Yaxun (Sam) Liu
2018-05-08 16:38:50 -04:00
rodič eeedfc5567
revize 4c2d2b9e69
+5 -5
Zobrazit soubor
@@ -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();