Skip to content

Commit 504a957

Browse files
committed
Merge branch 'main' into ci_installer
2 parents 869f2c2 + 0c14103 commit 504a957

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
psutil >=5.9, <=6.1.1
1+
psutil >=5.9, <=7.0.0
22
pystache>=0.6.0
33
typeguard>=3.0.1
44
packaging >= 24.0, <= 24.2

src/psij/launchers/scripts/mpi_launch.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ _PSI_J_PROCESS_COUNT="$1"
66
shift
77

88
IS_OPENMPI=0
9-
if mpirun -version | grep "Open MPI" >/dev/null 2>&1; then
9+
IS_OPENMPI_5=0
10+
if mpirun -version | grep "(Open MPI) 5" >/dev/null 2>&1; then
11+
IS_OPENMPI_5=1
12+
elif mpirun -version | grep "Open MPI" >/dev/null 2>&1; then
1013
IS_OPENMPI=1
1114
fi
1215

1316
pre_launch
1417

1518
set +e
16-
if [ "$IS_OPENMPI" == "1" ]; then
19+
if [ "$IS_OPENMPI_5" == "1" ]; then
20+
# there is no -q parameter in OMPI 5
1721
mpirun --oversubscribe -n $_PSI_J_PROCESS_COUNT "$@" 1>$_PSI_J_STDOUT 2>$_PSI_J_STDERR <$_PSI_J_STDIN
22+
elif [ "$IS_OPENMPI" == "1" ]; then
23+
mpirun --oversubscribe -q -n $_PSI_J_PROCESS_COUNT "$@" 1>$_PSI_J_STDOUT 2>$_PSI_J_STDERR <$_PSI_J_STDIN
1824
else
1925
mpirun -n $_PSI_J_PROCESS_COUNT "$@" 1>$_PSI_J_STDOUT 2>$_PSI_J_STDERR <$_PSI_J_STDIN
2026
fi

tests/test_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def test_list(execparams: ExecutorTestParams) -> None:
167167
assert job.native_id is not None
168168
ids = ex.list()
169169
assert job.native_id in ids
170+
status = job.wait(timeout=_get_timeout(execparams))
171+
assert_completed(job, status)
170172

171173

172174
def _get_batch_executors() -> List[str]:

0 commit comments

Comments
 (0)