Changeset 26854


Ignore:
Timestamp:
02/07/22 04:41:41 (3 years ago)
Author:
bdef
Message:

CHG:new Saga modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/saga.py

    r26570 r26854  
    119119
    120120        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)
    122122        fid.write('#SBATCH --time={}\n'.format(timestring))  #walltime is minutes
    123         fid.write('#SBATCH --mem-per-cpu={}MB\n'.format(int(1000 * self.mem)))  # mem is in MB
     123        fid.write('#SBATCH --mem-per-cpu={}M\n'.format(int(1000 * self.mem)))  # mem is in MB
    124124
    125125        fid.write('#SBATCH --account=%s\n' % self.accountname)
     
    130130        fid.write('module purge\n')
    131131        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')
    134134        if isvalgrind:
    135135            fid.write('module --ignore-cache load Valgrind/3.16.1-gompi-2019b \n')
     
    138138        if isvalgrind:
    139139            # 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))
    141141            # 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))
    143143        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))
    145145        fid.close()
    146146
Note: See TracChangeset for help on using the changeset viewer.