# The user should not be able to set this orthogonally to the acceleration
set(GMX_X86_SSE2 1)
-
- message(STATUS "Enabling SSE2 Gromacs acceleration, and it will help compiler optimization.")
+ if (NOT ACCELERATION_QUIETLY)
+ message(STATUS "Enabling SSE2 Gromacs acceleration, and it will help compiler optimization.")
+ endif()
elseif(${GMX_ACCELERATION} STREQUAL "SSE4.1")
# The user should not be able to set this orthogonally to the acceleration
set(GMX_X86_SSE4_1 1)
set(GMX_X86_SSE2 1)
-
- message(STATUS "Enabling SSE4.1 Gromacs acceleration, and it will help compiler optimization.")
+ if (NOT ACCELERATION_QUIETLY)
+ message(STATUS "Enabling SSE4.1 Gromacs acceleration, and it will help compiler optimization.")
+ endif()
elseif(${GMX_ACCELERATION} STREQUAL "AVX_128_FMA" OR ${GMX_ACCELERATION} STREQUAL "AVX_256")
# But just enable one of the choices internally...
if(${GMX_ACCELERATION} STREQUAL "AVX_128_FMA")
set(GMX_X86_AVX_128_FMA 1)
- message(STATUS "Enabling 128-bit AVX Gromacs acceleration (with fused-multiply add), and it will help compiler optimization.")
+ if (NOT ACCELERATION_QUIETLY)
+ message(STATUS "Enabling 128-bit AVX Gromacs acceleration (with fused-multiply add), and it will help compiler optimization.")
+ endif()
else()
# If we are not doing AVX_128, it must be AVX_256...
set(GMX_X86_AVX_256 1)
- message(STATUS "Enabling 256-bit AVX Gromacs acceleration, and it will help compiler optimization.")
+ if (NOT ACCELERATION_QUIETLY)
+ message(STATUS "Enabling 256-bit AVX Gromacs acceleration, and it will help compiler optimization.")
+ endif()
endif()
elseif(${GMX_ACCELERATION} STREQUAL "FORTRAN")
elseif(${GMX_ACCELERATION} STREQUAL "BLUEGENE")
# GMX_ACCELERATION=BlueGene should be set in the Toolchain-BlueGene?-???.cmake file
- message(STATUS "Configuring for BlueGene")
+ if (NOT ACCELERATION_QUIETLY)
+ message(STATUS "Configuring for BlueGene")
+ endif()
set(GMX_BLUEGENE 1)
if (${CMAKE_SYSTEM_NAME} STREQUAL "BlueGeneL")
set(SHARED_LIBS_DEFAULT OFF CACHE BOOL "Shared libraries not compatible with BlueGene/L, disabled!" FORCE)
else(${GMX_ACCELERATION} STREQUAL "NONE")
MESSAGE(FATAL_ERROR "Unrecognized option for accelerated kernels: ${GMX_ACCELERATION}. Pick one of None, SSE2, SSE4.1, AVX_128_FMA, AVX_256, Fortran, BlueGene, Power6")
endif(${GMX_ACCELERATION} STREQUAL "NONE")
+set(ACCELERATION_QUIETLY TRUE CACHE INTERNAL "")
if(GMX_FORTRAN OR GMX_POWER6)
if (GMX_THREAD_MPI)
include(CheckCSourceCompiles)
MACRO(GMX_TEST_MPI_IN_PLACE VARIABLE)
+ if(NOT DEFINED MPI_IN_PLACE_COMPILE_OK)
MESSAGE(STATUS "Checking for MPI_IN_PLACE")
set(CMAKE_REQUIRED_DEFINITIONS ${MPI_COMPILE_FLAGS})
if(MPI_IN_PLACE_COMPILE_OK)
MESSAGE(STATUS "Checking for MPI_IN_PLACE - yes")
- set(${VARIABLE} ${MPI_IN_PLACE_COMPILE_OK}
- "Result of test for MPI_IN_PLACE")
else(MPI_IN_PLACE_COMPILE_OK)
MESSAGE(STATUS "Checking for MPI_IN_PLACE - no")
endif(MPI_IN_PLACE_COMPILE_OK)
+ set(MPI_IN_PLACE_COMPILE_OK "${MPI_IN_PLACE_COMPILE_OK}" CACHE INTERNAL "Result of mpi_in_place check")
+ endif()
+ if (MPI_IN_PLACE_COMPILE_OK)
+ set(${VARIABLE} ${MPI_IN_PLACE_COMPILE_OK}
+ "Result of test for MPI_IN_PLACE")
+ endif()
ENDMACRO(GMX_TEST_MPI_IN_PLACE VARIABLE)