Commit bdcb3fa5 authored by Nicholas Breen's avatar Nicholas Breen

Run MPI tests on localhost instead of `hostname`, for network-restricted environments

parent 030e6bd0
gromacs (2019.3-2) UNRELEASED; urgency=medium
gromacs (2019.3-2) unstable; urgency=medium
* debian/patches/arm64-disable-numa-test.patch: On *some* arm64 boards,
hwloc (1.x) reports zero NUMA cache sizes, causing a test failure.
This disables that test on arm64 only.
Upstream: <https://redmine.gromacs.org/issues/2366>
* debian/patches/mpi-tests-localhost.patch: Run MPICH tests on "localhost"
so that they pass in certain network-restricted environments, such as
pbuilder with USENETWORK=NO set. (buildd always worked fine.)
-- Nicholas Breen <nbreen@debian.org> Thu, 11 Jul 2019 18:23:29 -0700
-- Nicholas Breen <nbreen@debian.org> Fri, 12 Jul 2019 18:57:43 -0700
gromacs (2019.3-1) unstable; urgency=medium
......
Description: Run MPI tests explicitly on localhost instead of hostname
In the default configuration, MPICH tests will fail in a network-restricted
environment where gethostbyname() does not return a valid address. As a
workaround, this passes an explicit "-host localhost" to mpirun for the test
suite only.
Author: Nicholas Breen <nbreen@debian.org>
Last-Update: 2019-07-12
--- gromacs-2019.3.orig/cmake/gmxManageMPI.cmake
+++ gromacs-2019.3/cmake/gmxManageMPI.cmake
@@ -75,7 +75,7 @@ if(GMX_MPI)
DOC "Executable for running MPI programs.")
set(MPIEXEC_NUMPROC_FLAG "-np" CACHE STRING "Flag used by MPI to specify the number of processes for MPIEXEC; the next option will be the number of processes.")
- set(MPIEXEC_PREFLAGS "" CACHE STRING "These flags will be directly before the executable that is being run by MPIEXEC.")
+ set(MPIEXEC_PREFLAGS "-host;localhost" CACHE STRING "These flags will be directly before the executable that is being run by MPIEXEC.")
set(MPIEXEC_POSTFLAGS "" CACHE STRING "These flags will come after all flags given to MPIEXEC.")
set(MPIEXEC_MAX_NUMPROCS "2" CACHE STRING "Maximum number of processors available to run MPI applications.")
mark_as_advanced(MPIEXEC MPIEXEC_NUMPROC_FLAG MPIEXEC_PREFLAGS MPIEXEC_POSTFLAGS MPIEXEC_MAX_NUMPROCS)
......@@ -5,3 +5,4 @@ doxygen.patch
disable-cpuinfotest.patch
mdrun-test-timeout.patch
local-mathjax.patch
mpi-tests-localhost.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment