Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
f0ecf1f0
Commit
f0ecf1f0
authored
Sep 14, 2015
by
THIBAULT Samuel
Browse files
Allow MPI in simulation mode, just use smpicc instead of mpicc
parent
e9ad21b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f0ecf1f0
...
...
@@ -465,7 +465,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
# -DMPI_C_COMPILER=path/to/mpicc -DMPI_Fortran_COMPILER=path/to/mpif90
# at cmake configure
if
(
NOT MPI_C_COMPILER
)
set
(
MPI_C_COMPILER mpicc
)
if
(
NOT CHAMELEON_SIMULATION
)
set
(
MPI_C_COMPILER mpicc
)
else
(
NOT CHAMELEON_SIMULATION
)
set
(
MPI_C_COMPILER smpicc
)
endif
()
endif
()
find_package
(
MPI REQUIRED
)
...
...
@@ -509,12 +513,6 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
"Because we are compiling the simulation mode (CHAMELEON_SIMULATION=ON),"
"we do not need to link with MAGMA.
${
ColourReset
}
"
)
endif
()
if
(
CHAMELEON_USE_MPI
)
set
(
CHAMELEON_USE_MPI OFF
)
message
(
"
${
BoldBlue
}
CHAMELEON_USE_MPI is set to ON but we turn it OFF."
"Because we are compiling the simulation mode (CHAMELEON_SIMULATION=ON),"
"we do not need to link with MPI.
${
ColourReset
}
"
)
endif
()
if
(
CHAMELEON_ENABLE_TESTING
)
set
(
CHAMELEON_ENABLE_TESTING OFF
)
message
(
"
${
BoldBlue
}
CHAMELEON_ENABLE_TESTING is set to ON but we turn it OFF."
...
...
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