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
OpenDAS
tilelang
Commits
6efeb743
"vscode:/vscode.git/clone" did not exist on "5e54ed80719e9fbfbbfd9ca71980bb7639bf55df"
Unverified
Commit
6efeb743
authored
Sep 18, 2025
by
Jiaxing Ding
Committed by
GitHub
Sep 18, 2025
Browse files
[AMD] fix bf16x2 dtype codegen (#847)
parent
e7e38355
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
src/target/codegen_hip.cc
src/target/codegen_hip.cc
+1
-1
src/tl_templates/hip/common.h
src/tl_templates/hip/common.h
+1
-1
testing/python/amd/test_tilelang_gemm_mfma_intrinsic.py
testing/python/amd/test_tilelang_gemm_mfma_intrinsic.py
+1
-0
No files found.
src/target/codegen_hip.cc
View file @
6efeb743
...
...
@@ -480,7 +480,7 @@ void CodeGenTileLangHIP::PrintVecElemLoad(const std::string &vec, DataType t,
os
<<
"((half2*)(&("
<<
vec
<<
"."
<<
access
[
i
/
2
]
<<
")))->"
<<
access
[
i
%
2
];
}
else
if
(
t
.
is_bfloat16
())
{
os
<<
"((
nv_
bfloat162*)(&("
<<
vec
<<
"."
<<
access
[
i
/
2
]
<<
")))->"
os
<<
"((bfloat16
x
2*)(&("
<<
vec
<<
"."
<<
access
[
i
/
2
]
<<
")))->"
<<
access
[
i
%
2
];
}
else
if
(
t
.
lanes
()
>
4
&&
t
.
lanes
()
<=
8
)
{
std
::
string
type_name
;
...
...
src/tl_templates/hip/common.h
View file @
6efeb743
...
...
@@ -67,7 +67,7 @@ using half_t = float16_t;
using
bfloat16_t
=
hip_bfloat16
;
struct
bfloat16x2
{
bfloat16_t
data
[
2
]
;
bfloat16_t
x
,
y
;
};
struct
bfloat16x4
{
...
...
testing/python/amd/test_tilelang_gemm_mfma_intrinsic.py
View file @
6efeb743
...
...
@@ -56,6 +56,7 @@ def tl_matmul(
A_shared_shape
=
(
block_K
,
block_M
)
if
a_transposed
else
(
block_M
,
block_K
)
B_shared_shape
=
(
block_N
,
block_K
)
if
b_transposed
else
(
block_K
,
block_N
)
C_shared_shape
=
(
block_M
//
micro_size_x
,
block_N
//
micro_size_y
,
micro_size_x
,
micro_size_y
,
...
...
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