Skip to content

Commit

Permalink
t/300*: add HWLOC_COMPONENTS=-gl to mpi tests
Browse files Browse the repository at this point in the history
problem: some hwloc versions try to connect to the x11 port if it exists
causing all kinds of problems

solution: set the env var to tell hwloc to not do that
  • Loading branch information
trws committed Jul 20, 2024
1 parent a02625f commit c7b2a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions t/t3000-mpi-basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if ! test -x ${HELLO}; then
test_done
fi

# work around https://github.com/open-mpi/ompi/issues/7701 and similar in mpich
export HWLOC_COMPONENTS=-gl
export TEST_UNDER_FLUX_CORES_PER_RANK=4
SIZE=2
MAX_MPI_SIZE=$(($SIZE*$TEST_UNDER_FLUX_CORES_PER_RANK))
Expand Down
4 changes: 3 additions & 1 deletion t/t3003-mpi-abort.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ if ! test -x ${FLUX_BUILD_DIR}/t/mpi/abort; then
test_done
fi

# work around https://github.com/open-mpi/ompi/issues/7701 and similar in mpich
export HWLOC_COMPONENTS=-gl
export TEST_UNDER_FLUX_CORES_PER_RANK=4
SIZE=2
MAX_MPI_SIZE=$(($SIZE*$TEST_UNDER_FLUX_CORES_PER_RANK))
test_under_flux $SIZE job

set -x
OPTS="-ocpu-affinity=off"

diag() {
Expand Down

0 comments on commit c7b2a44

Please sign in to comment.