Changeset 26854
- Timestamp:
- 02/07/22 04:41:41 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/saga.py
r26570 r26854 119 119 120 120 fid.write('#SBATCH --nodes=%i \n' % self.numnodes) 121 fid.write('#SBATCH --ntasks -per-node=%i \n' % self.cpuspernode)121 fid.write('#SBATCH --ntasks=%i \n' % self.cpuspernode) 122 122 fid.write('#SBATCH --time={}\n'.format(timestring)) #walltime is minutes 123 fid.write('#SBATCH --mem-per-cpu={}M B\n'.format(int(1000 * self.mem))) # mem is in MB123 fid.write('#SBATCH --mem-per-cpu={}M\n'.format(int(1000 * self.mem))) # mem is in MB 124 124 125 125 fid.write('#SBATCH --account=%s\n' % self.accountname) … … 130 130 fid.write('module purge\n') 131 131 fid.write('module load CMake/3.15.3-GCCcore-8.3.0\n') 132 fid.write('module load PETSc/3.12.4- intel-2019b\n')133 fid.write('module load ParMETIS/4.0.3- iimpi-2019b\n')132 fid.write('module load PETSc/3.12.4-foss-2019b\n') 133 fid.write('module load ParMETIS/4.0.3-gompi-2019b\n') 134 134 if isvalgrind: 135 135 fid.write('module --ignore-cache load Valgrind/3.16.1-gompi-2019b \n') … … 138 138 if isvalgrind: 139 139 # profiling 140 #fid.write(' mpirun {} --tool=callgrind {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog \n'.format(self.valgrind, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))140 #fid.write('srun {} --tool=callgrind {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog \n'.format(self.valgrind, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname)) 141 141 # leak check 142 fid.write(' mpirun {} --leak-check=full {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.format(self.valgrind, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname))142 fid.write('srun {} --leak-check=full {}/{} {} {}/{} {} 2>{}.errlog>{}.outlog '.format(self.valgrind, self.codepath, executable, solution, self.executionpath, dirname, modelname, modelname, modelname)) 143 143 else: 144 fid.write('time mpirun {}/{} {} {}/{} {}\n'.format(self.codepath, executable, solution, self.executionpath, dirname, modelname))144 fid.write('time srun {}/{} {} {}/{} {}\n'.format(self.codepath, executable, solution, self.executionpath, dirname, modelname)) 145 145 fid.close() 146 146
Note:
See TracChangeset
for help on using the changeset viewer.