Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
872a2840
Commit
872a2840
authored
10 years ago
by
Wouter Klijn
Browse files
Options
Downloads
Patches
Plain Diff
Task #7168: Add a nproc parameter to the longbaseline pipeline master recipe.
Make it default to 1. Add it to the task.cfg as well
parent
5b8c48d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/Pipeline/recipes/sip/master/long_baseline.py
+7
-1
7 additions, 1 deletion
CEP/Pipeline/recipes/sip/master/long_baseline.py
CEP/Pipeline/recipes/sip/tasks.cfg.in
+1
-0
1 addition, 0 deletions
CEP/Pipeline/recipes/sip/tasks.cfg.in
with
8 additions
and
1 deletion
CEP/Pipeline/recipes/sip/master/long_baseline.py
+
7
−
1
View file @
872a2840
...
@@ -45,6 +45,12 @@ class long_baseline(BaseRecipe, RemoteCommandRecipeMixIn):
...
@@ -45,6 +45,12 @@ class long_baseline(BaseRecipe, RemoteCommandRecipeMixIn):
"""
"""
inputs
=
{
inputs
=
{
'
nproc
'
:
ingredient
.
IntField
(
'
--nproc
'
,
default
=
1
,
# More then one might cause issues when ndppp shares
# temp files between runs
help
=
"
Maximum number of simultaneous processes per output node
"
),
'
ndppp_exec
'
:
ingredient
.
ExecField
(
'
ndppp_exec
'
:
ingredient
.
ExecField
(
'
--ndppp-exec
'
,
'
--ndppp-exec
'
,
help
=
"
The full path to the ndppp executable
"
help
=
"
The full path to the ndppp executable
"
...
@@ -202,7 +208,7 @@ class long_baseline(BaseRecipe, RemoteCommandRecipeMixIn):
...
@@ -202,7 +208,7 @@ class long_baseline(BaseRecipe, RemoteCommandRecipeMixIn):
jobs
.
append
(
ComputeJob
(
output_item
.
host
,
node_command
,
arguments
))
jobs
.
append
(
ComputeJob
(
output_item
.
host
,
node_command
,
arguments
))
# Hand over the job(s) to the pipeline scheduler
# Hand over the job(s) to the pipeline scheduler
self
.
_schedule_jobs
(
jobs
)
self
.
_schedule_jobs
(
jobs
,
max_per_node
=
self
.
inputs
[
'
nproc
'
]
)
# *********************************************************************
# *********************************************************************
# validate the output, cleanup, return output
# validate the output, cleanup, return output
...
...
This diff is collapsed.
Click to expand it.
CEP/Pipeline/recipes/sip/tasks.cfg.in
+
1
−
0
View file @
872a2840
...
@@ -70,6 +70,7 @@ asciistat_executable = %(lofarroot)s/bin/asciistats.py
...
@@ -70,6 +70,7 @@ asciistat_executable = %(lofarroot)s/bin/asciistats.py
statplot_executable = %(lofarroot)s/bin/statsplot.py
statplot_executable = %(lofarroot)s/bin/statsplot.py
msselect_executable = %(lofarroot)s/bin/msselect
msselect_executable = %(lofarroot)s/bin/msselect
rficonsole_executable = %(lofarroot)s/bin/rficonsole
rficonsole_executable = %(lofarroot)s/bin/rficonsole
nproc = 1
[imager_awimager]
[imager_awimager]
recipe = imager_awimager
recipe = imager_awimager
...
...
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