Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
grid5000
reference-repository
Commits
0df44c9a
Commit
0df44c9a
authored
4 years ago
by
Baptiste Jonglez
Browse files
Options
Downloads
Patches
Plain Diff
[lib] [oar-properties] Add a new 'contiguous-grouped-by-threads' core numbering scheme for drac
parent
8aff9369
No related branches found
Branches containing commit
No related tags found
1 merge request
!146
Add drac cluster
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/refrepo/gen/oar-properties.rb
+4
-0
4 additions, 0 deletions
lib/refrepo/gen/oar-properties.rb
with
4 additions
and
0 deletions
lib/refrepo/gen/oar-properties.rb
+
4
−
0
View file @
0df44c9a
...
@@ -1258,6 +1258,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1258,6 +1258,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
cpu_count
=
first_node
[
'architecture'
][
'nb_procs'
]
cpu_count
=
first_node
[
'architecture'
][
'nb_procs'
]
cpu_core_count
=
first_node
[
'architecture'
][
'nb_cores'
]
/
cpu_count
cpu_core_count
=
first_node
[
'architecture'
][
'nb_cores'
]
/
cpu_count
cpu_thread_count
=
first_node
[
'architecture'
][
'nb_threads'
]
/
cpu_count
cpu_thread_count
=
first_node
[
'architecture'
][
'nb_threads'
]
/
cpu_count
core_thread_count
=
first_node
[
'architecture'
][
'nb_threads'
]
/
first_node
[
'architecture'
][
'nb_cores'
]
gpu_count
=
cluster_desc_from_data_files
[
'nodes'
].
values
.
map
{
|
e
|
(
e
[
'gpu_devices'
]
||
{}
).
length
}.
max
gpu_count
=
cluster_desc_from_data_files
[
'nodes'
].
values
.
map
{
|
e
|
(
e
[
'gpu_devices'
]
||
{}
).
length
}.
max
cpu_model
=
"
#{
first_node
[
'processor'
][
'model'
]
}
#{
first_node
[
'processor'
][
'version'
]
}
"
cpu_model
=
"
#{
first_node
[
'processor'
][
'model'
]
}
#{
first_node
[
'processor'
][
'version'
]
}
"
...
@@ -1412,11 +1413,14 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1412,11 +1413,14 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
############################################
############################################
# (2-d) Associate a cpuset to each core
# (2-d) Associate a cpuset to each core
# See https://www.grid5000.fr/w/TechTeam:CPU_core_numbering
############################################
############################################
if
core_numbering
==
'contiguous'
if
core_numbering
==
'contiguous'
row
[
:cpuset
]
=
cpu_num
*
cpu_core_count
+
core_num
row
[
:cpuset
]
=
cpu_num
*
cpu_core_count
+
core_num
elsif
core_numbering
==
'contiguous-including-threads'
elsif
core_numbering
==
'contiguous-including-threads'
row
[
:cpuset
]
=
cpu_num
*
cpu_thread_count
+
core_num
row
[
:cpuset
]
=
cpu_num
*
cpu_thread_count
+
core_num
elsif
core_numbering
==
'contiguous-grouped-by-threads'
row
[
:cpuset
]
=
cpu_num
*
cpu_thread_count
+
core_num
*
core_thread_count
elsif
core_numbering
==
'round-robin'
elsif
core_numbering
==
'round-robin'
row
[
:cpuset
]
=
cpu_num
+
core_num
*
cpu_count
row
[
:cpuset
]
=
cpu_num
+
core_num
*
cpu_count
else
else
...
...
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