-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig_batch.xml
91 lines (83 loc) · 3.76 KB
/
config_batch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0"?>
<config_batch version="2.1">
<!--
File: config_batch.xml
Purpose: abstract out the parts of run scripts that are different, and use this configuration to
create cesm run scripts from a single template.
batch_system: the batch system type and version
batch_query: the batch query command for each batch system.
batch_redirect: Whether a redirect character is needed to submit jobs.
batch_directive: The string that prepends a batch directive for the batch system.
jobid_pattern: A perl regular expression used to filter out the returned job id from a
queue submission.
===============================================================
batch_system
===============================================================
The batch_system and associated tags are meant for configuring batch systems and
queues across machines. The batch_system tag denotes the name for a particular
batch system, these can either be shared between one or more machines, or can be
defined for a specific machine if need be.
Machine specific entries take precidence over generic entries, directives are appended
queues:
one or more queues can be defined per batch_system. if the attribute default="true"
is used, then that queue will be used by default. Alternatively, multiple queues can
be used. The following variables can be used to choose a queue :
walltimemin: Giving the minimum amount of walltime for the queue.
walltimemax: The maximum amount of walltime for a queue.
nodemin: The minimum node count required to use this queue.
nodemax: The maximum node count required to use this queue.
jobmin: The minimum task count required to use this queue. This should only rarely be used to select queues that only use a fraction of a node. This cannot be used in conjuction with nodemin.
jobmax: The maximum task count required to use this queue. This should only rarely be used to select queues that only use a fraction of a node. This cannot be used in conjuction with nodemax.
-->
<batch_system type="template" >
<batch_query args=""></batch_query>
<batch_submit></batch_submit>
<batch_redirect></batch_redirect>
<batch_directive></batch_directive>
<directives>
<directive></directive>
</directives>
</batch_system>
<batch_system type="none" >
<batch_query args=""></batch_query>
<batch_submit></batch_submit>
<batch_redirect></batch_redirect>
<batch_directive></batch_directive>
<directives>
<directive></directive>
</directives>
</batch_system>
<batch_system MACH="fram" type="slurm">
<batch_submit>sbatch</batch_submit>
<submit_args>
<arg flag="--time" name="$JOB_WALLCLOCK_TIME"/>
<arg flag="-p" name="$JOB_QUEUE"/>
<arg flag="--account" name="$PROJECT"/>
</submit_args>
<directives>
<directive> --ntasks={{ total_tasks }}</directive>
<directive> --export=ALL</directive>
<directive> --switches=1</directive>
</directives>
<queues>
<queue walltimemax="00:59:00" nodemin="1" nodemax="288" default="true">normal</queue>
</queues>
</batch_system>
<batch_system type="slurm" MACH="saga">
<batch_submit>sbatch</batch_submit>
<submit_args>
<arg flag="--time" name="$JOB_WALLCLOCK_TIME"/>
<arg flag="-p" name="$JOB_QUEUE"/>
<arg flag="--account" name="$PROJECT"/>
</submit_args>
<directives>
<directive> --mem-per-cpu=4G</directive>
<directive> --ntasks={{ total_tasks }}</directive>
<directive> --export=ALL</directive>
<directive> --switches=1</directive>
</directives>
<queues>
<queue walltimemax="00:59:00" nodemin="1" nodemax="288" default="true">normal</queue>
</queues>
</batch_system>
</config_batch>