pdhaliwal created this revision. pdhaliwal added reviewers: JonChesterfield, ye-luo, ronlieb. Herald added subscribers: guansong, t-tye, tpr, dstuttard, yaxunl, kzhuravl. pdhaliwal requested review of this revision. Herald added subscribers: cfe-commits, sstefan1, wdng. Herald added a reviewer: jdoerfert. Herald added a project: clang.
This fixes the issue https://bugs.llvm.org/show_bug.cgi?id=51337 Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D107468 Files: clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h Index: clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h =================================================================== --- clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h +++ clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h @@ -35,6 +35,7 @@ #pragma omp end declare variant +#ifdef __AMDGCN__ #pragma omp begin declare variant match(device = {arch(amdgcn)}) // Import types which will be used by __clang_hip_libdevice_declares.h @@ -54,6 +55,7 @@ #undef __OPENMP_AMDGCN__ #pragma omp end declare variant +#endif #ifdef __cplusplus } // extern "C"
Index: clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h =================================================================== --- clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h +++ clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h @@ -35,6 +35,7 @@ #pragma omp end declare variant +#ifdef __AMDGCN__ #pragma omp begin declare variant match(device = {arch(amdgcn)}) // Import types which will be used by __clang_hip_libdevice_declares.h @@ -54,6 +55,7 @@ #undef __OPENMP_AMDGCN__ #pragma omp end declare variant +#endif #ifdef __cplusplus } // extern "C"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits