Changeset 8071


Ignore:
Timestamp:
Nov 17, 2010, 3:45:44 PM (8 years ago)
Author:
gray
Message:

modified acceptance tests to test the cen-4470-test HPC.

Location:
branches/anuga_1_2_0/misc/tools/acceptance_tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/anuga_1_2_0/misc/tools/acceptance_tests/test_latency_bandwidth.py

    r7656 r8071  
    3737    results = []
    3838    #machines_file = os.path.join('~', '.machines_%s' % cluster)
    39     for num_procs in Processor_Numbers:
    40         cmd = ('mpirun -nolocal -np %2d -hostfile %s %s'
    41                % (num_procs, util.machines_file, obj_file))
     39    for num_procs in Processor_Numbers:
     40        if cluster == 'cen-4470-test':
     41            cmd = ('mpirun -np %2d %s'
     42                   % (num_procs, obj_file))
     43        else:
     44            cmd = ('mpirun -nolocal -np %2d -hostfile %s %s'
     45                   % (num_procs, util.machines_file, obj_file))
    4246        util.log_print(logfile, cmd + ' ...')
    4347        (_, fd) = os.popen4(cmd)
  • branches/anuga_1_2_0/misc/tools/acceptance_tests/test_python_packages.py

    r7891 r8071  
    1818                   'import matplotlib',
    1919                   'import pylab',
    20                    'import wxPython',
     20                   'import wx',
    2121                   'import sqlalchemy',
    2222                  )
  • branches/anuga_1_2_0/misc/tools/acceptance_tests/test_quadrature_parallel_interleaved.py

    r7656 r8071  
    77import test_utils as util
    88
    9 Processor_Numbers = [1, 2, 4, 8, 16]
     9Processor_Numbers = [1, 2, 4, 5, 8, 16, 32, 38, 64, 76]
    1010
    1111name = 'Running quadrature parallel interleaved test'
     
    1515
    1616    (cluster, domain) = util.get_hostname()
    17 
     17    print "cluster", cluster
     18    print "domain", domain
    1819    # get python to run
    1920    python_env_var = os.getenv('PYTHON')
     
    3940    #machines_file = os.path.join('machines_%s' % cluster)
    4041    single_processor_time = None
    41     for num_procs in Processor_Numbers:
    42         cmd = ('mpirun -nolocal -np %2d -hostfile %s %s'
    43                % (num_procs, util.machines_file, obj_file))
     42    for num_procs in Processor_Numbers: 
     43        if cluster == 'cen-4470-test':
     44            cmd = ('mpirun -np %2d %s'
     45                   % (num_procs, obj_file))
     46        else:
     47            cmd = ('mpirun -nolocal -np %2d -hostfile %s %s'
     48                   % (num_procs, util.machines_file, obj_file))
    4449        util.log_print(logfile, cmd + ' ...')
    4550        (_, fd) = os.popen4(cmd)
  • branches/anuga_1_2_0/misc/tools/acceptance_tests/test_test_pypar.py

    r7656 r8071  
    77import test_utils as util
    88
    9 Processor_Numbers = [1, 2, 4, 8, 16]
     9Processor_Numbers = [1, 20, 24, 28, 30, 32]
    1010
    1111name = 'Running pypar test'
     
    1818    # get python to run
    1919    python_env_var = os.getenv('PYTHON')
     20    if python_env_var is None:
     21        python_env_var = 'python'
    2022
    2123    # run the test_pypar.py tests
    2224    #machines_file = os.path.join('~', '.machines_%s' % cluster)
    23     for num_procs in Processor_Numbers:
    24         cmd = ('mpirun -nolocal -np %2d -hostfile %s %s test_pypar.py'
    25                % (num_procs, util.machines_file, python_env_var))
     25    for num_procs in Processor_Numbers:
     26        if cluster == 'cen-4470-test':
     27            cmd = ('mpirun -np %2d %s test_pypar.py'
     28                   % (num_procs, python_env_var))
     29        else:
     30            cmd = ('mpirun -nolocal -np %2d -hostfile %s %s test_pypar.py'
     31                   % (num_procs, util.machines_file, python_env_var))
    2632        util.log_print(logfile, cmd + ' ...')
    2733        fd = os.popen(cmd)
     
    6975    machines_file = os.path.join('..', util.machines_file)
    7076    result_data = []
    71     for num_procs in Processor_Numbers:
    72         cmd = ('mpirun -nolocal -np %2d -hostfile %s %s mandel_parallel_cyclic.py'
     77    for num_procs in Processor_Numbers:
     78        if cluster == 'cen-4470-test':
     79            cmd = ('mpirun -np %2d %s mandel_parallel_cyclic.py'
     80                   % (num_procs, python_env_var))
     81        else:
     82            cmd = ('mpirun -nolocal -np %2d -hostfile %s %s mandel_parallel_cyclic.py'
    7383               % (num_procs, machines_file, python_env_var))
    7484        util.log_print(logfile, cmd + ' ...')
Note: See TracChangeset for help on using the changeset viewer.