Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
552fed9e
There was a problem fetching the pipeline summary.
Commit
552fed9e
authored
8 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
updated launch.py section in the docs
parent
88e070ba
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/howto-make-dlcs.md
+32
-11
32 additions, 11 deletions
docs/howto-make-dlcs.md
with
32 additions
and
11 deletions
docs/howto-make-dlcs.md
+
32
−
11
View file @
552fed9e
...
@@ -406,8 +406,13 @@ them by using the help function (the output is included for your convenience):
...
@@ -406,8 +406,13 @@ them by using the help function (the output is included for your convenience):
```
bash
```
bash
g-000 $ launch.py --help
g-000 $ launch.py --help
usage:
usage: launch.py -n nr_cpus
launch.py -n nr_cpus
launch.py --crontab when running a single iteration of launch.py as a crontab job every 5 minutes.
File list is read from "launch_pbs_filelist.txt", and the configuration can be changed on the fly
by editing the file "launch_scheduler_config.txt".
options:
options:
-h, --help show this help message and exit
-h, --help show this help message and exit
...
@@ -426,9 +431,21 @@ options:
...
@@ -426,9 +431,21 @@ options:
--cpu_free=CPU_FREE No more jobs will be launched when the cluster does
--cpu_free=CPU_FREE No more jobs will be launched when the cluster does
not have the specified amount of cpus free. This will
not have the specified amount of cpus free. This will
make sure there is room for others on the cluster, but
make sure there is room for others on the cluster, but
might mean less cpus available for you. Default=48.
might mean less cpus available for you. Default=48
--cpu_user_queue=CPU_USER_QUEUE
No more jobs will be launched after having
cpu_user_queue number of jobs in the queue. This
prevents users from filling the queue, while still
allowing to aim for a high cpu_free target.
Default=500
--qsub_cmd=QSUB_CMD Is set automatically by --node flag
--qsub_cmd=QSUB_CMD Is set automatically by --node flag
--node If executed on dedicated node.
--node If executed on dedicated node. Although this works,
consider using --crontab instead. Default=False
--sort Sort pbs file list. Default=False
--crontab Crontab mode. Implies --cache, and not compatible with
--node. Default=False
--debug Debug print statements. Default=False
```
```
Then launch the actual jobs (each job is a ```*.p``` file in ```pbs_in```) using
Then launch the actual jobs (each job is a ```*.p``` file in ```pbs_in```) using
...
@@ -440,12 +457,16 @@ g-000 $ launch.py -n 100 -p pbs_in/
...
@@ -440,12 +457,16 @@ g-000 $ launch.py -n 100 -p pbs_in/
```
```
If the launching process requires hours, and you have to close you SHH/PuTTY
If the launching process requires hours, and you have to close you SHH/PuTTY
session before it reaches the end, you should use the ```--node``` argument so
session before it reaches the end, you can either use the ```--node``` or the
the launching process will take place on a dedicated node:
```
--crontab
``` argument. When using ```
--node
```, ```
launch.py
``` will run on
a dedicated cluster note, submitted as a PBS job. When using ```
--crontab
```,
```
launch.py
``` will be run once every 5 minutes as a ```
crontab
``` job on the
login node. This is preferred since you are not occupying a node with a very
simple and light job.
```
bash
```
bash
g-000 $ cd /mnt/mimer/hawc2sim/demo/A0001
g-000 $ cd /mnt/mimer/hawc2sim/demo/A0001
g-000 $ launch.py -n 100 -p pbs_in/ --
node
g-000 $ launch.py -n 100 -p pbs_in/ --
crontab
```
```
...
@@ -510,11 +531,11 @@ g-000 $ launch.py -n 100 --node -p pbs_in_failed
...
@@ -510,11 +531,11 @@ g-000 $ launch.py -n 100 --node -p pbs_in_failed
```
```
2. Use the ```--cache``` option, and edit the PBS file list in the file
2. Use the ```--cache``` option, and edit the PBS file list in the file
```
pbs_in_file_cache
.txt
``` so that only the simulations remain that have to be
```
launch_pbs_filelist
.txt
``` so that only the simulations remain that have to be
run again.
Note that the ```
pbs_in_file_cache
.txt
```
file
is created every time
run again.
```
launch_pbs_filelist
.txt
``` is created every time
you run
you run a
```
launch.py
```.
Note that y
ou can use the option ```
--dry
``` to make
```
launch.py
```.
Y
ou can use the option ```
--dry
``` to make
a practice launch
a practice launch
run, and that will create a ```
pbs_in_file_cache.txt
``` file,
run, and that will create a ```
launch_pbs_filelist.txt
``` file, but not a single
but not a single
job will be launched.
job will be launched.
3. Each pbs file can be launched manually as follows:
3. Each pbs file can be launched manually as follows:
```
```
...
...
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