From: Roland Schulz Date: Sat, 20 Sep 2014 16:30:33 +0000 (-0400) Subject: Clarify GCC+Win+AVX warning X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=commitdiff_plain;h=19e9ef9bbda95244178acf2be5670114b63b9c1e Clarify GCC+Win+AVX warning Message was accidentally not printed for Cygwin. Message was printed even for GCC version which are OK. Change-Id: I4560908317919bc36f33f6e430e6b7a34853ae73 --- diff --git a/cmake/gmxTestCompilerProblems.cmake b/cmake/gmxTestCompilerProblems.cmake index e534730013..a8cdb870df 100644 --- a/cmake/gmxTestCompilerProblems.cmake +++ b/cmake/gmxTestCompilerProblems.cmake @@ -80,8 +80,11 @@ macro(gmx_test_compiler_problems) message(WARNING "All tested PGI compiler versions (up to 12.9.0) generate binaries which produce incorrect results, or even fail to compile Gromacs. Highly recommended to use a different compiler. If you choose to use PGI, make sure to run the regressiontests.") endif() - if(CMAKE_COMPILER_IS_GNUCC AND WIN32 AND (GMX_SIMD STREQUAL "AVX_256" OR GMX_SIMD STREQUAL "AVX2_256")) - message(WARNING "GCC on Windows with AVX crashes. Choose SSE4_1 or a different compiler.") # GCC bug 49001. + if(CMAKE_COMPILER_IS_GNUCC AND + (CMAKE_C_COMPILER_VERSION VERSION_LESS "4.9.0" OR CMAKE_SIZEOF_VOID_P EQUAL 8) + AND (WIN32 OR CYGWIN) + AND GMX_SIMD MATCHES "AVX" AND NOT GMX_SIMD STREQUAL AVX_128_FMA) + message(WARNING "GCC on Windows (GCC older than 4.9 or any version when compiling for 64bit) with AVX (other than AVX_128_FMA) crashes. Choose a different GMX_SIMD or a different compiler.") # GCC bug 49001, 54412. endif() if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND WIN32 AND NOT CYGWIN)