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
dde44d0a
Commit
dde44d0a
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-828
: adaptations to cep4_utils.py
parent
43c2f7cc
No related branches found
No related tags found
2 merge requests
!74
Lofar release 4 0
,
!73
SW-824: Resolve SW-824
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/TBB/lib/tbb_util.py
+2
-2
2 additions, 2 deletions
MAC/TBB/lib/tbb_util.py
with
2 additions
and
2 deletions
MAC/TBB/lib/tbb_util.py
+
2
−
2
View file @
dde44d0a
...
@@ -33,7 +33,7 @@ def get_cpu_nodes_running_tbb_datawriter(timeout=60):
...
@@ -33,7 +33,7 @@ def get_cpu_nodes_running_tbb_datawriter(timeout=60):
:return: list cpu node numbers (ints)
:return: list cpu node numbers (ints)
'''
'''
result
=
[]
result
=
[]
available_nodes
=
get_cep4_
available_cpu_nodes
(
include_allocated
_nodes
=
True
)
available_nodes
=
get_cep4_
up_and_running_cpu
_nodes
(
)
procs
=
{}
procs
=
{}
start
=
datetime
.
utcnow
()
start
=
datetime
.
utcnow
()
...
@@ -64,7 +64,7 @@ def get_cpu_nodes_available_for_tbb_datawriters_sorted_by_load(min_nr_of_free_no
...
@@ -64,7 +64,7 @@ def get_cpu_nodes_available_for_tbb_datawriters_sorted_by_load(min_nr_of_free_no
:param float max_normalized_load: filter free nodes which are at most max_normalized_load
:param float max_normalized_load: filter free nodes which are at most max_normalized_load
:return: list of node numbers
:return: list of node numbers
"""
"""
all_available_nodes
=
set
(
get_cep4_
available_cpu_nodes
(
include_allocated
_nodes
=
True
))
all_available_nodes
=
set
(
get_cep4_
up_and_running_cpu
_nodes
(
))
nodes_running_datawriters1
=
set
(
get_cpu_nodes_running_tbb_datawriter_via_slurm
())
nodes_running_datawriters1
=
set
(
get_cpu_nodes_running_tbb_datawriter_via_slurm
())
nodes_running_datawriters2
=
set
(
get_cpu_nodes_running_tbb_datawriter
())
nodes_running_datawriters2
=
set
(
get_cpu_nodes_running_tbb_datawriter
())
nodes_running_datawriters
=
nodes_running_datawriters1
.
union
(
nodes_running_datawriters2
)
nodes_running_datawriters
=
nodes_running_datawriters1
.
union
(
nodes_running_datawriters2
)
...
...
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