Changeset 24807


Ignore:
Timestamp:
05/06/20 00:45:01 (5 years ago)
Author:
bdef
Message:

CHG: update to stallo SLURM keywords

File:
1 edited

Legend:

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

    r24657 r24807  
    4545        self.accountname = ''
    4646        self.profiling = 0
     47        self.exclusive = False
    4748    #use provided options to change fields
    4849        options = pairoptions(*args)
     
    7475    def checkconsistency(self, md, solution, analyses):  # {{{
    7576        #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],
    7879                     'singlenode': [28 * 24 * 60, 20],
    7980                     'multinode': [28 * 24 * 60, 2048],
     
    114115        fid.write('#!/bin/bash -l\n')
    115116        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')
    117123        fid.write('#SBATCH --nodes=%i \n' % self.numnodes)
    118124        fid.write('#SBATCH --ntasks-per-node=%i \n' % self.cpuspernode)
     
    124130        fid.write('#SBATCH --output %s/%s/%s.outlog \n' % (self.executionpath, dirname, modelname))
    125131        fid.write('#SBATCH --error %s/%s/%s.errlog \n\n' % (self.executionpath, dirname, modelname))
     132        if self.exclusive:
     133            fid.write('#SBATCH --exclusive \n')
    126134
    127135        fid.write('export ISSM_DIR="%s/../"\n' % self.codepath)
Note: See TracChangeset for help on using the changeset viewer.