summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/make/cctk_Config.h.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in
index 5d7468cf..20e6109a 100644
--- a/lib/make/cctk_Config.h.in
+++ b/lib/make/cctk_Config.h.in
@@ -337,6 +337,14 @@ typedef enum {false, true} bool;
# define CCTK_BUILTIN_EXPECT(x,y) (x)
#endif
+/* OpenMP collapse clause */
+#if defined __INTEL_COMPILER && __INTEL_COMPILER_BUILD_DATE < 20100801
+/* see http://software.intel.com/en-us/articles/intel-professional-edition-compilers-111-fixes-list/ */
+# define collapse(N)
+#else
+# undef collapse
+#endif
+
#endif /* ! defined __cplusplus */
/****************************************************************************/
@@ -510,6 +518,14 @@ typedef enum {false, true} bool;
# define CCTK_RESTRICT restrict
#endif
+/* OpenMP collapse clause */
+#if defined __INTEL_COMPILER && __INTEL_COMPILER_BUILD_DATE < 20100801
+/* see http://software.intel.com/en-us/articles/intel-professional-edition-compilers-111-fixes-list/ */
+# define collapse(N)
+#else
+# undef collapse
+#endif
+
#endif /* __cplusplus */
/****************************************************************************/
@@ -526,6 +542,16 @@ typedef enum {false, true} bool;
#undef HAVE_CCTK_FORTRAN_COMPLEX16
#undef HAVE_CCTK_FORTRAN_COMPLEX32
+/* OpenMP collapse clause */
+#if defined __INTEL_COMPILER && __INTEL_COMPILER_BUILD_DATE < 20100801
+/* see http://software.intel.com/en-us/articles/intel-professional-edition-compilers-111-fixes-list/ */
+# define collapse(N)
+# define COLLAPSE(N)
+#else
+# undef collapse
+# undef COLLAPSE
+#endif
+
#endif /* FCODE */
/* Now include the code to pick an appropriate precison for reals and ints */