Changeset 3119


Ignore:
Timestamp:
02/24/10 13:20:40 (15 years ago)
Author:
Eric.Larour
Message:

Added queuing scripts for pleiades cluster.
Also, now ClusterParameters returns login name.
cluster.rc also now includes login name.

Location:
issm/trunk/src/m/classes/public
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/ClusterParameters.m

    r227 r3119  
    1 function [cluster_codepath cluster_executionpath]=ClusterParameters(cluster_name,cluster_rc_location)
     1function [cluster_codepath cluster_executionpath cluster_login]=ClusterParameters(cluster_name,cluster_rc_location)
    22%CLUSTERPARAMETERS - from cluster_name, find out cluster parameters in cluster.rc file
    33%
     
    66%
    77%   Usage:
    8 %      [cluster_codepath cluster_executionpath]=ClusterParameters(cluster_name,cluster_rc_location)
     8%      [cluster_codepath cluster_executionpath cluster_login ]=ClusterParameters(cluster_name,cluster_rc_location)
    99
    10 lines_per_cluster=3;
     10lines_per_cluster=4;
    1111
    1212%open cluster.rc file
     
    4949        if length(line)>12,
    5050                if strcmp(line(1:12),'cluster_name'),
    51                         %ok, the next 2 lines deal with one cluster settings.
     51                        %ok, the next 3 lines deal with one cluster settings.
    5252                        %check if this is the cluster we are looking for.
    5353                        splittedstring=strsplit(line,'=');
     
    7777                                cluster_executionpath=value;
    7878
     79                                %Get next line for cluster loging name
     80                                line=fgetl(fid);
     81                                splittedstring=strsplit(line,'=');
     82                                descriptor=splittedstring{1};
     83                                value=splittedstring{2};
     84                                if ~strcmp(descriptor,'cluster_login'),
     85                                        error('cluster settings in cluster.rc don''t follow the correct syntax');
     86                                end
     87                                cluster_login=value;
     88
    7989                        else
    8090                                %Wrong cluster name, skip next lines_per_cluster lines and continue;
  • issm/trunk/src/m/classes/public/loadmultipleresultsfromcluster.m

    r2889 r3119  
    1111name=md_list{1}.name;
    1212cluster_rc_location=which('cluster.rc');
    13 [codepath,executionpath]=ClusterParameters(cluster,cluster_rc_location);
     13[codepath,executionpath,login]=ClusterParameters(cluster,cluster_rc_location);
    1414
    1515%Remote tar:
  • issm/trunk/src/m/classes/public/loadresultsfromcluster.m

    r3035 r3119  
    99
    1010%Figure out parameters for this particular cluster
    11 [codepath,executionpath]=ClusterParameters(md.cluster,cluster_rc_location);
     11[codepath,executionpath,login]=ClusterParameters(md.cluster,cluster_rc_location);
    1212
    1313%What packages are we picking up from remote cluster
  • issm/trunk/src/m/classes/public/peek.m

    r227 r3119  
    1111
    1212%Figure out parameters for this particular cluster
    13 [codepath,executionpath]=ClusterParameters(md.cluster,cluster_rc_location);
     13[codepath,executionpath,login]=ClusterParameters(md.cluster,cluster_rc_location);
    1414
    1515%peek at the queued job
  • issm/trunk/src/m/classes/public/queue/LaunchMultipleQueueJobgemini.m

    r2912 r3119  
    2020
    2121disp('launching solution sequence on remote cluster');
    22 issmssh(cluster,['"cd ' executionpath ' && source ' name '.queue "']);
     22issmssh(cluster,login,['"cd ' executionpath ' && source ' name '.queue "']);
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJob.m

    r2880 r3119  
    1 function md=LaunchQueueJob(md,executionpath,options)
     1function md=LaunchQueueJob(md,executionpath,options,login)
    22%LAUNCHQUEUEJOB - ...
    33%
     
    1515if exist(function_name,'file'),
    1616        %Call this function:
    17         eval(['md=' function_name '(md,executionpath,options);']);
     17        eval(['md=' function_name '(md,executionpath,options,login);']);
    1818else
    1919        %Call the generic LaunchQueueJob:
    20         md=LaunchQueueJobGeneric(md,executionpath,options);
     20        md=LaunchQueueJobGeneric(md,executionpath,options,login);
    2121end
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJobGeneric.m

    r2880 r3119  
    1 function md=LaunchQueueJobGeneric(md,executionpath,options)
     1function md=LaunchQueueJobGeneric(md,executionpath,options,login)
    22%LAUNCHQUEUEJOBGENERIC - Generic routine to launch queueing job
    33%
     
    2626       
    2727        disp('launching solution sequence on remote cluster');
    28         issmssh(md.cluster,['cd ' executionpath ' && source ' md.name '.queue ']);
     28        issmssh(md.cluster,login,['cd ' executionpath ' && source ' md.name '.queue ']);
    2929
    3030else
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJobcosmos.m

    r2880 r3119  
    1 function md=LaunchQueueJobcosmos(md,executionpath,options)
     1function md=LaunchQueueJobcosmos(md,executionpath,options,login)
    22%LAUNCHQUEUEJOBCOSMOS- Launch queue script for Cosmos cluster
    33%
     
    2424
    2525        disp('launching solution sequence on remote cluster');
    26         issmssh(md.cluster,['"cd ' executionpath ' && qsub -S/bin/sh ' md.name '.queue "']);
     26        issmssh(md.cluster,login,['"cd ' executionpath ' && qsub -S/bin/sh ' md.name '.queue "']);
    2727else
    2828        disp('batch mode requested: not launching job interactively');
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJobgemini.m

    r2880 r3119  
    1 function md=LaunchQueueJobgemini(md,executionpath,options)
     1function md=LaunchQueueJobgemini(md,executionpath,options,login)
    22%LAUNCHQUEUEJOBGEMINI - Launch queueing script on Gemini cluster
    33%
     
    2424       
    2525        disp('launching solution sequence on remote cluster');
    26         issmssh(md.cluster,['"cd ' executionpath ' && qsub ' md.name '.queue "']);
     26        issmssh(md.cluster,login,['"cd ' executionpath ' && qsub ' md.name '.queue "']);
    2727else
    2828        disp('batch mode requested: not launching job interactively');
  • issm/trunk/src/m/classes/public/queue/LaunchQueueJobgreenplanet.m

    r2880 r3119  
    1 function md=LaunchQueueJobgreenplanet(md,executionpath,options)
     1function md=LaunchQueueJobgreenplanet(md,executionpath,options,login)
    22%LAUNCHQUEUEJOBGEMINI - ...
    33%
  • issm/trunk/src/m/classes/public/solveparallel.m

    r2912 r3119  
    1010
    1111%Figure out parameters for this particular cluster
    12 [codepath,executionpath]=ClusterParameters(md.cluster,cluster_rc_location);
     12[codepath,executionpath,login]=ClusterParameters(md.cluster,cluster_rc_location);
    1313
    1414%Append name of directory if specified in options:
     
    2727
    2828%Now, launch the queueing script
    29 md=LaunchQueueJob(md,executionpath,options);
     29md=LaunchQueueJob(md,executionpath,options,login);
    3030
    3131%Do we return, or just wait for results?
Note: See TracChangeset for help on using the changeset viewer.