Changeset 8071
- Timestamp:
- Nov 17, 2010, 3:45:44 PM (14 years ago)
- 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 37 37 results = [] 38 38 #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)) 42 46 util.log_print(logfile, cmd + ' ...') 43 47 (_, fd) = os.popen4(cmd) -
branches/anuga_1_2_0/misc/tools/acceptance_tests/test_python_packages.py
r7891 r8071 18 18 'import matplotlib', 19 19 'import pylab', 20 'import wx Python',20 'import wx', 21 21 'import sqlalchemy', 22 22 ) -
branches/anuga_1_2_0/misc/tools/acceptance_tests/test_quadrature_parallel_interleaved.py
r7656 r8071 7 7 import test_utils as util 8 8 9 Processor_Numbers = [1, 2, 4, 8, 16]9 Processor_Numbers = [1, 2, 4, 5, 8, 16, 32, 38, 64, 76] 10 10 11 11 name = 'Running quadrature parallel interleaved test' … … 15 15 16 16 (cluster, domain) = util.get_hostname() 17 17 print "cluster", cluster 18 print "domain", domain 18 19 # get python to run 19 20 python_env_var = os.getenv('PYTHON') … … 39 40 #machines_file = os.path.join('machines_%s' % cluster) 40 41 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)) 44 49 util.log_print(logfile, cmd + ' ...') 45 50 (_, fd) = os.popen4(cmd) -
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.