Changeset 23730


Ignore:
Timestamp:
02/15/19 11:47:23 (6 years ago)
Author:
schlegel
Message:

CHG: update modules for clusters

Location:
issm/trunk-jpl/src/m/classes/clusters
Files:
2 edited

Legend:

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

    r21576 r23730  
    1111                 name          = 'ls5.tacc.utexas.edu'
    1212                 login         = '';
    13                  modules        = {};
     13                 modules        = {'intel/16.0.1'};
    1414                 numnodes      = 1;
    1515                 cpuspernode   = 24;
    16                  port          = 0;
     16                 port          = 1099;
    1717                 queue         = 'normal';
    1818                 codepath      = '';
     
    120120                         fprintf(fid,'#SBATCH -o %s.outlog \n',modelname);
    121121                         fprintf(fid,'#SBATCH -e %s.errlog \n',modelname);
    122                          fprintf(fid,'#SBATCH -n %i \n',cluster.numnodes*cluster.cpuspernode);
     122                         fprintf(fid,'#SBATCH -n %i \n',cluster.numnodes*max(cluster.numnodes,24));
    123123                         fprintf(fid,'#SBATCH -N %i \n',cluster.numnodes);
    124124                         fprintf(fid,'#SBATCH -t %02i:%02i:00 \n\n',floor(cluster.time/3600),floor(mod(cluster.time,3600)/60));
     
    127127                         end
    128128
    129                          %fprintf(fid,'export KMP_AFFINITY="granularity=fine,compact,verbose" \n\n');
     129                         if isdakota,
     130                                 fprintf(fid,'export KMP_AFFINITY="granularity=fine,compact,verbose" \n\n');
     131                         end
    130132
    131133                         if length(find(cluster.email=='@'))>0
    132                                  %fprintf(fid,'#SBATCH --mail-user=%s \n',cluster.email);
    133                                  %fprintf(fid,'#SBATCH --mail-type=end \n\n');
    134 
    135                                  fprintf(fid,'ssh login1 "mail -s ''SLURM Jobid=${SLURM_JOBID} Name=${SLURM_JOB_NAME} Began on Lonestar 5.'' %s <<< ''Job Started'' " \n\n',cluster.email);
     134                                 fprintf(fid,'#SBATCH --mail-user=%s \n',cluster.email);
     135                                 fprintf(fid,'#SBATCH --mail-type=end \n\n');
     136
     137                                 %fprintf(fid,'ssh login1 "mail -s ''SLURM Jobid=${SLURM_JOBID} Name=${SLURM_JOB_NAME} Began on Lonestar 5.'' %s <<< ''Job Started'' " \n\n',cluster.email);
    136138                         end
    137139
     
    145147                         end
    146148
    147                          if length(find(cluster.email=='@'))>0
    148                                  fprintf(fid,'\n');
    149                                  fprintf(fid,'ssh login1 "mail -s ''SLURM Jobid=${SLURM_JOBID} Name=${SLURM_JOB_NAME} Ended on Lonestar 5.'' %s <<< ''Job Ended'' " \n\n',cluster.email);
    150                          end
    151149                         fclose(fid);
    152150
  • issm/trunk-jpl/src/m/classes/clusters/stallo.m

    r23422 r23730  
    4949                         disp(sprintf('    name: %s',cluster.name));
    5050                         disp(sprintf('    login: %s',cluster.login));
    51       disp(sprintf('    accountname: %s',cluster.accountname));
     51                        disp(sprintf('    accountname: %s',cluster.accountname));
    5252                         disp(sprintf('    numnodes: %i',cluster.numnodes));
    5353                         disp(sprintf('    cpuspernode: %i, cpu per nodes',cluster.cpuspernode));
     
    7171                         %Miscelaneous
    7272                         if isempty(cluster.login), md = checkmessage(md,'login empty'); end
    73       if isempty(cluster.accountname), md = checkmessage(md,'accountname empty'); end
     73                        if isempty(cluster.accountname), md = checkmessage(md,'accountname empty'); end
    7474                         if isempty(cluster.codepath), md = checkmessage(md,'codepath empty'); end
    7575                         if isempty(cluster.executionpath), md = checkmessage(md,'executionpath empty'); end
     
    115115                         end
    116116                         fprintf(fid,'#SBATCH --account=%s\n',cluster.accountname);
    117                          fprintf(fid,'#SBATCH -output %s.outlog \n',[cluster.executionpath '/' dirname '/' modelname]);
    118                          fprintf(fid,'#SBATCH -error %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]);
     117                         fprintf(fid,'#SBATCH -o %s.outlog \n',[cluster.executionpath '/' dirname '/' modelname]);
     118                         fprintf(fid,'#SBATCH -e %s.errlog \n\n',[cluster.executionpath '/' dirname '/' modelname]);
    119119
    120120                         fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath);%FIXME
     
    133133                                fprintf(fid,'mpirun -np %i %s/%s %s %s/%s %s\n',cluster.np,cluster.codepath,executable,solution,cluster.executionpath,dirname,modelname);
    134134                         end
    135                          %}}}
    136135                         if ~io_gather, %concatenate the output files:
    137136                                 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname);
     
    153152                         end
    154153                 end
    155 
    156 
     154                 %}}}
    157155                 function UploadQueueJob(cluster,modelname,dirname,filelist)% {{{
    158156
Note: See TracChangeset for help on using the changeset viewer.