Skip to content

Commit 863ccf3

Browse files
committed
Add PMIx Horovod test
Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
1 parent 5164d82 commit 863ccf3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/mpi.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ function teardown() {
2424
[ "$(sort -n <<< ${output})" == "$(seq 0 3)" ]
2525
}
2626

27+
@test "PMIx Horovod" {
28+
run_srun --mpi=pmix --ntasks=8 --container-image=nvcr.io/nvidia/tensorflow:23.01-tf2-py3 \
29+
python -c "import os ; import horovod.tensorflow as hvd ; hvd.init(); assert(int(os.getenv('PMIX_RANK')) == hvd.rank())"
30+
}
31+
2732
@test "PMI2 file descriptor" {
2833
run_srun --mpi=pmi2 --ntasks=4 --container-image=ubuntu:18.04 bash -c '[ -n "${PMI_FD}" ] && realpath /proc/self/fd/${PMI_FD} | grep -q socket'
2934
}

0 commit comments

Comments
 (0)