diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index e9551d4f9a..e1b334aec3 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -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();