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
b59d5490
Commit
b59d5490
authored
Dec 09, 2021
by
ltqin
Browse files
fixed MPerBlock=96
parent
0eed5076
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
+24
-19
composable_kernel/include/tensor_operation/threadwise_tensor_slice_transfer.hpp
...ude/tensor_operation/threadwise_tensor_slice_transfer.hpp
+1
-1
device_operation/include/device_gemm_splitk_xdl.hpp
device_operation/include/device_gemm_splitk_xdl.hpp
+23
-18
No files found.
composable_kernel/include/tensor_operation/threadwise_tensor_slice_transfer.hpp
View file @
b59d5490
...
@@ -165,7 +165,7 @@ struct ThreadwiseTensorSliceTransfer_v1r3
...
@@ -165,7 +165,7 @@ struct ThreadwiseTensorSliceTransfer_v1r3
static_for
<
1
,
nDim
,
1
>
{}([
&
](
auto
i
)
{
static_for
<
1
,
nDim
,
1
>
{}([
&
](
auto
i
)
{
index_t
tmp
=
ordered_access_idx
[
I0
];
index_t
tmp
=
ordered_access_idx
[
I0
];
static_for
<
0
,
i
,
1
>
{}([
&
](
auto
j
)
{
static_for
<
1
,
i
,
1
>
{}([
&
](
auto
j
)
{
tmp
=
tmp
*
ordered_access_lengths
[
j
]
+
ordered_access_idx
[
j
];
tmp
=
tmp
*
ordered_access_lengths
[
j
]
+
ordered_access_idx
[
j
];
});
});
...
...
device_operation/include/device_gemm_splitk_xdl.hpp
View file @
b59d5490
...
@@ -426,7 +426,6 @@ struct DeviceGemmSplitKXdl
...
@@ -426,7 +426,6 @@ struct DeviceGemmSplitKXdl
float
ave_time
=
0
;
float
ave_time
=
0
;
const
auto
Run
=
[
&
](
const
auto
&
kernel
)
{
const
auto
Run
=
[
&
](
const
auto
&
kernel
)
{
#if CK_RUN_KERNEL_AND_TIME
ave_time
=
launch_and_time_kernel
(
kernel
,
ave_time
=
launch_and_time_kernel
(
kernel
,
nrepeat
,
nrepeat
,
dim3
(
grid_size
),
dim3
(
grid_size
),
...
@@ -442,23 +441,29 @@ struct DeviceGemmSplitKXdl
...
@@ -442,23 +441,29 @@ struct DeviceGemmSplitKXdl
arg
.
b_element_op_
,
arg
.
b_element_op_
,
arg
.
c_element_op_
,
arg
.
c_element_op_
,
arg
.
block_2_ctile_map_
);
arg
.
block_2_ctile_map_
);
#else
if
(
kbatch
>
1
)
nrepeat
++
;
{
launch_kernel
(
kernel
,
hipGetErrorString
(
dim3
(
grid_size
),
hipMemset
(
arg
.
p_c_grid_
,
dim3
(
BlockSize
),
0
,
0
,
arg
.
c_grid_desc_m0_n0_m1_n1_m2_m3_m4_n2_
.
GetElementSpaceSize
()
*
arg
.
p_a_grid_
,
sizeof
(
CDataType
)));
arg
.
p_b_grid_
,
arg
.
p_c_grid_
,
launch_kernel
(
kernel
,
arg
.
a_grid_desc_kbatch_k0_m_k1_
,
dim3
(
grid_size
),
arg
.
b_grid_desc_kbatch_k0_n_k1_
,
dim3
(
BlockSize
),
arg
.
c_grid_desc_m0_n0_m1_n1_m2_m3_m4_n2_
,
0
,
arg
.
a_element_op_
,
arg
.
p_a_grid_
,
arg
.
b_element_op_
,
arg
.
p_b_grid_
,
arg
.
c_element_op_
,
arg
.
p_c_grid_
,
arg
.
block_2_ctile_map_
);
arg
.
a_grid_desc_kbatch_k0_m_k1_
,
#endif
arg
.
b_grid_desc_kbatch_k0_n_k1_
,
arg
.
c_grid_desc_m0_n0_m1_n1_m2_m3_m4_n2_
,
arg
.
a_element_op_
,
arg
.
b_element_op_
,
arg
.
c_element_op_
,
arg
.
block_2_ctile_map_
);
}
};
};
if
(
has_main_k0_block_loop
)
if
(
has_main_k0_block_loop
)
{
{
...
...
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