]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Unify intrinsics headers 7881/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 2 Apr 2019 03:22:36 +0000 (05:22 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 2 Apr 2019 03:22:36 +0000 (05:22 +0200)
include/deal.II/base/vectorization.h

index 1b8c47005c3ca0dd43b1ba94181bcbe8911af384..39b374b23ff0a538b693c8e5c7a6ad62c7317328 100644 (file)
     "Mismatch in vectorization capabilities: AVX-512F was detected during configuration of deal.II and switched on, but it is apparently not available for the file you are trying to compile at the moment. Check compilation flags controlling the instruction set, such as -march=native."
 #endif
 
-#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 2 && \
-  (defined(__AVX__) || defined(__AVX512F__)) // AVX, AVX-512
-#  include <immintrin.h>
-#elif DEAL_II_COMPILER_VECTORIZATION_LEVEL == 1 && defined(__SSE2__) // SSE2
-#  include <emmintrin.h>
-#endif
-
-
-#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && defined(__ALTIVEC__)
+#if defined(_MSC_VER)
+#  include <intrin.h>
+#elif defined(__ALTIVEC__)
 #  include <altivec.h>
 
 // altivec.h defines vector, pixel, bool, but we do not use them, so undefine
@@ -67,7 +61,8 @@
 #  undef vector
 #  undef pixel
 #  undef bool
-
+#else
+#  include <x86intrin.h>
 #endif
 
 DEAL_II_NAMESPACE_OPEN

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.