Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
3a8c6860
Commit
3a8c6860
authored
Jan 21, 2026
by
PanZezhong
Browse files
issue/811 add warmups before cuda graph capture
parent
91f91f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/infinicore/graph/graph.cc
src/infinicore/graph/graph.cc
+6
-0
No files found.
src/infinicore/graph/graph.cc
View file @
3a8c6860
...
...
@@ -80,6 +80,12 @@ void Graph::instantiate() {
// Reset device graph
device_graph_
=
std
::
make_unique
<
DeviceGraph
>
();
// warmup
for
(
size_t
iter
=
0
;
iter
<
5
;
++
iter
)
{
this
->
run
();
}
infinicore
::
context
::
syncStream
();
if
(
infinirtStreamBeginCapture
(
context
::
getStream
(),
INFINIRT_STREAM_CAPTURE_MODE_GLOBAL
)
...
...
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