Changeset 22064
- Timestamp:
- 09/08/17 04:35:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/vilje.m
r22054 r22064 15 15 procspernodes = 16; 16 16 mem = 28; 17 numstreams = 8; %Henning added 17 18 queue = 'workq'; 18 19 time = 2*60; … … 79 80 80 81 %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; 82 84 83 85 %write queuing script … … 86 88 fprintf(fid,'#PBS -N %s\n',modelname); 87 89 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 89 94 fprintf(fid,'#PBS -A %s\n',cluster.accountname); 90 95 fprintf(fid,'#PBS -o %s.outlog \n',modelname); … … 92 97 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME 93 98 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') 94 104 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,modelname); 95 105 fprintf(fid,'mpiexec_mpt -n %i %s/kriging.exe %s %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname); … … 117 127 118 128 %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))); 121 132 122 133 %write queuing script 123 134 fid=fopen([modelname '.queue'],'w'); 124 135 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); 126 138 fprintf(fid,'#PBS -q %s \n',cluster.queue); 127 139 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 129 147 fprintf(fid,'#PBS -A %s\n',cluster.accountname); 130 148 fprintf(fid,'#PBS -o %s.outlog \n',[cluster.executionpath '/' dirname '/' modelname]); … … 132 150 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME 133 151 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') 134 157 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); 136 159 137 160 if ~io_gather, %concatenate the output files: … … 143 166 if cluster.interactive, 144 167 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); 146 169 if ~io_gather, %concatenate the output files: 147 170 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 164 187 disp('uploading input file and queueing script'); 165 188 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)% {{{ 171 195 172 196 disp('launching solution sequence on remote cluster');
Note:
See TracChangeset
for help on using the changeset viewer.