File: runtests.py

package info (click to toggle)
mpich 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 423,384 kB
  • sloc: ansic: 1,088,434; cpp: 71,364; javascript: 40,763; f90: 22,829; sh: 17,463; perl: 14,773; xml: 14,418; python: 10,265; makefile: 9,246; fortran: 8,008; java: 4,355; asm: 324; ruby: 176; lisp: 19; php: 8; sed: 4
file content (70 lines) | stat: -rwxr-xr-x 2,421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import argparse
import os
import sys
sys.path.append(os.environ['CI_SITE_CONFIG'])
import ci_site_config
import run
import common

parser = argparse.ArgumentParser()

parser.add_argument("--prov", help="core provider", choices=["psm2", "verbs", \
                     "tcp", "udp", "sockets", "shm"])
parser.add_argument("--util", help="utility provider", choices=["rxd", "rxm"])
parser.add_argument("--ofi_build_mode", help="specify the build configuration", \
                     choices = ["dbg", "dl"])

args = parser.parse_args()
args_core = args.prov

args_util = args.util

if (args.ofi_build_mode):
    ofi_build_mode = args.ofi_build_mode
else:
    ofi_build_mode='reg'

node = (os.environ['NODE_NAME']).split('-')[0]
hosts = [node]
# Note: Temporarily disabling all mpich testing
# due to mpich options issues which is causing
# multiple tests to fail.
#mpilist = ['impi', 'mpich', 'ompi']
mpilist = ['impi', 'ompi']

#this script is executed from /tmp
#this is done since some mpi tests
#look for a valid location before running
# the test on the secondary host(client)
# but jenkins only creates a valid path on
# the primary host (server/test node)

os.chdir('/tmp/')

if(args_core):
    for host in ci_site_config.node_map[node]:
        hosts.append(host)

    if (args_util == None):
        run.fi_info_test(args_core, hosts, ofi_build_mode)
        run.fabtests(args_core, hosts, ofi_build_mode)
        run.shmemtest(args_core, hosts, ofi_build_mode)
        for mpi in mpilist:
            run.mpich_test_suite(args_core, hosts, mpi, ofi_build_mode)
            run.intel_mpi_benchmark(args_core, hosts, mpi, ofi_build_mode)
            run.osu_benchmark(args_core, hosts, mpi, ofi_build_mode)
    else:
        run.fi_info_test(args_core, hosts, ofi_build_mode, util=args_util)
        run.fabtests(args_core, hosts, ofi_build_mode, util=args_util)
        run.shmemtest(args_core, hosts, ofi_build_mode, util=args_util)
        for mpi in mpilist:
            run.mpich_test_suite(args_core, hosts, mpi, ofi_build_mode, \
                                 util=args_util)

            run.intel_mpi_benchmark(args_core, hosts, mpi, ofi_build_mode, \
                                    util=args_util)
            run.osu_benchmark(args_core, hosts, mpi, ofi_build_mode, \
                                             util=args_util)
else:
    print("Error : Specify a core provider to run tests")