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
OpenDAS
DeepEP
Commits
174c209f
Commit
174c209f
authored
Sep 09, 2025
by
Chenggang Zhao
Browse files
Fix bench warmup counts
parent
c18eabde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/utils.py
tests/utils.py
+1
-1
No files found.
tests/utils.py
View file @
174c209f
...
@@ -162,7 +162,7 @@ def bench_kineto(fn, kernel_names: Union[str, tuple], num_tests: int = 30, suppr
...
@@ -162,7 +162,7 @@ def bench_kineto(fn, kernel_names: Union[str, tuple], num_tests: int = 30, suppr
# Profile
# Profile
suppress
=
suppress_stdout_stderr
if
suppress_kineto_output
else
empty_suppress
suppress
=
suppress_stdout_stderr
if
suppress_kineto_output
else
empty_suppress
with
suppress
():
with
suppress
():
schedule
=
torch
.
profiler
.
schedule
(
wait
=
0
,
warmup
=
1
,
active
=
1
,
repeat
=
1
)
schedule
=
torch
.
profiler
.
schedule
(
wait
=
1
,
warmup
=
0
,
active
=
1
,
repeat
=
1
)
with
torch
.
profiler
.
profile
(
activities
=
[
torch
.
profiler
.
ProfilerActivity
.
CUDA
],
schedule
=
schedule
)
as
prof
:
with
torch
.
profiler
.
profile
(
activities
=
[
torch
.
profiler
.
ProfilerActivity
.
CUDA
],
schedule
=
schedule
)
as
prof
:
for
i
in
range
(
2
):
for
i
in
range
(
2
):
# NOTES: use a large kernel and a barrier to eliminate the unbalanced CPU launch overhead
# NOTES: use a large kernel and a barrier to eliminate the unbalanced CPU launch overhead
...
...
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