- Timestamp:
- Nov 17, 2010, 3:45:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/anuga_1_2_0/misc/tools/acceptance_tests/test_test_pypar.py
r7656 r8071 7 7 import test_utils as util 8 8 9 Processor_Numbers = [1, 2 , 4, 8, 16]9 Processor_Numbers = [1, 20, 24, 28, 30, 32] 10 10 11 11 name = 'Running pypar test' … … 18 18 # get python to run 19 19 python_env_var = os.getenv('PYTHON') 20 if python_env_var is None: 21 python_env_var = 'python' 20 22 21 23 # run the test_pypar.py tests 22 24 #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)) 26 32 util.log_print(logfile, cmd + ' ...') 27 33 fd = os.popen(cmd) … … 69 75 machines_file = os.path.join('..', util.machines_file) 70 76 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' 73 83 % (num_procs, machines_file, python_env_var)) 74 84 util.log_print(logfile, cmd + ' ...')
Note: See TracChangeset
for help on using the changeset viewer.