Changeset 25018
- Timestamp:
- 06/11/20 16:45:23 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/clusters/discover.m ¶
r22240 r25018 125 125 end 126 126 fprintf(fid,'. /usr/share/modules/init/bash\n\n'); 127 fprintf(fid,'module load comp/intel -16.0.2.181\n');128 fprintf(fid,'module load mpi/ impi-5.1.3.181\n');129 fprintf(fid,'module load other/cmake-3.8.2\n');127 fprintf(fid,'module load comp/intel/20.0.0.166\n'); 128 fprintf(fid,'module load mpi/sgi-mpt/2.17\n'); 129 fprintf(fid,'module load cmake/3.17.0\n'); 130 130 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); 131 131 fprintf(fid,'export MPI_UNBUFFERED_STDIO=true\n\n'); … … 135 135 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 136 136 137 fprintf(fid,'mpi run-np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);137 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 138 138 if ~io_gather, %concatenate the output files: 139 139 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 145 145 fid=fopen([modelname '.run'],'w'); 146 146 if ~isvalgrind, 147 fprintf(fid,'mpi run-np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);147 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 148 148 else 149 fprintf(fid,'mpi run-np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname);149 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 150 150 end 151 151 if ~io_gather, %concatenate the output files: … … 190 190 if ~cluster.interactive, 191 191 if ~isempty(restart) 192 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && qsub' modelname '.queue '];192 launchcommand=['cd ' cluster.executionpath ' && cd ' dirname ' && sbatch ' modelname '.queue ']; 193 193 else 194 194 launchcommand=['cd ' cluster.executionpath ' && rm -rf ./' dirname ' && mkdir ' dirname ... 195 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz && qsub' modelname '.queue '];195 ' && cd ' dirname ' && mv ../' dirname '.tar.gz ./ && tar -zxf ' dirname '.tar.gz && sbatch ' modelname '.queue ']; 196 196 end 197 197 else
Note:
See TracChangeset
for help on using the changeset viewer.