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
gaoqiong
composable_kernel
Commits
16ed1906
Commit
16ed1906
authored
Nov 22, 2022
by
Adam Osewski
Browse files
More warm-up & kernel iterations
parent
c9be15ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
include/ck/host_utility/kernel_launch.hpp
include/ck/host_utility/kernel_launch.hpp
+6
-3
No files found.
include/ck/host_utility/kernel_launch.hpp
View file @
16ed1906
...
@@ -29,12 +29,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config,
...
@@ -29,12 +29,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config,
block_dim
.
y
,
block_dim
.
y
,
block_dim
.
z
);
block_dim
.
z
);
const
int
nrepeat
=
10
;
const
int
nrepeat
=
10
0
;
printf
(
"Warm up 1 time
\n
"
);
printf
(
"Warm up 1
0
time
\n
"
);
// warm up
// warm up
for
(
int
i
=
0
;
i
<
10
;
++
i
)
{
kernel
<<<
grid_dim
,
block_dim
,
lds_byte
,
stream_config
.
stream_id_
>>>
(
args
...);
kernel
<<<
grid_dim
,
block_dim
,
lds_byte
,
stream_config
.
stream_id_
>>>
(
args
...);
}
printf
(
"Start running %d times...
\n
"
,
nrepeat
);
printf
(
"Start running %d times...
\n
"
,
nrepeat
);
...
...
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