nexus: add Cooley to machines.py

git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7216 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
Jaron Krogel 2016-11-09 21:23:42 +00:00
parent 72dc06ded9
commit 1492bb4a8d
1 changed files with 33 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ class Supercomputer(Machine):
no_cores = job.cores==None
no_nodes = job.nodes==None
if no_cores and no_nodes:
self.error('job did not specify cores or nodes\n At least one must be provided')
self.error('job did not specify cores or nodes\nAt least one must be provided')
elif no_cores:
job.cores = self.cores_per_node*job.nodes
elif no_nodes:
@ -2505,6 +2505,37 @@ class Mira(ALCF_Machine):
#end class Mira
class Cooley(Supercomputer):
name = 'cooley'
requires_account = True
batch_capable = True
executable_subfile = True
prefixed_output = True
outfile_extension = '.output'
errfile_extension = '.error'
def process_job_extra(self,job):
job.run_options.add(
f = '-f $COBALT_NODEFILE',
ppn = '-ppn {0}'.format(job.processes_per_node),
)
#end def process_job_extra
def write_job_header(self,job):
if job.queue is None:
job.queue = 'default'
#end if
c= '#!/bin/bash\n'
c+='#COBALT -q {0}\n'.format(job.queue)
c+='#COBALT -A {0}\n'.format(job.account)
c+='#COBALT -n {0}\n'.format(job.nodes)
c+='#COBALT -t {0}\n'.format(job.total_minutes())
c+='#COBALT -O {0}\n'.format(job.identifier)
return c
#end def write_job_header
#end class Cooley
class Lonestar(Supercomputer): # Lonestar contribution from Paul Young
@ -2682,6 +2713,7 @@ EOS( 744, 2, 8, 64, 1000, 'aprun', 'qsub', 'qstat', 'q
Vesta( 2048, 1, 16, 16, 10, 'runjob', 'qsub', 'qstata', 'qdel')
Cetus( 1024, 1, 16, 16, 10, 'runjob', 'qsub', 'qstata', 'qdel')
Mira( 49152, 1, 16, 16, 10, 'runjob', 'qsub', 'qstata', 'qdel')
Cooley( 126, 2, 6, 384, 10, 'mpirun', 'qsub', 'qstata', 'qdel')
Lonestar( 22656, 2, 6, 12, 128, 'ibrun', 'qsub', 'qstat', 'qdel')
Matisse( 20, 2, 8, 64, 2, 'mpirun', 'sbatch', 'sacct', 'scancel')
Komodo( 24, 2, 6, 48, 2, 'mpirun', 'sbatch', 'sacct', 'scancel')