Changeset 24807
- Timestamp:
- 05/06/20 00:45:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/stallo.py
r24657 r24807 45 45 self.accountname = '' 46 46 self.profiling = 0 47 self.exclusive = False 47 48 #use provided options to change fields 48 49 options = pairoptions(*args) … … 74 75 def checkconsistency(self, md, solution, analyses): # {{{ 75 76 #Queue dictionarry gives queue name as key and max walltime and cpus as var 76 queuedict = {'short': [ 60, 2048],77 'normal': [ 2* 24 * 60, 2048],77 queuedict = {'short': [2 * 24 * 60, 2048], 78 'normal': [5 * 24 * 60, 2048], 78 79 'singlenode': [28 * 24 * 60, 20], 79 80 'multinode': [28 * 24 * 60, 2048], … … 114 115 fid.write('#!/bin/bash -l\n') 115 116 fid.write('#SBATCH --job-name=%s \n' % shortname) 116 fid.write('#SBATCH --qos=%s \n' % self.queue) 117 if self.queue in ['devel', 'short']: 118 fid.write('#SBATCH --qos=%s \n' % self.queue) 119 else: 120 fid.write('#SBATCH --partition=%s \n' % self.queue) 121 if self.time < 2 * 24 * 60: 122 fid.write('#SBATCH --qos=short \n') 117 123 fid.write('#SBATCH --nodes=%i \n' % self.numnodes) 118 124 fid.write('#SBATCH --ntasks-per-node=%i \n' % self.cpuspernode) … … 124 130 fid.write('#SBATCH --output %s/%s/%s.outlog \n' % (self.executionpath, dirname, modelname)) 125 131 fid.write('#SBATCH --error %s/%s/%s.errlog \n\n' % (self.executionpath, dirname, modelname)) 132 if self.exclusive: 133 fid.write('#SBATCH --exclusive \n') 126 134 127 135 fid.write('export ISSM_DIR="%s/../"\n' % self.codepath)
Note:
See TracChangeset
for help on using the changeset viewer.