[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:35:32 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf3eb5f900d2a: [AMDGPU][OpenMP] Wrap amdgcn declare variant inside ifdef (authored by pdhaliwal).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107468/new/
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.364124.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210804/0318aefe/attachment.bin>
More information about the cfe-commits
mailing list