[PATCH] D107468: [AMDGPU][OpenMP] Wrap amdgcn declare variant inside ifdef
Pushpinder Singh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 4 08:49:12 PDT 2021
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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107468.364120.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210804/a86398b4/attachment-0001.bin>
More information about the cfe-commits
mailing list