From e72346dc24daad78b88738c10346ca8dfc1c2b44 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 3 Sep 2019 01:13:59 -0400 Subject: [PATCH] Do not include cuda wappers for OMP for hip-clang (#1382) --- hipamd/include/hip/hcc_detail/hip_runtime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hipamd/include/hip/hcc_detail/hip_runtime.h b/hipamd/include/hip/hcc_detail/hip_runtime.h index 07002eb2c1..a614e3599d 100644 --- a/hipamd/include/hip/hcc_detail/hip_runtime.h +++ b/hipamd/include/hip/hcc_detail/hip_runtime.h @@ -447,6 +447,7 @@ hc_get_workitem_absolute_id(int dim) #endif // Support std::complex. +#ifndef _OPENMP #pragma push_macro("__CUDA__") #define __CUDA__ #include <__clang_cuda_math_forward_declares.h> @@ -456,6 +457,7 @@ hc_get_workitem_absolute_id(int dim) #include #undef __CUDA__ #pragma pop_macro("__CUDA__") +#endif // ndef _OPENMP #if __HIP_VDI__ hipError_t hipExtModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,