Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Jeremy Auguste
oar
Commits
689d955a
Commit
689d955a
authored
6 years ago
by
Jeremy Auguste
Browse files
Options
Downloads
Patches
Plain Diff
Extra information on how to use the scripts
parent
108a76dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.org
+19
-0
19 additions, 0 deletions
README.org
oargen.py
+3
-3
3 additions, 3 deletions
oargen.py
with
22 additions
and
3 deletions
README.org
+
19
−
0
View file @
689d955a
...
...
@@ -5,3 +5,22 @@ This repository groups a set of tools to easily use OAR.
+ *oargen* requires python 2+ or 3+.
+ *batchoar* and *oarstats* require python 3+. The /pyyaml/ package is also required.
* Usage
** OARGEN
The basic usage of oargen is simply 'oargen.py -r /command/' where /command/ is the job
to execute on the cluster.
Several options can be used:
+ *--run*: run the job on the cluster.
+ *--time /TIME/*: reservation walltime of your job. Accepted formats: /h/, /h:m/ or /h:m:s/. Defaults to 10 hours.
+ *--core /NB_CORES/*: number of cores required by your job. Defaults to 1.
+ *--interative*: launch job in interative mode instead of passive.
+ *--gpu*: request GPUs.
+ *--host /host1/ [/host2/.../hostn/]*: name of the hosts allowed to be used on the cluster.
+ *--ignore-host /host1/ [/host2/.../hostn/]*: name of the hosts forbidden to be used on the cluster.
+ *--anterior /ANTERIOR_ID/*: job will only be launched once the job with the specified ID is finished.
+ *--checkpoint /delay/*: enable the checkpoint signal with the given delay (in seconds).
+ *--name /name/*: name of the job.
+ *--directory /directory/*: directory in which will be stored the logs of the standard output and input.
This diff is collapsed.
Click to expand it.
oargen.py
+
3
−
3
View file @
689d955a
...
...
@@ -18,15 +18,15 @@ def argparser():
parser
.
add_argument
(
'
-n
'
,
'
--name
'
,
help
=
"
Name to give to the job
"
)
parser
.
add_argument
(
'
-d
'
,
'
--directory
'
,
help
=
"
Directory in which will be store
s
oarsub outputs
"
)
help
=
"
Directory in which will be store
d
oarsub outputs
"
)
parser
.
add_argument
(
'
-b
'
,
'
--besteffort
'
,
action
=
"
store_true
"
,
help
=
"
Launch job in besteffort mode
"
)
parser
.
add_argument
(
'
-t
'
,
'
--time
'
,
default
=
"
10
"
,
help
=
"
Estimated maximum duration of the job (format: h[:m[:s]])
"
)
help
=
"
Estimated maximum duration of the job (format: h[:m[:s]])
(default: %(default)s)
"
)
parser
.
add_argument
(
'
-g
'
,
'
--gpu
'
,
action
=
"
store_true
"
,
help
=
"
If True, reserves only cores with GPUs
"
)
parser
.
add_argument
(
'
-c
'
,
'
--core
'
,
default
=
1
,
type
=
int
,
help
=
"
Number of cores to reserve
"
)
help
=
"
Number of cores to reserve
. (default: %(default)s)
"
)
parser
.
add_argument
(
'
-H
'
,
'
--host
'
,
nargs
=
"
+
"
,
default
=
[],
help
=
"
Name of the hosts (SQL
'
LIKE
'
syntax accepted)
"
)
parser
.
add_argument
(
'
-I
'
,
'
--ignore-host
'
,
nargs
=
"
+
"
,
default
=
[],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment