Skip to content

Commit

Permalink
Set hostname to localhost on MacOS
Browse files Browse the repository at this point in the history
closes #401
  • Loading branch information
popescu-v committed Oct 11, 2024
1 parent c5ccade commit 1c5004e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ if(UNIX)
file(READ ${PROJECT_SOURCE_DIR}/packaging/linux/common/khiops_env/export_env_variables.sh EXPORT_ENV_VARIABLES)
elseif("${MPI_IMPL}" STREQUAL "mpich")
set(MPIEXEC_HOSTFILE_FLAG "-f")
# Set localhost on MacOS (see issue # https://github.com/pmodels/mpich/issues/4710)
if(APPLE)
set(KHIOPS_MPI_EXTRA_FLAG "-host localhost")
endif(APPLE)
endif()

# Add header comment to the variable definition (if any variable is defined)
Expand Down

0 comments on commit 1c5004e

Please sign in to comment.