Skip to content

Instantly share code, notes, and snippets.

@ptrlv
Created December 10, 2013 12:08
Show Gist options
  • Save ptrlv/7889634 to your computer and use it in GitHub Desktop.
Save ptrlv/7889634 to your computer and use it in GitHub Desktop.
ARC mcore jdl
rsladd = '(runtimeenvironment = APPS/HEP/ATLAS-SITE-LCG)(runtimeenvironment = ENV/PROXY)'
rsladd += '(jobname = arc_pilot)'
if corecount:
rsladd += '(count = %d)' % corecount
rsladd += '(countpernode = %d)' % corecount
if maxmemory and corecount:
percore = maxmemory/corecount
rsladd += '(memory = %d)' % percore
elif memory:
rsladd += '(memory = %d)' % memory
if maxtime:
rsladd += '(walltime = %d)' % maxtime
if maxtime and corecount:
totaltime = maxtime*corecount
rsladd += '(cputime = %d)' % totaltime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment