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
0bd499cb
Commit
0bd499cb
authored
5 years ago
by
Lucas Nussbaum
Committed by
Jonathan Pastor
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename cpuset_mapping to architecture/cpu_core_numbering
parent
32b77ff1
No related branches found
No related tags found
1 merge request
!6
WIP: Features/oar gpus
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/refrepo/gen/oar-properties.rb
+4
-7
4 additions, 7 deletions
lib/refrepo/gen/oar-properties.rb
with
4 additions
and
7 deletions
lib/refrepo/gen/oar-properties.rb
+
4
−
7
View file @
0bd499cb
...
@@ -9,9 +9,6 @@ class MissingProperty < StandardError; end
...
@@ -9,9 +9,6 @@ class MissingProperty < StandardError; end
MiB
=
1024
**
2
MiB
=
1024
**
2
# CPU distribution can be: round-robin | continuous
DEFAULT_CPUSET_MAPPING
=
"continuous"
# GPU distribution can be: round-robin | continuous
# GPU distribution can be: round-robin | continuous
DEFAULT_GPUSET_MAPPING
=
"continuous"
DEFAULT_GPUSET_MAPPING
=
"continuous"
...
@@ -1072,7 +1069,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1072,7 +1069,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
gpu_count
=
first_node
.
key?
(
"gpu_devices"
)
?
first_node
[
"gpu_devices"
].
length
:
0
gpu_count
=
first_node
.
key?
(
"gpu_devices"
)
?
first_node
[
"gpu_devices"
].
length
:
0
cpu_model
=
"
#{
first_node
[
'processor'
][
'model'
]
}
#{
first_node
[
'processor'
][
'version'
]
}
"
cpu_model
=
"
#{
first_node
[
'processor'
][
'model'
]
}
#{
first_node
[
'processor'
][
'version'
]
}
"
c
puset_mapp
ing
=
first_node
.
key?
(
"cpuset_mapping"
)
?
first_node
[
"cpuset_mapping"
]
:
DEFAULT_CPUSET_MAPPING
c
ore_number
ing
=
first_node
[
'architecture'
][
'cpu_core_numbering'
]
# Detect how 'GPUSETs' are distributed over CPUs/GPUs of servers of this cluster
# Detect how 'GPUSETs' are distributed over CPUs/GPUs of servers of this cluster
gpuset_mapping
=
DEFAULT_GPUSET_MAPPING
gpuset_mapping
=
DEFAULT_GPUSET_MAPPING
...
@@ -1206,7 +1203,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1206,7 +1203,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
gpu_idx
+=
1
gpu_idx
+=
1
end
end
if
c
puset_mapp
ing
==
'continuous'
if
c
ore_number
ing
==
'continuous'
cpuset
=
0
cpuset
=
0
end
end
...
@@ -1278,7 +1275,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1278,7 +1275,7 @@ 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
############################################
############################################
if
c
puset_mapp
ing
==
'continuous'
if
c
ore_number
ing
==
'continuous'
row
[
:cpuset
]
=
cpuset
row
[
:cpuset
]
=
cpuset
else
else
# CPUSETs starts at 0
# CPUSETs starts at 0
...
@@ -1310,7 +1307,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
...
@@ -1310,7 +1307,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
core_idx
+=
1
core_idx
+=
1
if
c
puset_mapp
ing
==
'continuous'
if
c
ore_number
ing
==
'continuous'
cpuset
+=
1
cpuset
+=
1
end
end
...
...
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