Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
42bc5b87
Commit
42bc5b87
authored
Apr 02, 2026
by
one
Browse files
Update dtk platform detection
parent
4599cd69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
superbench/common/devices/gpu.py
superbench/common/devices/gpu.py
+1
-1
superbench/runner/playbooks/deploy.yaml
superbench/runner/playbooks/deploy.yaml
+3
-1
No files found.
superbench/common/devices/gpu.py
View file @
42bc5b87
...
@@ -28,7 +28,7 @@ class GPU():
...
@@ -28,7 +28,7 @@ class GPU():
if
Path
(
'/dev/kfd'
).
is_char_device
()
and
Path
(
'/dev/dri'
).
is_dir
():
if
Path
(
'/dev/kfd'
).
is_char_device
()
and
Path
(
'/dev/dri'
).
is_dir
():
if
not
list
(
Path
(
'/dev/dri'
).
glob
(
'renderD*'
)):
if
not
list
(
Path
(
'/dev/dri'
).
glob
(
'renderD*'
)):
logger
.
warning
(
'Cannot find AMD GPU device.'
)
logger
.
warning
(
'Cannot find AMD GPU device.'
)
if
Path
(
'/usr/local/hyhal'
).
exists
():
if
Path
(
'/usr/local/hyhal'
).
exists
()
or
Path
(
'/opt/hyhal'
).
exists
()
:
return
'hygon'
return
'hygon'
return
'amd'
return
'amd'
if
list
(
Path
(
r
'C:\Windows\System32'
).
glob
(
'*DriverStore/FileRepository/nv*.inf_amd64_*/nvapi64.dll'
)):
if
list
(
Path
(
r
'C:\Windows\System32'
).
glob
(
'*DriverStore/FileRepository/nv*.inf_amd64_*/nvapi64.dll'
)):
...
...
superbench/runner/playbooks/deploy.yaml
View file @
42bc5b87
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
-
/dev/kfd
-
/dev/kfd
-
/dev/dri
-
/dev/dri
-
/usr/local/hyhal
-
/usr/local/hyhal
-
/opt/hyhal
register
:
hygon_dev
register
:
hygon_dev
-
name
:
Set GPU Facts
-
name
:
Set GPU Facts
set_fact
:
set_fact
:
...
@@ -56,7 +57,8 @@
...
@@ -56,7 +57,8 @@
hygon_gpu_exist
:
>-
hygon_gpu_exist
:
>-
{{ (hygon_dev.results[0].stat.ischr is defined and hygon_dev.results[0].stat.ischr and
{{ (hygon_dev.results[0].stat.ischr is defined and hygon_dev.results[0].stat.ischr and
hygon_dev.results[1].stat.isdir is defined and hygon_dev.results[1].stat.isdir) and
hygon_dev.results[1].stat.isdir is defined and hygon_dev.results[1].stat.isdir) and
hygon_dev.results[2].stat.exists is defined and hygon_dev.results[2].stat.exists }}
((hygon_dev.results[2].stat.exists is defined and hygon_dev.results[2].stat.exists) or
(hygon_dev.results[3].stat.exists is defined and hygon_dev.results[3].stat.exists)) }}
-
name
:
Print GPU Checking Result
-
name
:
Print GPU Checking Result
debug
:
debug
:
msg
:
msg
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment