Changeset 23730
- Timestamp:
- 02/15/19 11:47:23 (6 years ago)
- 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 11 11 name = 'ls5.tacc.utexas.edu' 12 12 login = ''; 13 modules = { };13 modules = {'intel/16.0.1'}; 14 14 numnodes = 1; 15 15 cpuspernode = 24; 16 port = 0;16 port = 1099; 17 17 queue = 'normal'; 18 18 codepath = ''; … … 120 120 fprintf(fid,'#SBATCH -o %s.outlog \n',modelname); 121 121 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)); 123 123 fprintf(fid,'#SBATCH -N %i \n',cluster.numnodes); 124 124 fprintf(fid,'#SBATCH -t %02i:%02i:00 \n\n',floor(cluster.time/3600),floor(mod(cluster.time,3600)/60)); … … 127 127 end 128 128 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 130 132 131 133 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); 136 138 end 137 139 … … 145 147 end 146 148 147 if length(find(cluster.email=='@'))>0148 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 end151 149 fclose(fid); 152 150 -
issm/trunk-jpl/src/m/classes/clusters/stallo.m
r23422 r23730 49 49 disp(sprintf(' name: %s',cluster.name)); 50 50 disp(sprintf(' login: %s',cluster.login)); 51 51 disp(sprintf(' accountname: %s',cluster.accountname)); 52 52 disp(sprintf(' numnodes: %i',cluster.numnodes)); 53 53 disp(sprintf(' cpuspernode: %i, cpu per nodes',cluster.cpuspernode)); … … 71 71 %Miscelaneous 72 72 if isempty(cluster.login), md = checkmessage(md,'login empty'); end 73 73 if isempty(cluster.accountname), md = checkmessage(md,'accountname empty'); end 74 74 if isempty(cluster.codepath), md = checkmessage(md,'codepath empty'); end 75 75 if isempty(cluster.executionpath), md = checkmessage(md,'executionpath empty'); end … … 115 115 end 116 116 fprintf(fid,'#SBATCH --account=%s\n',cluster.accountname); 117 fprintf(fid,'#SBATCH -o utput%s.outlog \n',[cluster.executionpath '/' dirname '/' modelname]);118 fprintf(fid,'#SBATCH -e rror%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]); 119 119 120 120 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath);%FIXME … … 133 133 fprintf(fid,'mpirun -np %i %s/%s %s %s/%s %s\n',cluster.np,cluster.codepath,executable,solution,cluster.executionpath,dirname,modelname); 134 134 end 135 %}}}136 135 if ~io_gather, %concatenate the output files: 137 136 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 153 152 end 154 153 end 155 156 154 %}}} 157 155 function UploadQueueJob(cluster,modelname,dirname,filelist)% {{{ 158 156
Note:
See TracChangeset
for help on using the changeset viewer.