Fix warning about inlined function is not defined

Tá an tiomantas seo le fáil i:
Yaxun (Sam) Liu tiomanta 2018-05-08 16:38:50 -04:00
1 tuismitheoir 7672b44c79
tiomantas 19f3ed6f62
1 comhad athraithe
+5 -5
+5 -5
Féach ar an gComhad
@@ -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();