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
1eb85ac6
Commit
1eb85ac6
authored
Sep 14, 2023
by
Qianfeng Zhang
Browse files
Use StreamCaptureModeRelaxed for grouped fwd example to include more work into capturing scope
parent
5ef0843b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example/52_flash_atten_bias/run_grouped_multihead_attention_bias_forward.inc
...ten_bias/run_grouped_multihead_attention_bias_forward.inc
+2
-2
No files found.
example/52_flash_atten_bias/run_grouped_multihead_attention_bias_forward.inc
View file @
1eb85ac6
...
@@ -313,6 +313,8 @@ int run(int argc, char* argv[])
...
@@ -313,6 +313,8 @@ int run(int argc, char* argv[])
HIP_CHECK_ERROR
(
hipStreamCreate
(
&
stream
));
HIP_CHECK_ERROR
(
hipStreamCreate
(
&
stream
));
HIP_CHECK_ERROR
(
hipGraphCreate
(
&
graph
,
0
));
HIP_CHECK_ERROR
(
hipGraphCreate
(
&
graph
,
0
));
HIP_CHECK_ERROR
(
hipStreamBeginCapture
(
stream
,
hipStreamCaptureModeRelaxed
));
argument
=
argument
=
gemm
.
MakeArgument
(
p_a
,
gemm
.
MakeArgument
(
p_a
,
p_b0
,
p_b0
,
...
@@ -336,8 +338,6 @@ int run(int argc, char* argv[])
...
@@ -336,8 +338,6 @@ int run(int argc, char* argv[])
gemm
.
SetWorkSpacePointer
(
&
argument
,
problem_desc_workspace_verify
.
GetDeviceBuffer
());
gemm
.
SetWorkSpacePointer
(
&
argument
,
problem_desc_workspace_verify
.
GetDeviceBuffer
());
HIP_CHECK_ERROR
(
hipStreamBeginCapture
(
stream
,
hipStreamCaptureModeGlobal
));
invoker
.
Run
(
argument
,
StreamConfig
{
nullptr
,
false
});
invoker
.
Run
(
argument
,
StreamConfig
{
nullptr
,
false
});
HIP_CHECK_ERROR
(
hipStreamEndCapture
(
stream
,
&
graph
));
HIP_CHECK_ERROR
(
hipStreamEndCapture
(
stream
,
&
graph
));
...
...
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