Changeset 3146


Ignore:
Timestamp:
03/02/10 00:29:41 (15 years ago)
Author:
Eric.Larour
Message:

Big reorganization of cluster remote job control. We now allow tunnels
to be used, pretty cool. We also simplified all the scripts. Everything
is now controlled in the ClusterLaunchCommand for launching jobs.
We need to do the same for creating the queue files. For tomorrow.

Location:
issm/trunk
Files:
8 added
5 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/etc/cluster.rc

    r3131 r3146  
    2626cluster_executionpath=/work00/edw/larour/Execution
    2727cluster_login=larour
     28cluster_port=0
    2829
    2930cluster_name=mustang
     
    3132cluster_executionpath=/proj/ice/larour/Testing_ice/Execution
    3233cluster_login=larour
     34cluster_port=0
    3335
    3436cluster_name=metro
     
    3638cluster_executionpath=/home/larour/Testing/Execution
    3739cluster_login=larour
     40cluster_port=0
    3841
    3942cluster_name=wilkes
     
    4144cluster_executionpath=/u/astrid-r1b/larour/Testing/Execution
    4245cluster_login=larour
     46cluster_port=0
    4347
    4448cluster_name=astrid
     
    4650cluster_executionpath=/u/astrid-r1b/larour/Testing/Execution
    4751cluster_login=larour
     52cluster_port=0
    4853
    4954cluster_name=larsen
     
    5156cluster_executionpath=/u/astrid-r1b/larour/Testing/Execution
    5257cluster_login=larour
     58cluster_port=0
    5359
    5460cluster_name=gemini
     
    5662cluster_executionpath=/workg/edw/larour/Testing/Execution
    5763cluster_login=larour
     64cluster_port=0
    5865
    5966cluster_name=castor
     
    6168cluster_executionpath=/workc/edw/larour/Testing/Execution
    6269cluster_login=larour
     70cluster_port=0
    6371
    6472cluster_name=greenplanet
     
    6674cluster_executionpath=/home/elarour/Testing/Execution
    6775cluster_login=larour
     76cluster_port=0
    6877
    6978cluster_name=pollux
     
    7180cluster_executionpath=/workp/edw/larour/Testing/Execution
    7281cluster_login=larour
     82cluster_port=0
    7383
    7484cluster_name=pfe
     
    7686cluster_executionpath=/nobackup/elarour/Testing
    7787cluster_login=elarour
     88cluster_port=1025
    7889
    7990cluster_name=mearas
     
    8192cluster_executionpath=/proj/ice/larour/Testing/Execution
    8293cluster_login=larour
     94cluster_port=0
    8395
    8496
  • issm/trunk/src/m/classes/public/queue/BuildQueueingScriptGeneric.m

    r2880 r3146  
    2424end
    2525
     26
    2627fclose(fid);
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJob.m

    r3119 r3146  
    1 function md=LaunchQueueJob(md,executionpath,options,login)
    2 %LAUNCHQUEUEJOB - ...
     1function md=LaunchQueueJob(md,executionpath,login,port,options)
     2%LAUNCHQUEUEJOB- Launch queue script for cluster
    33%
    44%   Usage:
    5 %      LaunchQueueJob(md,executionpath)
     5%      md=LaunchQueueJob(md,executionpath,launchcommand,login,port,options)
    66
    7 %First try and figure out if there is a special script for thie particular cluster
    8 function_name=['LaunchQueueJob' md.cluster];
    97
    10 %some specific treatment of identical cluster, gemini, castor and pollux
    11 if strcmpi(md.cluster,'castor') || strcmpi(md.cluster,'pollux'),
    12         function_name='LaunchQueueJobgemini';
     8%first, check we have the binary file and the queueing script
     9if ~exist([ md.name '.bin'],'file'),
     10        error('LaunchQueueJobcosmos error message: Binary input file missing, cannot go forward');
    1311end
    1412
    15 if exist(function_name,'file'),
    16         %Call this function:
    17         eval(['md=' function_name '(md,executionpath,options,login);']);
     13if ~exist([ md.name '.queue'],'file'),
     14        error('LaunchQueueJobcosmos error message: queueing script missing, cannot go forward');
     15end
     16
     17if md.qmu_analysis,
     18        if ~exist([ md.name '.qmu.in'],'file'),
     19                error('LaunchQueueJobcosmos error message: missing dakota input file, cannot go forward');
     20        end
     21end
     22
     23if ~strcmpi(options.batch,'yes'),
     24       
     25        %what files are we sending?
     26        packages={[md.name '.bin'],[md.name '.queue']};
     27        if md.qmu_analysis,
     28                packages{end+1}=[md.name '.qmu.in'];
     29        end
     30
     31        disp('uploading input file and queueing script');
     32        issmscpout(md.cluster,executionpath,login,port,packages);
     33
     34        disp('launching solution sequence on remote cluster');
     35        issmssh(md.cluster,login,port,ClusterLaunchCommand(md.cluster,md.name,executionpath));
     36
    1837else
    19         %Call the generic LaunchQueueJob:
    20         md=LaunchQueueJobGeneric(md,executionpath,options,login);
     38        disp('batch mode requested: not launching job interactively');
     39        disp('launch solution sequence on remote cluster by hand');
    2140end
Note: See TracChangeset for help on using the changeset viewer.