run_mpi_tests.sh 402 Bytes
Newer Older
Tom Birch's avatar
Tom Birch committed
1
2
#!/bin/bash
set -e
3
4
5
6
7
8
9
rpc_tests=$(pytest --collect-only | grep 'Function.*rpc' | cut -d' ' -f 6 | tr -d '>')

for WORKERS in {1..6}; do
    mpirun -n $WORKERS -mca orte_base_help_aggregate 0 python -m pytest tests/nn/pipe_process -k "not rpc"
    for test_name in $rpc_tests; do
        mpirun -n $WORKERS -mca orte_base_help_aggregate 0 python -m pytest tests/nn/pipe_process -k $test_name
    done
Tom Birch's avatar
Tom Birch committed
10
done