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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
grid5000
reference-repository
Commits
f81c806c
Commit
f81c806c
authored
5 years ago
by
Lucas Nussbaum
Browse files
Options
Downloads
Patches
Plain Diff
[oar-prop] get rid of core_index0 variable
parent
1d1f7595
No related branches found
No related tags found
1 merge request
!68
Bug11327 - add optional cores_affinity definition to force cores<->GPU allocation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/refrepo/gen/oar-properties.rb
+3
-6
3 additions, 6 deletions
lib/refrepo/gen/oar-properties.rb
with
3 additions
and
6 deletions
lib/refrepo/gen/oar-properties.rb
+
3
−
6
View file @
f81c806c
...
...
@@ -1379,10 +1379,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
############################################
# Suite of (2-a): Iterate over CORES of the CPU
############################################
(
1
..
phys_rsc_map
[
"core"
][
:per_server_count
]).
each
do
|
core_num
|
# core_index0 starts at 0
core_index0
=
core_num
-
1
(
0
...
phys_rsc_map
[
"core"
][
:per_server_count
]).
each
do
|
core_num
|
# Compute cpu and core ID
oar_resource_id
=
oar_resource_ids
[
core_idx
]
...
...
@@ -1420,7 +1417,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
row
[
:cpuset
]
=
cpuset
else
# CPUSETs starts at 0
row
[
:cpuset
]
=
cpu_num
+
core_
index0
*
phys_rsc_map
[
"cpu"
][
:per_server_count
]
row
[
:cpuset
]
=
cpu_num
+
core_
num
*
phys_rsc_map
[
"cpu"
][
:per_server_count
]
end
row
[
:cpumodel
]
=
cpu_model
...
...
@@ -1429,7 +1426,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
# (2-e) [if cluster with GPU] Associate a gpuset to each core
############################################
if
not
numa_gpus
.
empty?
gpu_idx
=
core_
index0
/
(
phys_rsc_map
[
"core"
][
:per_server_count
]
/
numa_gpus
.
length
)
gpu_idx
=
core_
num
/
(
phys_rsc_map
[
"core"
][
:per_server_count
]
/
numa_gpus
.
length
)
selected_gpu
=
numa_gpus
[
gpu_idx
]
if
selected_gpu
.
nil?
...
...
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