[Openmp-commits] [PATCH] D16631: [OMPT] Workaround clang failing with 'declare target'

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 27 23:18:46 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL259026: [OMPT] Workaround clang failing with 'declare target' (authored by Hahnfeld).

Changed prior to commit:
  http://reviews.llvm.org/D16631?vs=46133&id=46226#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16631

Files:
  openmp/trunk/runtime/src/include/30/ompt.h.var
  openmp/trunk/runtime/src/include/40/ompt.h.var
  openmp/trunk/runtime/src/include/41/ompt.h.var

Index: openmp/trunk/runtime/src/include/41/ompt.h.var
===================================================================
--- openmp/trunk/runtime/src/include/41/ompt.h.var
+++ openmp/trunk/runtime/src/include/41/ompt.h.var
@@ -461,14 +461,15 @@
  ***************************************************************************/
 
 /* control */
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+// FIXME: remove workaround for clang
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp declare target
 #endif
 void ompt_control(
     uint64_t command,
     uint64_t modifier
 );
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp end declare target
 #endif
 
Index: openmp/trunk/runtime/src/include/40/ompt.h.var
===================================================================
--- openmp/trunk/runtime/src/include/40/ompt.h.var
+++ openmp/trunk/runtime/src/include/40/ompt.h.var
@@ -461,14 +461,15 @@
  ***************************************************************************/
 
 /* control */
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+// FIXME: remove workaround for clang
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp declare target
 #endif
 void ompt_control(
     uint64_t command,
     uint64_t modifier
 );
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp end declare target
 #endif
 
Index: openmp/trunk/runtime/src/include/30/ompt.h.var
===================================================================
--- openmp/trunk/runtime/src/include/30/ompt.h.var
+++ openmp/trunk/runtime/src/include/30/ompt.h.var
@@ -461,14 +461,15 @@
  ***************************************************************************/
 
 /* control */
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+// FIXME: remove workaround for clang
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp declare target
 #endif
 void ompt_control(
     uint64_t command,
     uint64_t modifier
 );
-#if defined(_OPENMP) && (_OPENMP >= 201307)
+#if !defined(__clang__) && defined(_OPENMP) && (_OPENMP >= 201307)
 #pragma omp end declare target
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16631.46226.patch
Type: text/x-patch
Size: 2265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160128/a1a5376a/attachment.bin>


More information about the Openmp-commits mailing list