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
f625455c
Commit
f625455c
authored
Jan 30, 2025
by
Andriy Roshchenko
Browse files
Refactor static loop.
parent
128685c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
test/mx_mfma_op/mx_mfma_op.hpp
test/mx_mfma_op/mx_mfma_op.hpp
+6
-4
No files found.
test/mx_mfma_op/mx_mfma_op.hpp
View file @
f625455c
...
...
@@ -129,10 +129,12 @@ __device__ AFragT load_A_col_major(AType const* input_ptr)
bit_cast<ARawT>(input_ptr[startOffset + 31 * kOffset])}; // XXX v[31] = Reg 7 [24:31]
#else
auto
fragA
=
AScalarFragT
{};
static_for
<
0
,
VW
,
1
>
{}([
&
](
auto
i
)
{
fragA
[
static_cast
<
int
>
(
i
)]
=
bit_cast
<
ARawT
>
(
input_ptr
[
startOffset
+
static_cast
<
int
>
(
i
)
*
kOffset
]);
});
#pragma unroll VW
for
(
uint32_t
i
=
0
;
i
<
VW
;
i
++
)
{
fragA
[
i
]
=
bit_cast
<
ARawT
>
(
input_ptr
[
startOffset
+
i
*
kOffset
]);
}
#endif
return
fragA
;
}
...
...
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