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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.