Allow gcc-9 on Power 9
authorSzilárd Páll <pall.szilard@gmail.com>
Tue, 20 Oct 2020 14:42:50 +0000 (14:42 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 20 Oct 2020 14:42:50 +0000 (14:42 +0000)
Previous restriction ended up blacklisting gcc 9 and later whereas the
intent was to only do so for version 10 and later. Worked around the
version comparison quirk (and lack of >= operator).

Refs #3380

Change-Id: If9f45fe77459c3d873eab3856126f1653efe8cdb

cmake/gmxManageSimd.cmake

index a946ea6460e3d6878f8bd8f379cbbf07253152ad..8dfd07db559dd6c1d98e10b0738bd87b9ab8c77f 100644 (file)
@@ -289,7 +289,7 @@ elseif(GMX_SIMD_ACTIVE STREQUAL "IBM_VSX")
 
     # IBM_VSX and gcc > 9 do not work together, so we need to prevent people from
     # choosing a combination that might fail. Issue #3380.
-    if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
+    if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
         message(FATAL_ERROR "IBM_VSX does not work together with gcc > 9. Disable SIMD support (slower), or use an older version of the GNU compiler")
     endif()