]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not deprecate DEAL_II_COMPILER_VECTORIZATION_LEVEL for now
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 24 Mar 2020 17:48:02 +0000 (18:48 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 26 Mar 2020 21:28:00 +0000 (22:28 +0100)
include/deal.II/base/config.h.in

index 83c967b3170266467c5c7181d0d1cacdf4153163..d33c68b64efa3956b79aad3a550048f6958bbfd8 100644 (file)
 /*
  * Backward compatibility setting
  */
-#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
-#  if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL _Pragma ("GCC warning \"The DEAL_II_COMPILER_VECTORIZATION_LEVEL macro is deprecated\"") 3
-#  elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL _Pragma ("GCC warning \"The DEAL_II_COMPILER_VECTORIZATION_LEVEL macro is deprecated\"") 2
-#  elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL _Pragma ("GCC warning \"The DEAL_II_COMPILER_VECTORIZATION_LEVEL macro is deprecated\"") 1
-#  else
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL _Pragma ("GCC warning \"The DEAL_II_COMPILER_VECTORIZATION_LEVEL macro is deprecated\"")\
- 0
-#  endif
+#if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
+#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
+#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
+#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
+#elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
+#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
 #else
-#  if DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 512
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL 3
-#  elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 256
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL 2
-#  elif DEAL_II_VECTORIZATION_WIDTH_IN_BITS == 128
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL 1
-#  else
-#  define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
-#  endif
+#define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0
 #endif
 
 #define DEAL_II_OPENMP_SIMD_PRAGMA @DEAL_II_OPENMP_SIMD_PRAGMA@

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.