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
b5bac6ce
Commit
b5bac6ce
authored
1 year ago
by
Lucas Nussbaum
Browse files
Options
Downloads
Patches
Plain Diff
[spec/input/] fix rubocop offenses
parent
ece8a61f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!643
Add gpu_compute_capability properties
Pipeline
#919038
passed
1 year ago
Stage: lint
Stage: validate
Stage: generate
Stage: deploy
Stage: checks
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/input/add_gpu_computecapab_to_data.rb
+4
-4
4 additions, 4 deletions
spec/input/add_gpu_computecapab_to_data.rb
with
4 additions
and
4 deletions
spec/input/add_gpu_computecapab_to_data.rb
+
4
−
4
View file @
b5bac6ce
...
@@ -13,14 +13,14 @@ Dir::glob('data*.json').each do |f|
...
@@ -13,14 +13,14 @@ Dir::glob('data*.json').each do |f|
d
=
JSON
::
load
(
IO
::
read
(
f
))
d
=
JSON
::
load
(
IO
::
read
(
f
))
d
.
each_pair
do
|
k1
,
v1
|
d
.
each_pair
do
|
k1
,
v1
|
next
if
k1
!=
'sites'
next
if
k1
!=
'sites'
v1
.
each_pair
do
|
k2
,
v2
|
v1
.
each_pair
do
|
_
k2
,
v2
|
v2
.
each_pair
do
|
k3
,
v3
|
v2
.
each_pair
do
|
k3
,
v3
|
next
if
k3
!=
'clusters'
next
if
k3
!=
'clusters'
v3
.
each_pair
do
|
clusteruid
,
v4
|
v3
.
each_pair
do
|
_
clusteruid
,
v4
|
v4
.
each_pair
do
|
k5
,
v5
|
v4
.
each_pair
do
|
k5
,
v5
|
next
if
k5
!=
'nodes'
next
if
k5
!=
'nodes'
v5
.
each_pair
do
|
nodeuid
,
v6
|
v5
.
each_pair
do
|
_
nodeuid
,
v6
|
(
v6
[
'gpu_devices'
]
||
{}).
each_pair
do
|
k7
,
v7
|
(
v6
[
'gpu_devices'
]
||
{}).
each_pair
do
|
_
k7
,
v7
|
if
not
v7
.
has_key?
(
'compute_capability'
)
if
not
v7
.
has_key?
(
'compute_capability'
)
v7
[
'compute_capability'
]
=
'7.9'
v7
[
'compute_capability'
]
=
'7.9'
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