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_ROCM
Commits
70c70d6c
"tests/vscode:/vscode.git/clone" did not exist on "1d3d63abb70c5fa451ac019050cfafa0037d29dc"
Commit
70c70d6c
authored
Feb 04, 2025
by
Andriy Roshchenko
Browse files
Add synchronization into MFMA kernels
parent
f1f36a61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/mx_mfma_op/mx_mfma_op.hpp
test/mx_mfma_op/mx_mfma_op.hpp
+4
-0
No files found.
test/mx_mfma_op/mx_mfma_op.hpp
View file @
70c70d6c
...
...
@@ -643,7 +643,9 @@ __global__ void matmul(const AType* a, const BType* b, CType* c)
// Matrix multiply-accumulate using MFMA units
// Accumulation intermediate = BLOCK_M x BLOCK_N
__syncthreads
();
mfma_type_selector
<
AFragT
,
BFragT
,
AccumFragT
,
BLOCK_M
,
BLOCK_N
>
{}(
fragA
,
fragB
,
fragAcc
);
__syncthreads
();
for
(
int
i
=
0
;
i
<
vectorSize
(
fragC
);
++
i
)
{
...
...
@@ -696,8 +698,10 @@ matmul(const AType* a, const ScaleType* xa, const BType* b, const ScaleType* xb,
// Scaled Matrix multiply-accumulate using MFMA units
// Accumulation intermediate = BLOCK_M x BLOCK_N
__syncthreads
();
mfma_type_selector
<
AFragT
,
BFragT
,
AccumFragT
,
BLOCK_M
,
BLOCK_N
>
{}(
fragA
,
fragXa
,
fragB
,
fragXb
,
fragAcc
);
__syncthreads
();
for
(
int
i
=
0
;
i
<
vectorSize
(
fragC
);
++
i
)
{
...
...
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