From 97646b52f1a5a917eb6516192ea2ae4c5a68c2d0 Mon Sep 17 00:00:00 2001 From: mhbliao <47895780+mhbliao@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:18:20 -0500 Subject: [PATCH] Fix mathlib and app builds with hip-clang. (#1665) [ROCm/hip commit: ebe0c56f4f700863a85984ccfbaf4c4d53e2805c] --- projects/hip/include/hip/hip_ext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hip/hip_ext.h b/projects/hip/include/hip/hip_ext.h index a3b1d3e878..5f6ba31d1e 100644 --- a/projects/hip/include/hip/hip_ext.h +++ b/projects/hip/include/hip/hip_ext.h @@ -109,7 +109,7 @@ hipError_t hipHccModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, hipEvent_t stopEvent = nullptr) __attribute__((deprecated("use hipExtModuleLaunchKernel instead"))); -#ifdef __cplusplus +#if !__HIP_VDI__ && defined(__cplusplus) namespace hip_impl { inline @@ -161,7 +161,7 @@ void hipExtLaunchKernelGGL(F kernel, const dim3& numBlocks, stream, startEvent, stopEvent, flags, &config[0]); } -#endif +#endif // !__HIP_VDI__ && defined(__cplusplus) // doxygen end AMD-specific features /**