Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
fe8ad2c2
Commit
fe8ad2c2
authored
May 15, 2020
by
snuverink_j
Browse files
Resolve "Add mode to all CMake messages"
parent
f3f76829
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
57 deletions
+55
-57
CMakeLists.txt
CMakeLists.txt
+51
-51
ippl/src/CMakeLists.txt
ippl/src/CMakeLists.txt
+1
-1
ippl/test/FFT/CMakeLists.txt
ippl/test/FFT/CMakeLists.txt
+1
-3
ippl/test/FFT/SeaborgRes/CMakeLists.txt
ippl/test/FFT/SeaborgRes/CMakeLists.txt
+1
-1
ippl/test/toyfdtf/CMakeLists.txt
ippl/test/toyfdtf/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
fe8ad2c2
...
...
@@ -6,7 +6,7 @@ string (REGEX REPLACE "\\.([0-9])\\." ".0\\1." PACKAGE_VERSION ${PROJECT_VERSION
string
(
REGEX REPLACE
"
\\
.([0-9])$"
".0
\\
1"
PACKAGE_VERSION
${
PACKAGE_VERSION
}
)
string
(
REGEX REPLACE
"
\\
."
""
PACKAGE_VERSION
${
PACKAGE_VERSION
}
)
message
(
PACKAGE_VERSION=
${
PACKAGE_VERSION
}
)
message
(
STATUS
PACKAGE_VERSION=
${
PACKAGE_VERSION
}
)
if
(
NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
...
...
@@ -17,9 +17,9 @@ endif ()
cmake_host_system_information
(
RESULT HOSTNAME QUERY HOSTNAME
)
message
(
"Build type is: "
${
CMAKE_BUILD_TYPE
}
)
message
(
"Host OS System:
${
CMAKE_HOST_SYSTEM
}
"
)
message
(
"Hostname:
${
HOSTNAME
}
"
)
message
(
STATUS
"Build type is: "
${
CMAKE_BUILD_TYPE
}
)
message
(
STATUS
"Host OS System:
${
CMAKE_HOST_SYSTEM
}
"
)
message
(
STATUS
"Hostname:
${
HOSTNAME
}
"
)
# Select flags.
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-O3 -g "
)
...
...
@@ -30,10 +30,10 @@ set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_SOURCE_DIR
}
/CMakeModules"
)
find_package
(
MPI REQUIRED
)
message
(
"The C++ compiler identification is:
${
CMAKE_CXX_COMPILER_ID
}
"
)
message
(
"The C++ compiler version is:
${
CMAKE_CXX_COMPILER_VERSION
}
"
)
message
(
"The MPI C++ compiler is:
${
MPI_CXX_COMPILER
}
"
)
message
(
"The underlying C++ compiler is:
${
CMAKE_CXX_COMPILER
}
"
)
message
(
STATUS
"The C++ compiler identification is:
${
CMAKE_CXX_COMPILER_ID
}
"
)
message
(
STATUS
"The C++ compiler version is:
${
CMAKE_CXX_COMPILER_VERSION
}
"
)
message
(
STATUS
"The MPI C++ compiler is:
${
MPI_CXX_COMPILER
}
"
)
message
(
STATUS
"The underlying C++ compiler is:
${
CMAKE_CXX_COMPILER
}
"
)
option
(
ENABLE_OpenMP
"Use hybrid parallelism MPI-OpenMP"
OFF
)
...
...
@@ -58,7 +58,7 @@ if (NOT ${USE_STATIC_LIBRARIES})
endif
()
# compiler dependent flags
message
(
"The underlying C++ compiler ID is:
${
CMAKE_CXX_COMPILER_ID
}
"
)
message
(
STATUS
"The underlying C++ compiler ID is:
${
CMAKE_CXX_COMPILER_ID
}
"
)
if
(
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL
"Intel"
)
add_compile_options
(
"-diag-disable 383"
)
add_compile_options
(
"-diag-disable 981"
)
...
...
@@ -94,20 +94,20 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
endif
()
else
()
message
(
"Unknown C++ compiler. Please use the GNU or Intel compiler, if you are having problems."
)
message
(
STATUS
"Unknown C++ compiler. Please use the GNU or Intel compiler, if you are having problems."
)
endif
()
enable_language
(
Fortran OPTIONAL
)
message
(
"Fortran compilers:
${
CMAKE_Fortran_COMPILER_NAMES
}
"
)
message
(
STATUS
"Fortran compilers:
${
CMAKE_Fortran_COMPILER_NAMES
}
"
)
if
(
CMAKE_Fortran_COMPILER
)
message
(
"The Fortran compiler identification is:
${
CMAKE_Fortran_COMPILER_ID
}
"
)
message
(
"The Fortran compiler version is:
${
CMAKE_Fortran_COMPILER_VERSION
}
"
)
message
(
"The Fortran compiler is:
${
CMAKE_Fortran_COMPILER
}
"
)
message
(
STATUS
"The Fortran compiler identification is:
${
CMAKE_Fortran_COMPILER_ID
}
"
)
message
(
STATUS
"The Fortran compiler version is:
${
CMAKE_Fortran_COMPILER_VERSION
}
"
)
message
(
STATUS
"The Fortran compiler is:
${
CMAKE_Fortran_COMPILER
}
"
)
if
(
${
CMAKE_CXX_COMPILER_ID
}
STREQUAL
"GNU"
)
set
(
Fortran_LIBS
"-lgfortran"
)
endif
()
else
()
message
(
"No Fortran compiler found (optional)"
)
message
(
STATUS
"No Fortran compiler found (optional)"
)
if
(
ENABLE_AMR
)
message
(
FATAL_ERROR
"AMR is enabled but no Fortran compiler found!"
)
endif
()
...
...
@@ -119,10 +119,10 @@ if (USE_STATIC_LIBRARIES)
set
(
HDF5_USE_STATIC_LIBRARIES ON
)
endif
()
find_package
(
HDF5 REQUIRED
)
message
(
"Found HDF5 libraries:
${
HDF5_C_LIBRARIES
}
"
)
message
(
STATUS
"Found HDF5 libraries:
${
HDF5_C_LIBRARIES
}
"
)
find_package
(
GSL REQUIRED
)
message
(
"Found gsl libraries:
${
GSL_LIBRARIES
}
"
)
message
(
STATUS
"Found gsl libraries:
${
GSL_LIBRARIES
}
"
)
set
(
BOOSTROOT $ENV{BOOST_DIR}
)
if
(
USE_STATIC_LIBRARIES
)
...
...
@@ -132,9 +132,9 @@ set (Boost_USE_MULTITHREADED OFF)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
find_package
(
Boost 1.66.0
REQUIRED COMPONENTS chrono filesystem iostreams regex serialization system timer
)
message
(
"Found Boost include dir:
${
Boost_INCLUDE_DIR
}
"
)
message
(
"Found Boost library dir:
${
Boost_LIBRARY_DIR
}
"
)
message
(
"Found Boost libraries:
${
Boost_LIBRARIES
}
"
)
message
(
STATUS
"Found Boost include dir:
${
Boost_INCLUDE_DIR
}
"
)
message
(
STATUS
"Found Boost library dir:
${
Boost_LIBRARY_DIR
}
"
)
message
(
STATUS
"Found Boost libraries:
${
Boost_LIBRARIES
}
"
)
include_directories
(
SYSTEM
${
Boost_INCLUDE_DIRS
}
)
# Handle options
...
...
@@ -146,16 +146,16 @@ endif ()
option
(
ENABLE_AMR
"Enable AMReX based AMR solver"
OFF
)
if
(
ENABLE_AMR
)
message
(
"Enable AMR_SOLVER "
${
ENABLE_AMR
}
)
message
(
STATUS
"Enable AMR_SOLVER "
${
ENABLE_AMR
}
)
enable_language
(
Fortran
)
find_package
(
AMReX CONFIG REQUIRED
HINTS $ENV{AMREX_HOME}/cmake $ENV{AMREX_DIR}/cmake $ENV{AMREX_PREFIX}/cmake
)
message
(
"Found AMReX include dir:
${
AMREX_INCLUDE_DIR
}
"
)
message
(
"Found AMReX library dir:
${
AMREX_LIBRARY_DIR
}
"
)
message
(
"Found AMReX libraries:
${
AMREX_LIBRARIES
}
"
)
message
(
"Found AMReX Fortran links:
${
AMREX_EXTRA_Fortran_LINK_LINE
}
"
)
message
(
STATUS
"Found AMReX include dir:
${
AMREX_INCLUDE_DIR
}
"
)
message
(
STATUS
"Found AMReX library dir:
${
AMREX_LIBRARY_DIR
}
"
)
message
(
STATUS
"Found AMReX libraries:
${
AMREX_LIBRARIES
}
"
)
message
(
STATUS
"Found AMReX Fortran links:
${
AMREX_EXTRA_Fortran_LINK_LINE
}
"
)
echo_amrex_config_options
()
add_definitions
(
${
AMREX_DEFINES
}
)
...
...
@@ -170,54 +170,54 @@ if (ENABLE_SAAMG_SOLVER OR ENABLE_AMR_MG_SOLVER)
# are available. If there are problems of any kind with this
# configuration, either fix it in a general way or build your
# Trilinos. Host specific should be avoided in almost any case.
message
(
"Enable SAAMG_SOLVER: "
${
ENABLE_SAAMG_SOLVER
}
)
message
(
"Enable AMR_MG_SOLVER: "
${
ENABLE_AMR_MG_SOLVER
}
)
message
(
STATUS
"Enable SAAMG_SOLVER: "
${
ENABLE_SAAMG_SOLVER
}
)
message
(
STATUS
"Enable AMR_MG_SOLVER: "
${
ENABLE_AMR_MG_SOLVER
}
)
find_package
(
Trilinos REQUIRED HINTS $ENV{TRILINOS_PREFIX} $ENV{TRILINOS_DIR} $ENV{TRILINOS}
)
message
(
"Found Trilinos:
${
Trilinos_DIR
}
"
)
message
(
" Trilinos version:
${
Trilinos_VERSION
}
"
)
message
(
" Trilinos package list:
${
Trilinos_PACKAGE_LIST
}
"
)
message
(
" Trilinos libraries:
${
Trilinos_LIBRARIES
}
"
)
message
(
" Trilinos TPL libraries:
${
Trilinos_TPL_LIBRARIES
}
"
)
message
(
STATUS
"Found Trilinos:
${
Trilinos_DIR
}
"
)
message
(
STATUS
" Trilinos version:
${
Trilinos_VERSION
}
"
)
message
(
STATUS
" Trilinos package list:
${
Trilinos_PACKAGE_LIST
}
"
)
message
(
STATUS
" Trilinos libraries:
${
Trilinos_LIBRARIES
}
"
)
message
(
STATUS
" Trilinos TPL libraries:
${
Trilinos_TPL_LIBRARIES
}
"
)
if
(
NOT
${
MPI_CXX_COMPILER
}
STREQUAL
${
Trilinos_CXX_COMPILER
}
)
message
(
"Compiler mismatch:"
)
message
(
" Trilinos was compiled with:"
)
message
(
"
${
Trilinos_C_COMPILER
}
"
)
message
(
"
${
Trilinos_CXX_COMPILER
}
"
)
message
(
"
${
Trilinos_Fortran_COMPILER
}
"
)
message
(
" You are using:"
)
message
(
"
${
CMAKE_C_COMPILER
}
"
)
message
(
"
${
CMAKE_CXX_COMPILER
}
"
)
message
(
"
${
CMAKE_Fortran_COMPILER
}
"
)
message
(
WARNING
"Compiler mismatch:"
)
message
(
WARNING
" Trilinos was compiled with:"
)
message
(
WARNING
"
${
Trilinos_C_COMPILER
}
"
)
message
(
WARNING
"
${
Trilinos_CXX_COMPILER
}
"
)
message
(
WARNING
"
${
Trilinos_Fortran_COMPILER
}
"
)
message
(
WARNING
" You are using:"
)
message
(
WARNING
"
${
CMAKE_C_COMPILER
}
"
)
message
(
WARNING
"
${
CMAKE_CXX_COMPILER
}
"
)
message
(
WARNING
"
${
CMAKE_Fortran_COMPILER
}
"
)
message
(
FATAL_ERROR
""
)
endif
()
endif
()
option
(
ENABLE_OPAL_FEL
"Enable OPAL FEL"
OFF
)
if
(
ENABLE_OPAL_FEL
)
message
(
"Enable OPAL FEL: "
${
ENABLE_OPAL_FEL
}
)
message
(
STATUS
"Enable OPAL FEL: "
${
ENABLE_OPAL_FEL
}
)
find_package
(
MITHRA MODULE REQUIRED
)
add_
DEFINITIONS
(
-DOPAL_FEL
)
add_
definitions
(
-DOPAL_FEL
)
endif
()
option
(
DBG_SCALARFIELD
"Enable dump of scalar field rho_m"
OFF
)
if
(
DBG_SCALARFIELD
)
message
(
"
\n
Write scalar rho_m field is enabled "
)
add_
DEFINITIONS
(
-DDBG_SCALARFIELD
)
message
(
STATUS
"
Write scalar rho_m field is enabled "
)
add_
definitions
(
-DDBG_SCALARFIELD
)
endif
()
option
(
DBG_STENCIL
"Dump stencil of iterative solver in matlab format"
OFF
)
if
(
DBG_STENCIL
)
MESSAGE
(
"
\n
Write stencil is enabled "
)
ADD_DEFINITIONS
(
-DDBG_STENCIL
)
message
(
STATUS
"
Write stencil is enabled "
)
add_definitions
(
-DDBG_STENCIL
)
endif
()
option
(
NO_FIELD_ASSIGN_OPTIMIZATION
"Disable compiler optimization of IPPL field assignment"
OFF
)
if
(
NO_FIELD_ASSIGN_OPTIMIZATION
)
MESSAGE
(
"
\n
Compiler will not try to optimize field assignment"
)
ADD_DEFINITIONS
(
-DdontOPTIMIZE_FIELD_ASSIGNMENT
)
message
(
STATUS
"
Compiler will not try to optimize field assignment"
)
add_definitions
(
-DdontOPTIMIZE_FIELD_ASSIGNMENT
)
endif
()
option
(
ENABLE_DOXYDOC
"compile Doxygen documentation"
OFF
)
...
...
@@ -232,7 +232,7 @@ if (GIT_FOUND)
)
set
(
OPAL_WC_REVISION \"
${
GIT_OUT
}
\"
)
else
()
message
(
"could not find git"
)
message
(
STATUS
"could not find git"
)
set
(
OPAL_WC_REVISION \"\"
)
endif
()
...
...
@@ -272,4 +272,4 @@ install (
# cmake-tab-width: 4
# indent-tabs-mode: nil
# require-final-newline: nil
# End:
# End:
\ No newline at end of file
ippl/src/CMakeLists.txt
View file @
fe8ad2c2
message
(
"configure: make IpplInfo.h"
)
message
(
STATUS
"configure: make IpplInfo.h"
)
execute_process
(
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
COMMAND date
...
...
ippl/test/FFT/CMakeLists.txt
View file @
fe8ad2c2
file
(
RELATIVE_PATH _relPath
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
message
(
"Adding test FFT found in
${
_relPath
}
"
)
message
(
"MPI CXX compiler:
${
MPI_CXX_COMPILER
}
"
)
message
(
"CXX compiler:
${
CMAKE_CXX_COMPILER
}
"
)
message
(
STATUS
"Adding test FFT found in
${
_relPath
}
"
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src
...
...
ippl/test/FFT/SeaborgRes/CMakeLists.txt
View file @
fe8ad2c2
file
(
RELATIVE_PATH _relPath
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
message
(
"Adding more FFT tests found in
${
_relPath
}
"
)
message
(
STATUS
"Adding more FFT tests found in
${
_relPath
}
"
)
add_executable
(
Seaborgfftspeed fftspeed.cpp
)
add_executable
(
SeaborgTestFFT TestFFT.cpp
)
...
...
ippl/test/toyfdtf/CMakeLists.txt
View file @
fe8ad2c2
file
(
RELATIVE_PATH _relPath
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
)
message
(
"Adding test ippltoyfdtd found in
${
_relPath
}
"
)
message
(
STATUS
"Adding test ippltoyfdtd found in
${
_relPath
}
"
)
set
(
IPPLTOYFDTD_SRCS
ToyFDTD-DataSink/DataSink.cpp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment