]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Cosmetic changes
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Apr 2014 14:29:13 +0000 (14:29 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Apr 2014 14:29:13 +0000 (14:29 +0000)
And yes, icc is happy again

git-svn-id: https://svn.dealii.org/trunk@32789 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/check_01_cpu_features.cmake

index 4ca7062b08002021ca9d39805d306d56dc39f408..1204b5dec2ae93b5b0086d1e8e58bc77810872dd 100644 (file)
@@ -27,6 +27,7 @@
 #   DEAL_II_WORDS_BIGENDIAN
 #   DEAL_II_HAVE_SSE2                    *)
 #   DEAL_II_HAVE_AVX                     *)
+#   DEAL_II_HAVE_AVX512                  *)
 #   DEAL_II_COMPILER_VECTORIZATION_LEVEL
 #
 # *)
@@ -170,15 +171,12 @@ IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION)
     DEAL_II_HAVE_AVX512)
 ENDIF()
 
-
-IF(DEAL_II_HAVE_SSE2)
-  IF(DEAL_II_HAVE_AVX512)
-    SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 3)
-  ELSEIF(DEAL_II_HAVE_AVX)
-    SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 2)
-  ELSE()
-    SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 1)
-  ENDIF()
+IF(DEAL_II_HAVE_AVX512)
+  SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 3)
+ELSEIF(DEAL_II_HAVE_AVX)
+  SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 2)
+ELSEIF(DEAL_II_HAVE_SSE2)
+  SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 1)
 ELSE()
   SET(DEAL_II_COMPILER_VECTORIZATION_LEVEL 0)
 ENDIF()

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.