Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f0ecf1f0 authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Allow MPI in simulation mode, just use smpicc instead of mpicc

parent e9ad21b0
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment