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
9d783d24
Commit
9d783d24
authored
Feb 18, 2025
by
Aleksander Dudek
Browse files
[CK_TILE] Add EnvLogging - Add missing k_batch args check
parent
93d77eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/ck_tile/ops/gemm/kernel/gemm_kernel.hpp
include/ck_tile/ops/gemm/kernel/gemm_kernel.hpp
+4
-2
No files found.
include/ck_tile/ops/gemm/kernel/gemm_kernel.hpp
View file @
9d783d24
...
...
@@ -167,6 +167,7 @@ struct GemmKernel
CK_TILE_HOST
static
bool
IsSupportedArgument
(
const
GemmKernelArgs
&
kargs
)
{
std
::
cout
<<
"[INFO] kargs.k_batch: "
<<
kargs
.
k_batch
<<
std
::
endl
;
if
constexpr
(
EpiloguePipeline
::
template
GetVectorSizeC
<
CDataType
>()
%
2
!=
0
&&
is_any_of
<
CDataType
,
fp16_t
,
bf16_t
>::
value
)
{
...
...
@@ -182,11 +183,12 @@ struct GemmKernel
if
constexpr
(
std
::
is_same_v
<
ALayout
,
tensor_layout
::
gemm
::
RowMajor
>
)
{
if
(
kargs
.
K
%
TilePartitioner
::
KPerBlock
!=
0
&&
GemmPipeline
::
kPadK
==
false
)
if
(
kargs
.
K
%
(
TilePartitioner
::
KPerBlock
*
kargs
.
k_batch
)
!=
0
&&
GemmPipeline
::
kPadK
==
false
)
{
if
(
ck_tile
::
EnvIsEnabled
(
CK_TILE_ENV
(
CK_TILE_LOGGING
)))
{
std
::
cerr
<<
"Can't support K that is not a multiple of KPerBlock"
std
::
cerr
<<
"Can't support K that is not a multiple of
k_batch *
KPerBlock"
" without padding!"
<<
std
::
endl
;
}
...
...
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