Changeset 22064


Ignore:
Timestamp:
09/08/17 04:35:05 (8 years ago)
Author:
hakesson
Message:

CHG: minor edits to cluster file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/vilje.m

    r22054 r22064  
    1515                procspernodes  = 16;
    1616                mem            = 28;
     17                numstreams              = 8; %Henning added
    1718                queue          = 'workq';
    1819                time           = 2*60;
     
    7980
    8081                        %compute number of processors
    81                         cluster.np=cluster.numnodes*cluster.cpuspernode;
     82%                       cluster.np=cluster.numnodes*cluster.cpuspernode;
     83                        np(cluster);%=cluster.numnodes*cluster.cpuspernode;
    8284
    8385                        %write queuing script
     
    8688                        fprintf(fid,'#PBS -N %s\n',modelname);
    8789                        fprintf(fid,'#PBS -l select=%i:ncpus=%i:mpiprocs=%i\n',cluster.numnodes,cluster.cpuspernode,16);
    88                         fprintf(fid,'#PBS -l walltime=%s\n',cluster.time); %walltime is in seconds.
     90                       
     91                        %calculate walltime in hh:mm:ss format
     92                        walltime=datestr(cluster.time/(60*24),'HH:MM:SS');
     93                        fprintf(fid,'#PBS -l walltime=%s\n',walltime); %walltime should be in hh:mm:ss
    8994                        fprintf(fid,'#PBS -A %s\n',cluster.accountname);
    9095                        fprintf(fid,'#PBS -o %s.outlog \n',modelname);
     
    9297                        fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    9398                        fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
     99                        fprintf(fid,'module load intelcomp/17.0.0\n')
     100                        fprintf(fid,'module load mpt/2.14\n')
     101                        fprintf(fid,'module load petsc/3.7.4d\n')
     102                        fprintf(fid,'module load parmetis/4.0.3\n')
     103                        fprintf(fid,'module load mumps/5.0.2\n')
    94104                        fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,modelname);
    95105                        fprintf(fid,'mpiexec_mpt -n %i %s/kriging.exe %s %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname);
     
    117127
    118128                        %compute number of processors
    119                         cluster.np=cluster.numnodes*cluster.cpuspernode;                     
    120                         shortname = substring(modelname,1,min(12,length(modelname)));
     129%                       cluster.np=cluster.numnodes*cluster.cpuspernode;
     130                        np(cluster);%=cluster.numnodes*cluster.cpuspernode;                     
     131%                       shortname = substring(modelname,1,min(12,length(modelname)));
    121132
    122133                        %write queuing script
    123134                        fid=fopen([modelname '.queue'],'w');
    124135                        fprintf(fid,'#PBS -S /bin/bash\n');
    125                         fprintf(fid,'#PBS -N %s\n',shortname);
     136%                       fprintf(fid,'#PBS -N %s\n',shortname);
     137                        fprintf(fid,'#PBS -N %s\n',modelname);
    126138                        fprintf(fid,'#PBS -q %s \n',cluster.queue);
    127139                        fprintf(fid,'#PBS -l select=%i:ncpus=%i:mpiprocs=%i\n',cluster.numnodes,cluster.cpuspernode,cluster.procspernodes);
    128                         fprintf(fid,'#PBS -l walltime=%s\n',duration(0,cluster.time,0)); %walltime is in minutes.
     140
     141                        %calculate walltime in hh:mm:ss format
     142                        walltime=datestr(cluster.time/(60*24),'HH:MM:SS');
     143%                       fprintf(fid,'#PBS -l walltime=%s\n',duration(0,cluster.time,0)); %walltime is in minutes.
     144%                       fprintf(fid,'#PBS -l walltime=%s\n',10); %walltime is in minutes.
     145                        fprintf(fid,'#PBS -l walltime=%s\n',walltime); %walltime should be in hh:mm:ss
     146%                       fprintf(fid,'#PBS -l walltime=%i\n',walltime); %walltime is in hh:mm:ss
    129147                        fprintf(fid,'#PBS -A %s\n',cluster.accountname);
    130148                        fprintf(fid,'#PBS -o %s.outlog \n',[cluster.executionpath '/' dirname '/' modelname]);
     
    132150                        fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME
    133151                        fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n');       %FIXME
     152                        fprintf(fid,'module load intelcomp/17.0.0\n')
     153                        fprintf(fid,'module load mpt/2.14\n')
     154                        fprintf(fid,'module load petsc/3.7.4d\n')
     155                        fprintf(fid,'module load parmetis/4.0.3\n')
     156                        fprintf(fid,'module load mumps/5.0.2\n')
    134157                        fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname);
    135                         fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
     158                        fprintf(fid,'mpiexec_mpt -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);
    136159
    137160                        if ~io_gather, %concatenate the output files:
     
    143166                        if cluster.interactive,
    144167                                fid=fopen([modelname '.run'],'w');
    145                                 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
     168                                fprintf(fid,'mpiexec_mpt -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname);
    146169                                if ~io_gather, %concatenate the output files:
    147170                                        fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    164187                        disp('uploading input file and queueing script');
    165188                        directory=cluster.executionpath;
    166                         issmbbftpout(cluster.name,directory,cluster.login,cluster.port,cluster.numstreams,{[dirname '.tar.gz']});
    167 
    168                 end
    169                 %}}}
    170                 function LaunchQueueJob(cluster,modelname,dirname,filelist)% {{{
     189%                       issmbbftpout(cluster.name,directory,cluster.login,cluster.port,cluster.numstreams,{[dirname '.tar.gz']});
     190                        issmscpout(cluster.name,directory,cluster.login,cluster.port,{[dirname '.tar.gz']});
     191
     192                end
     193                %}}}
     194                function LaunchQueueJob(cluster,modelname,dirname,filelist,restart,batch)% {{{
    171195
    172196                        disp('launching solution sequence on remote cluster');
Note: See TracChangeset for help on using the changeset viewer.