From c7b7301d484ebcd7e8c76658ce5d55379f7faa83 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Fri, 25 May 2018 12:22:16 -0400 Subject: [PATCH] Add math function declaration for hip-clang [ROCm/hip commit: f9693a9210551e9f2dfbda58e09b100d0be79beb] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index e1b334aec3..d682d21dbd 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hip/hcc_detail/hip_runtime.h @@ -514,7 +514,9 @@ extern void ihipPostLaunchKernel(const char* kernelName, hipStream_t stream, gri * @} */ - +// +// hip-clang functions +// #elif defined(__clang__) && defined(__HIP__) #define HIP_KERNEL_NAME(...) __VA_ARGS__ @@ -628,6 +630,8 @@ __DEVICE__ void inline __assert_fail(const char * __assertion, } #pragma push_macro("__DEVICE__") +#include + #endif #endif // HIP_HCC_DETAIL_RUNTIME_H