From a38973a8a760811136e1ae3407f251286ab19364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kl=C3=B6ckner?= Date: Tue, 21 Aug 2018 14:21:16 -0400 Subject: [PATCH] Use -m mpi4py.run in spawning subprocesses to avoid hangs --- test/test_partition.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_partition.py b/test/test_partition.py index 8dd23997..8ff25caa 100644 --- a/test/test_partition.py +++ b/test/test_partition.py @@ -535,7 +535,9 @@ def test_mpi_communication(num_partitions, order): "mpiexec", "-np", str(num_ranks), "-x", "RUN_WITHIN_MPI=1", "-x", "order=%d" % order, - sys.executable, __file__], + + # https://mpi4py.readthedocs.io/en/stable/mpi4py.run.html + sys.executable, "-m", "mpi4py.run", __file__], ) # }}} -- GitLab