- Timestamp:
- Jan 23, 2012, 4:16:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/mem_time_tests/hardware/template/main.py
r8315 r8320 22 22 #------------------------------------------------------------------------------ 23 23 a = [] 24 24 host = os.getenv('HOST') 25 25 home = os.getenv('INUNDATIONHOME') 26 26 scenariodir = add_directories(home, ["data","mem_time_test", "parallel","template"]) … … 47 47 for n in range(1,40,1): 48 48 z = time.time() 49 subprocess.call(['mpirun', '-np', str(n), '-hostfile' ,'~/machinefiles/test.machines_tornado', '-x','PYTHONPATH','-x','INUNDATIONHOME','python2.5', 'runcairns.py']) 49 if (host == 'cyclone.agso.gov.au'): 50 subprocess.call(['mpirun', '-np', str(n), '-hostfile' ,'~/machinefiles/test.machines_cyclone', '-x','PYTHONPATH','-x','INUNDATIONHOME','python2.6', 'runcairns.py']) 51 if (host == 'tornado.agso.gov.au'): 52 subprocess.call(['mpirun', '-np', str(n), '-hostfile' ,'~/machinefiles/test.machines_tornado', '-x','PYTHONPATH','-x','INUNDATIONHOME','python2.6', 'runcairns.py']) 53 if (host == 'vayu1'): 54 subprocess.call(['mpirun', '-np', str(n), '-x','PYTHONPATH','-x','INUNDATIONHOME','python', 'runcairns.py']) 55 if (host == 'rhe-compute1.ga.gov.au'): 56 subprocess.call(['mpirun', '-np', str(n), '-x','PYTHONPATH','-x','INUNDATIONHOME','python2.6', 'runcairns.py']) 57 if (host == 'xe'): 58 subprocess.call(['mpirun', '-np', str(n), '-x','PYTHONPATH','-x','INUNDATIONHOME','python', 'runcairns.py']) 59 50 60 y = time.time() 51 61 f = open(file_path_store,'r+')
Note: See TracChangeset
for help on using the changeset viewer.