|
1 | 1 | #!/bin/sh
|
2 | 2 | set -e
|
3 | 3 |
|
4 |
| -PY=$(python -c 'import sys; print(sys.version_info.major)') |
5 |
| -export OMPI_MCA_plm=isolated |
6 |
| -export OMPI_MCA_btl_vader_single_copy_mechanism=none |
7 |
| -export OMPI_MCA_rmaps_base_oversubscribe=yes |
| 4 | +export OMPI_MCA_plm_ssh_agent=false |
| 5 | +export OMPI_MCA_pml=ob1 |
| 6 | +export OMPI_MCA_btl=tcp,self |
| 7 | +export OMPI_MCA_mpi_yield_when_idle=true |
| 8 | +export OMPI_MCA_btl_base_warn_component_unused=false |
| 9 | +export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe |
8 | 10 |
|
9 |
| -if [ $PY -eq 3 ]; then |
10 |
| - # coverage only for python version 3 |
| 11 | +python -m coverage erase |
11 | 12 |
|
12 |
| - python -m coverage erase |
| 13 | +python -m coverage run -m test_fftw |
| 14 | +python -m coverage run -m test_libfft |
| 15 | +python -m coverage run -m test_io |
| 16 | +python -m coverage run -m test_darray |
| 17 | +mpiexec -n 2 python -m coverage run -m test_pencil |
13 | 18 |
|
14 |
| - python -m coverage run -m test_fftw |
15 |
| - python -m coverage run -m test_libfft |
16 |
| - python -m coverage run -m test_io |
17 |
| - python -m coverage run -m test_darray |
18 |
| - mpiexec -n 2 python -m coverage run -m test_pencil |
| 19 | +#mpiexec -n 4 python -m coverage test_pencil.py |
| 20 | +#mpiexec -n 8 python -m coverage test_pencil.py |
| 21 | +mpiexec -n 2 python -m coverage run -m test_mpifft |
| 22 | +#mpiexec -n 4 python -m coverage test_mpifft.py |
| 23 | +# mpiexec -n 8 python -m coverage test_mpifft.py |
| 24 | +# mpiexec -n 12 python -m coverage test_mpifft.py |
| 25 | +mpiexec -n 2 python -m coverage run spectral_dns_solver.py |
| 26 | +mpiexec -n 2 python -m coverage run -m test_io |
| 27 | +#mpiexec -n 4 python -m coverage run -m test_io |
| 28 | +mpiexec -n 2 python -m coverage run -m test_darray |
| 29 | +#mpiexec -n 4 python -m coverage run -m test_darray |
19 | 30 |
|
20 |
| - #mpiexec -n 4 python -m coverage test_pencil.py |
21 |
| - #mpiexec -n 8 python -m coverage test_pencil.py |
22 |
| - mpiexec -n 2 python -m coverage run -m test_mpifft |
23 |
| - #mpiexec -n 4 python -m coverage test_mpifft.py |
24 |
| - # mpiexec -n 8 python -m coverage test_mpifft.py |
25 |
| - # mpiexec -n 12 python -m coverage test_mpifft.py |
26 |
| - mpiexec -n 2 python -m coverage run spectral_dns_solver.py |
27 |
| - mpiexec -n 2 python -m coverage run -m test_io |
28 |
| - #mpiexec -n 4 python -m coverage run -m test_io |
29 |
| - mpiexec -n 2 python -m coverage run -m test_darray |
30 |
| - #mpiexec -n 4 python -m coverage run -m test_darray |
31 |
| - |
32 |
| - python -m coverage combine |
33 |
| - |
34 |
| -else |
35 |
| - python test_fftw.py |
36 |
| - python test_libfft.py |
37 |
| - mpiexec -n 2 python test_pencil.py |
38 |
| - #mpiexec -n 4 python test_pencil.py |
39 |
| - #mpiexec -n 8 python test_pencil.py |
40 |
| - mpiexec -n 2 python test_mpifft.py |
41 |
| - #mpiexec -n 4 python test_mpifft.py |
42 |
| - # mpiexec -n 8 python test_mpifft.py |
43 |
| - # mpiexec -n 12 python test_mpifft.py |
44 |
| - mpiexec -n 2 python test_io.py |
45 |
| - mpiexec -n 2 python test_darray.py |
46 |
| - mpiexec -n 2 python spectral_dns_solver.py |
47 |
| -fi |
| 31 | +python -m coverage combine |
0 commit comments