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
01bee9d6
Commit
01bee9d6
authored
1 year ago
by
POUILLOUX Laurent
Browse files
Options
Downloads
Patches
Plain Diff
[gpu] add performance and microarch in gpu information
parent
1d3149b7
No related branches found
No related tags found
1 merge request
!541
Add gpu flops
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/refrepo/gpu_ref.rb
+16
-0
16 additions, 0 deletions
lib/refrepo/gpu_ref.rb
lib/refrepo/input_loader.rb
+4
-0
4 additions, 0 deletions
lib/refrepo/input_loader.rb
with
20 additions
and
0 deletions
lib/refrepo/gpu_ref.rb
+
16
−
0
View file @
01bee9d6
...
...
@@ -207,6 +207,22 @@ class GPURef
end
end
def
self
.
get_microarch
(
model
)
if
@@gpus
[
model
]
return
@@gpus
[
model
][
'microarch'
]
else
raise
"Fix me:
#{
model
}
is missing"
end
end
def
self
.
get_performance
(
model
)
if
@@gpus
[
model
]
return
@@gpus
[
model
][
'performance'
]
else
raise
"Fix me:
#{
model
}
is missing"
end
end
def
self
.
model2shortname
(
model
)
if
@@gpus
[
model
]
return
@@gpus
[
model
][
'short_name'
]
...
...
This diff is collapsed.
Click to expand it.
lib/refrepo/input_loader.rb
+
4
−
0
View file @
01bee9d6
...
...
@@ -763,12 +763,16 @@ end
# This adds some extra pieces of information to the generated JSON:
# - the compute capability for Nvidia GPUs
# - the number of cores for all GPUs
# - the microarch
# - the theoretical flops performance
def
add_gpu_information
(
h
)
h
[
'sites'
].
each_pair
do
|
_site_uid
,
site
|
site
.
fetch
(
'clusters'
,
{}).
each_pair
do
|
_cluster_uid
,
cluster
|
cluster
[
'nodes'
].
select
{
|
_k
,
v
|
v
[
'status'
]
!=
'retired'
}.
each_pair
do
|
_node_uid
,
node
|
node
[
'gpu_devices'
]
&
.
each
do
|
_
,
v
|
v
[
'cores'
]
=
GPURef
.
get_cores
(
v
[
'model'
])
v
[
'microarch'
]
=
GPURef
.
get_microarch
(
v
[
'model'
])
v
[
'performance'
]
=
GPURef
.
get_performance
(
v
[
'model'
])
if
v
[
'vendor'
]
==
'Nvidia'
v
[
'compute_capability'
]
=
GPURef
.
get_compute_capability
(
v
[
'model'
])
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