Changeset 13278
- Timestamp:
- 09/06/12 14:56:24 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/classes/clusters
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/acenet.m
r12925 r13278 74 74 fprintf(fid,'\n'); 75 75 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 76 cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);76 cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 77 77 fclose(fid); 78 78 -
issm/trunk-jpl/src/m/classes/clusters/castor.m
r12844 r13278 62 62 fprintf(fid,'#PBS -o %s.outlog \n',modelname); 63 63 fprintf(fid,'#PBS -e %s.errlog \n',modelname); 64 fprintf(fid,'export PBS_O_WORKDIR=%s\n', cluster.executionpath);64 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 65 65 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 66 66 fprintf(fid,'export OMP_NUM_THREADS=1\n'); 67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69 -
issm/trunk-jpl/src/m/classes/clusters/cosmos.m
r12844 r13278 60 60 fprintf(fid,'#PBS -o %s.outlog \n',modelname); 61 61 fprintf(fid,'#PBS -e %s.errlog \n',modelname); 62 fprintf(fid,'export PBS_O_WORKDIR=%s\n', cluster.executionpath);62 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 63 63 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 64 64 fprintf(fid,'export OMP_NUM_THREADS=1\n'); 65 65 fprintf(fid,'ulimit -s unlimited\n'); 66 66 fprintf(fid,'ulimit -c 0\n'); 67 fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpiexec -np %i %s/issm.exe %s %s %s',cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);67 fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpiexec -np %i %s/issm.exe %s %s %s',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69 -
issm/trunk-jpl/src/m/classes/clusters/discover.m
r13175 r13278 111 111 fprintf(fid,'export PATH="$PATH:."\n\n'); 112 112 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); 113 fprintf(fid,'cd $PBS_O_WORKDIR\n\n');114 fprintf(fid,'mpirun -np %i %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),modelname);113 fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname); 114 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 115 115 if ~io_gather, %concatenate the output files: 116 116 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 122 122 fid=fopen([modelname '.run'],'w'); 123 123 if ~isvalgrind, 124 fprintf(fid,'mpirun -np %i %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),modelname);124 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 125 125 else 126 fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),modelname);126 fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 127 127 end 128 128 if ~io_gather, %concatenate the output files: -
issm/trunk-jpl/src/m/classes/clusters/gemini.m
r12844 r13278 63 63 fprintf(fid,'#PBS -e %s.errlog \n',modelname); 64 64 65 fprintf(fid,'export PBS_O_WORKDIR=%s\n', cluster.executionpath);65 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 66 66 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 67 67 fprintf(fid,'export OMP_NUM_THREADS=1\n'); 68 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);68 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 69 69 fclose(fid); 70 70 -
issm/trunk-jpl/src/m/classes/clusters/generic.m
r13170 r13278 68 68 if ~isvalgrind, 69 69 if cluster.interactive 70 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s ',cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);70 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 71 71 else 72 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);72 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 73 73 end 74 74 elseif isgprof, … … 79 79 if ismac, 80 80 fprintf(fid,'mpiexec -np %i %s --leak-check=full --dsymutil=yes --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 81 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);81 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname], modelname,modelname,modelname); 82 82 else 83 83 fprintf(fid,'mpiexec -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 84 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);84 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 85 85 end 86 86 end … … 95 95 fprintf(fid,'@echo off\n'); 96 96 if cluster.interactive 97 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);97 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 98 98 else 99 99 fprintf(fid,'"%s/issm.exe" %s "%s" %s 2> %s.errlog >%s.outlog',... 100 cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);100 cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 101 101 end 102 102 fclose(fid); … … 119 119 if ~isvalgrind, 120 120 if cluster.interactive 121 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s ',cluster.np,cluster.codepath, cluster.executionpath,modelname);121 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s ',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname); 122 122 else 123 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath, cluster.executionpath,modelname,modelname,modelname);123 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname,modelname,modelname); 124 124 end 125 125 elseif isgprof, … … 129 129 fprintf(fid,'LD_PRELOAD=%s \\\n',cluster.valgrindlib); 130 130 fprintf(fid,'mpiexec -np %i %s --leak-check=full --suppressions=%s %s/kriging.exe %s %s 2> %s.errlog >%s.outlog ',... 131 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath, cluster.executionpath,modelname,modelname,modelname);131 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,[cluster.executionpath '/' modelname],modelname,modelname,modelname); 132 132 end 133 133 if ~io_gather, %concatenate the output files: … … 141 141 fprintf(fid,'@echo off\n'); 142 142 if cluster.interactive 143 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);143 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,EnumToString(solution),[cluster.executionpath '/' modelname],modelname); 144 144 else 145 145 fprintf(fid,'"%s/issm.exe" %s "%s" %s 2> %s.errlog >%s.outlog',... 146 cluster.codepath,EnumToString(solution), cluster.executionpath,modelname,modelname,modelname);146 cluster.codepath,EnumToString(solution),[cluster.executionpath '/' modelname],modelname,modelname,modelname); 147 147 end 148 148 fclose(fid); -
issm/trunk-jpl/src/m/classes/clusters/greenplanet.m
r12844 r13278 82 82 fprintf(fid,'#PBS -e %s.errlog \n\n',modelname); 83 83 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 84 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);84 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 85 85 if ~io_gather, %concatenate the output files: 86 86 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 91 91 if cluster.interactive, 92 92 fid=fopen([modelname '.run'],'w'); 93 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);93 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 94 94 if ~io_gather, %concatenate the output files: 95 95 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r13126 r13278 125 125 fprintf(fid,'export ISSM_DIR="%s/../"\n',cluster.codepath); %FIXME 126 126 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 127 fprintf(fid,'cd $PBS_O_WORKDIR\n\n');128 fprintf(fid,'mpiexec -np %i %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname '/' modelname]);127 fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname); 128 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 129 129 if ~io_gather, %concatenate the output files: 130 130 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 136 136 fid=fopen([modelname '.run'],'w'); 137 137 if ~isvalgrind, 138 fprintf(fid,'mpiexec -np %i %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),modelname);139 else 140 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/issm.exe %s $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,EnumToString(solution),modelname);138 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 139 else 140 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 141 141 end 142 142 if ~io_gather, %concatenate the output files: … … 176 176 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 177 177 fprintf(fid,'export MPI_GROUP_MAX=64\n\n'); 178 fprintf(fid,'cd $PBS_O_WORKDIR\n');179 fprintf(fid,'mpiexec -np %i %s/kriging.exe $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname '/' modelname]); %FIXME178 fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,modelname); 179 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname); %FIXME 180 180 if ~io_gather, %concatenate the output files: 181 181 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 187 187 fid=fopen([modelname '.run'],'w'); 188 188 if ~isvalgrind, 189 fprintf(fid,'mpiexec -np %i %s/kriging.exe $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname '/' modelname]);190 else 191 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/kriging.exe $PBS_O_WORKDIR %s\n',cluster.np,cluster.codepath,modelname);189 fprintf(fid,'mpiexec -np %i %s/kriging.exe %s %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname); 190 else 191 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/kriging.exe %s %s\n',cluster.np,cluster.codepath,[cluster.executionpath '/' modelname],modelname); 192 192 end 193 193 if ~io_gather, %concatenate the output files: -
issm/trunk-jpl/src/m/classes/clusters/pollux.m
r12844 r13278 62 62 fprintf(fid,'#PBS -o %s.outlog \n',modelname); 63 63 fprintf(fid,'#PBS -e %s.errlog \n',modelname); 64 fprintf(fid,'export PBS_O_WORKDIR=%s\n', cluster.executionpath);64 fprintf(fid,'export PBS_O_WORKDIR=%s\n',[cluster.executionpath '/' dirname]); 65 65 fprintf(fid,'cd $PBS_O_WORKDIR\n'); 66 66 fprintf(fid,'export OMP_NUM_THREADS=1\n'); 67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution), cluster.executionpath,modelname);67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69
Note:
See TracChangeset
for help on using the changeset viewer.