Ignore:
Timestamp:
Jan 23, 2012, 4:16:46 PM (13 years ago)
Author:
pittj
Message:

adding portability across, tornado, NCI, cyclone and compute 1 to all parrallel scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/mem_time_tests/hardware/template/main.py

    r8315 r8320  
    2222#------------------------------------------------------------------------------
    2323a = []
    24 
     24host = os.getenv('HOST')
    2525home = os.getenv('INUNDATIONHOME')
    2626scenariodir = add_directories(home, ["data","mem_time_test", "parallel","template"])
     
    4747for n in range(1,40,1):
    4848    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 
    5060    y = time.time()
    5161    f = open(file_path_store,'r+')
Note: See TracChangeset for help on using the changeset viewer.