Changeset 21050
- Timestamp:
- 08/02/16 17:22:43 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/classes/clusters
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/acenet.m
r19638 r21050 128 128 fprintf(fid,'\n'); 129 129 fprintf(fid,'mpiexec %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog\n',... 130 cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);130 cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 131 131 %fprintf(fid,'echo $HOSTNAME >>%s.outlog',modelname); 132 132 fclose(fid); -
issm/trunk-jpl/src/m/classes/clusters/castor.m
r19638 r21050 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 '/' dirname],modelname);67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69 -
issm/trunk-jpl/src/m/classes/clusters/cloud.m
r19638 r21050 56 56 fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh'); 57 57 fprintf(fid,'cd %s\n',[cluster.executionpath '/' dirname]); 58 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);58 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 59 59 else 60 60 fprintf(fid,'source %s%s\n',cluster.codepath,'/../etc/environment.sh'); 61 61 fprintf(fid,'cd %s\n',[cluster.executionpath '/' dirname]); 62 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 63 %fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',cluster.np,cluster.codepath,EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname); 62 fprintf(fid,'mpiexec -np %i -f /home/mpich2.hosts %s/issm.exe %s %s %s 2> %s.errlog > /dev/stdout | tee %s.outlog ',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 64 63 end 65 64 end -
issm/trunk-jpl/src/m/classes/clusters/cosmos.m
r19638 r21050 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 '/' dirname],modelname);67 fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpiexec -np %i %s/issm.exe %s %s %s',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69 -
issm/trunk-jpl/src/m/classes/clusters/cyclone.py
r20784 r21050 1 1 import subprocess 2 2 from fielddisplay import fielddisplay 3 from EnumToString import EnumToString4 3 from pairoptions import pairoptions 5 4 from issmssh import issmssh … … 89 88 rundir=self.executionpath+'/'+dirname 90 89 runfile=self.executionpath+'/'+dirname+'/'+modelname 91 fid.write('mpiexec -np %i %s/%s %s %s %s >%s.outlog 2>%s.errlog\n' % (self.np,self.codepath,executable,str( EnumToString(solution)[0]),rundir,modelname,runfile,runfile))90 fid.write('mpiexec -np %i %s/%s %s %s %s >%s.outlog 2>%s.errlog\n' % (self.np,self.codepath,executable,str(solution),rundir,modelname,runfile,runfile)) 92 91 fid.close() 93 92 -
issm/trunk-jpl/src/m/classes/clusters/discover.m
r20323 r21050 129 129 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 130 130 131 fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);131 fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 132 132 if ~io_gather, %concatenate the output files: 133 133 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 139 139 fid=fopen([modelname '.run'],'w'); 140 140 if ~isvalgrind, 141 fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);141 fprintf(fid,'mpirun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 142 142 else 143 fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);143 fprintf(fid,'mpirun -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 144 144 end 145 145 if ~io_gather, %concatenate the output files: -
issm/trunk-jpl/src/m/classes/clusters/gemini.m
r19638 r21050 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 '/' dirname],modelname);68 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 69 69 fclose(fid); 70 70 -
issm/trunk-jpl/src/m/classes/clusters/generic.m
r20571 r21050 91 91 if cluster.interactive 92 92 if IssmConfig('_HAVE_MPI_'), 93 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);93 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s \n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 94 94 else 95 fprintf(fid,'%s/%s %s %s %s ',cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);95 fprintf(fid,'%s/%s %s %s %s ',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 96 96 end 97 97 else 98 98 if IssmConfig('_HAVE_MPI_'), 99 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);99 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 100 100 else 101 fprintf(fid,'%s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);101 fprintf(fid,'%s/%s %s %s %s 2> %s.errlog >%s.outlog &',cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 102 102 end 103 103 end … … 110 110 if IssmConfig('_HAVE_MPI_'), 111 111 fprintf(fid,'mpiexec -np %i %s --leak-check=full --error-limit=no --dsymutil=yes --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 112 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname], modelname,modelname,modelname);112 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname); 113 113 else 114 114 fprintf(fid,'%s --leak-check=full --dsymutil=yes --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 115 cluster.valgrind,cluster.valgrindsup,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname], modelname,modelname,modelname);115 cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname], modelname,modelname,modelname); 116 116 end 117 117 else 118 118 if IssmConfig('_HAVE_MPI_'), 119 119 fprintf(fid,'mpiexec -np %i %s --leak-check=full --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 120 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);120 cluster.np,cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 121 121 else 122 122 fprintf(fid,'%s --leak-check=full --error-limit=no --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ',... 123 cluster.valgrind,cluster.valgrindsup,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname,modelname,modelname);123 cluster.valgrind,cluster.valgrindsup,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname,modelname,modelname); 124 124 end 125 125 end … … 141 141 142 142 if cluster.np>1, 143 fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/issm.exe" %s ./ %s ',cluster.np,cluster.codepath, EnumToString(solution),modelname);144 else 145 fprintf(fid,'"%s/issm.exe" %s ./ %s ',cluster.codepath, EnumToString(solution),modelname);143 fprintf(fid,'"C:\\Program Files\\MPICH2\\bin\\mpiexec.exe" -n %i "%s/issm.exe" %s ./ %s ',cluster.np,cluster.codepath,solution,modelname); 144 else 145 fprintf(fid,'"%s/issm.exe" %s ./ %s ',cluster.codepath,solution,modelname); 146 146 end 147 147 fclose(fid); … … 177 177 178 178 %solution name: 179 mpistring=[mpistring sprintf('%s ', EnumToString(solution))];179 mpistring=[mpistring sprintf('%s ',solution)]; 180 180 181 181 %execution directory and model name: … … 237 237 fprintf(fid,'@echo off\n'); 238 238 if cluster.interactive 239 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath, EnumToString(solution),[cluster.executionpath '/' modelname],modelname);239 fprintf(fid,'"%s/issm.exe" %s "%s" %s ',cluster.codepath,solution,[cluster.executionpath '/' modelname],modelname); 240 240 else 241 241 fprintf(fid,'"%s/issm.exe" %s "%s" %s 2> %s.errlog >%s.outlog',... 242 cluster.codepath, EnumToString(solution),[cluster.executionpath '/' modelname],modelname,modelname,modelname);242 cluster.codepath,solution,[cluster.executionpath '/' modelname],modelname,modelname,modelname); 243 243 end 244 244 fclose(fid); -
issm/trunk-jpl/src/m/classes/clusters/generic.py
r20572 r21050 4 4 import subprocess 5 5 from IssmConfig import IssmConfig 6 from EnumToString import EnumToString7 6 from issmdir import issmdir 8 7 from pairoptions import pairoptions … … 86 85 if self.interactive: 87 86 if IssmConfig('_HAVE_MPI_')[0]: 88 fid.write('mpiexec -np %i %s/%s %s %s/%s %s ' % (self.np,self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname))87 fid.write('mpiexec -np %i %s/%s %s %s/%s %s ' % (self.np,self.codepath,executable,solution,self.executionpath,dirname,modelname)) 89 88 else: 90 fid.write('%s/%s %s %s/%s %s ' % (self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname))89 fid.write('%s/%s %s %s/%s %s ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname)) 91 90 else: 92 91 if IssmConfig('_HAVE_MPI_')[0]: 93 fid.write('mpiexec -np %i %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))92 fid.write('mpiexec -np %i %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname)) 94 93 else: 95 fid.write('%s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))94 fid.write('%s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname)) 96 95 elif isgprof: 97 96 fid.write('\n gprof %s/%s gmon.out > %s.performance' % (self.codepath,executable,modelname)) … … 101 100 if IssmConfig('_HAVE_MPI_')[0]: 102 101 fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % \ 103 (self.np,self.valgrind,self.valgrindsup,self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))102 (self.np,self.valgrind,self.valgrindsup,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname)) 104 103 else: 105 104 fid.write('%s --leak-check=full --suppressions=%s %s/%s %s %s/%s %s 2> %s.errlog >%s.outlog ' % \ 106 (self.valgrind,self.valgrindsup,self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))105 (self.valgrind,self.valgrindsup,self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname)) 107 106 108 107 if not io_gather: #concatenate the output files: … … 115 114 fid.write('@echo off\n') 116 115 if self.interactive: 117 fid.write('"%s/%s" %s "%s/%s" %s ' % (self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname))116 fid.write('"%s/%s" %s "%s/%s" %s ' % (self.codepath,executable,solution,self.executionpath,dirname,modelname)) 118 117 else: 119 118 fid.write('"%s/%s" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \ 120 (self.codepath,executable, EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname))119 (self.codepath,executable,solution,self.executionpath,dirname,modelname,modelname,modelname)) 121 120 fid.close() 122 121 … … 156 155 fid.write('@echo off\n') 157 156 if self.interactive: 158 fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath, EnumToString(solution)[0],self.executionpath,modelname,modelname))157 fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath,solution,self.executionpath,modelname,modelname)) 159 158 else: 160 159 fid.write('"%s/issm.exe" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \ 161 (self.codepath, EnumToString(solution)[0],self.executionpath,modelname,modelname,modelname,modelname))160 (self.codepath,solution,self.executionpath,modelname,modelname,modelname,modelname)) 162 161 fid.close() 163 162 -
issm/trunk-jpl/src/m/classes/clusters/generic_static.m
r20544 r21050 72 72 fid=fopen([modelname '.queue'],'w'); 73 73 fprintf(fid,'#!%s\n',cluster.shell); 74 fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable, EnumToString(solution),'./',modelname);74 fprintf(fid,['%s/mpiexec -np %i %s/%s %s %s %s \n'],codepath2,cluster.np,codepath2,executable,solution,'./',modelname); 75 75 fclose(fid); 76 76 -
issm/trunk-jpl/src/m/classes/clusters/greenplanet.m
r20630 r21050 112 112 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 113 113 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 114 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);114 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,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); … … 121 121 if cluster.interactive, 122 122 fid=fopen([modelname '.run'],'w'); 123 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);123 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 124 124 if ~io_gather, %concatenate the output files: 125 125 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/hexagon.py
r20784 r21050 1 1 import subprocess 2 2 from fielddisplay import fielddisplay 3 from EnumToString import EnumToString4 3 from pairoptions import pairoptions 5 4 from issmssh import issmssh … … 112 111 fid.write('module load gsl\n') 113 112 fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname)) 114 fid.write('aprun -B %s/%s %s %s/%s %s\n' % (self.codepath,executable,str( EnumToString(solution)[0]),self.executionpath,dirname,modelname))113 fid.write('aprun -B %s/%s %s %s/%s %s\n' % (self.codepath,executable,str(solution),self.executionpath,dirname,modelname)) 115 114 fid.close() 116 115 -
issm/trunk-jpl/src/m/classes/clusters/hpc.m
r19673 r21050 108 108 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 109 109 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 110 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);110 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 111 111 if ~io_gather, %concatenate the output files: 112 112 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 117 117 if cluster.interactive, 118 118 fid=fopen([modelname '.run'],'w'); 119 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);119 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 120 120 if ~io_gather, %concatenate the output files: 121 121 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/lonestar.m
r20531 r21050 137 137 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 138 138 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 139 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);139 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 140 140 if ~io_gather, %concatenate the output files: 141 141 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); … … 151 151 if cluster.interactive, 152 152 fid=fopen([modelname '.run'],'w'); 153 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);153 fprintf(fid,'ibrun -np %i %s/%s %s %s %s\n',cluster.np,executable,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 154 154 if ~io_gather, %concatenate the output files: 155 155 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/pfe.m
r20857 r21050 168 168 fprintf(fid,'cd %s/%s/\n\n',cluster.executionpath,dirname); 169 169 if ~isvalgrind, 170 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);171 else 172 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);170 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 171 else 172 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); 173 173 end 174 174 if ~io_gather, %concatenate the output files: … … 182 182 if cluster.interactive==10, 183 183 fprintf(fid,'module unload mpi-mvapich2/1.4.1/gcc\n'); 184 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[pwd() '/run'],modelname);184 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[pwd() '/run'],modelname); 185 185 else 186 186 if ~isvalgrind, 187 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);187 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname); 188 188 else 189 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname);189 fprintf(fid,'mpiexec -np %i valgrind --leak-check=full %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/Interactive' num2str(cluster.interactive)],modelname); 190 190 end 191 191 end … … 238 238 239 239 %solution name: 240 mpistring=[mpistring sprintf('%s ', EnumToString(solution))];240 mpistring=[mpistring sprintf('%s ',solution)]; 241 241 242 242 %execution directory and model name: … … 265 265 266 266 %solution name: 267 mpistring=[mpistring sprintf('%s ', EnumToString(solution))];267 mpistring=[mpistring sprintf('%s ',solution)]; 268 268 269 269 %execution directory and model name: -
issm/trunk-jpl/src/m/classes/clusters/pfe.py
r20120 r21050 4 4 import subprocess 5 5 from fielddisplay import fielddisplay 6 from EnumToString import EnumToString7 6 from pairoptions import pairoptions 8 7 from issmssh import issmssh … … 162 161 fid.write('source $ISSM_DIR/etc/environment.sh\n') 163 162 fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname)) 164 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.nprocs(),self.codepath,executable,str( EnumToString(solution)[0]),self.executionpath,dirname,modelname))163 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.nprocs(),self.codepath,executable,str(solution),self.executionpath,dirname,modelname)) 165 164 166 165 fid.close() -
issm/trunk-jpl/src/m/classes/clusters/pollux.m
r19638 r21050 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 '/' dirname],modelname);67 fprintf(fid,'dplace -s1 -c0-%i mpiexec -np %i %s/issm.exe %s %s %s',cluster.np-1,cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 68 68 fclose(fid); 69 69 -
issm/trunk-jpl/src/m/classes/clusters/raijin.m
r20686 r21050 85 85 fprintf(fid,'module load %s\n', cluster.modules{i}); 86 86 end 87 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);87 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 88 88 if ~io_gather, %concatenate the output files: 89 89 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/vilje.m
r20784 r21050 129 129 fprintf(fid,'source $ISSM_DIR/etc/environment.sh\n'); %FIXME 130 130 fprintf(fid,'cd %s/%s\n\n',cluster.executionpath,dirname); 131 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);131 fprintf(fid,'mpiexec -np %i %s/%s %s %s %s\n',cluster.np,cluster.codepath,executable,solution,[cluster.executionpath '/' dirname],modelname); 132 132 133 133 if ~io_gather, %concatenate the output files: … … 139 139 if cluster.interactive, 140 140 fid=fopen([modelname '.run'],'w'); 141 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath, EnumToString(solution),[cluster.executionpath '/' dirname],modelname);141 fprintf(fid,'mpiexec -np %i %s/issm.exe %s %s %s\n',cluster.np,cluster.codepath,solution,[cluster.executionpath '/' dirname],modelname); 142 142 if ~io_gather, %concatenate the output files: 143 143 fprintf(fid,'cat %s.outbin.* > %s.outbin',modelname,modelname); -
issm/trunk-jpl/src/m/classes/clusters/vilje.py
r20784 r21050 1 1 import subprocess 2 2 from fielddisplay import fielddisplay 3 from EnumToString import EnumToString4 3 from pairoptions import pairoptions 5 4 from issmssh import issmssh … … 110 109 fid.write('source $ISSM_DIR/etc/environment.sh\n') 111 110 fid.write('cd %s/%s/\n\n' % (self.executionpath,dirname)) 112 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.np,self.codepath,executable,str( EnumToString(solution)[0]),self.executionpath,dirname,modelname))111 fid.write('mpiexec -np %i %s/%s %s %s/%s %s\n' % (self.np,self.codepath,executable,str(solution),self.executionpath,dirname,modelname)) 113 112 fid.close() 114 113
Note:
See TracChangeset
for help on using the changeset viewer.