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
adf2e4b1
Commit
adf2e4b1
authored
Oct 19, 2023
by
Adam Osewski
Browse files
Add support for halft in reduction op Add.
parent
1c5b049d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
include/ck/tensor_operation/gpu/device/impl/device_grouped_gemm_multiple_d_splitk_xdl_cshuffle_tile_loop.hpp
...grouped_gemm_multiple_d_splitk_xdl_cshuffle_tile_loop.hpp
+1
-3
include/ck/utility/reduction_operator.hpp
include/ck/utility/reduction_operator.hpp
+1
-1
No files found.
include/ck/tensor_operation/gpu/device/impl/device_grouped_gemm_multiple_d_splitk_xdl_cshuffle_tile_loop.hpp
View file @
adf2e4b1
...
@@ -130,9 +130,7 @@ __global__ void
...
@@ -130,9 +130,7 @@ __global__ void
const
auto
StrideA
=
gemm_desc_ptr
[
group_id
].
StrideA
;
const
auto
StrideA
=
gemm_desc_ptr
[
group_id
].
StrideA
;
const
auto
StrideB
=
gemm_desc_ptr
[
group_id
].
StrideB
;
const
auto
StrideB
=
gemm_desc_ptr
[
group_id
].
StrideB
;
auto
gridwise_gemm
=
GridwiseGemm
();
auto
gridwise_gemm
=
GridwiseGemm
();
auto
&
results_buffer
=
gridwise_gemm
.
GetCThreadBuffer
();
b2c_tile_map
.
CalculateBottomIndex
(
work_scheduler
.
tile_id_
-
offset
);
b2c_tile_map
.
CalculateBottomIndex
(
work_scheduler
.
tile_id_
-
offset
);
// Iterate over K dimension for this [M,N] tile
// Iterate over K dimension for this [M,N] tile
...
...
include/ck/utility/reduction_operator.hpp
View file @
adf2e4b1
...
@@ -52,7 +52,7 @@ struct Add
...
@@ -52,7 +52,7 @@ struct Add
__host__
__device__
inline
constexpr
void
operator
()(
T
&
a
,
T
b
)
const
__host__
__device__
inline
constexpr
void
operator
()(
T
&
a
,
T
b
)
const
{
{
static_assert
(
is_same
<
T
,
float
>::
value
||
is_same
<
T
,
double
>::
value
||
static_assert
(
is_same
<
T
,
float
>::
value
||
is_same
<
T
,
double
>::
value
||
is_same
<
T
,
int32_t
>::
value
,
is_same
<
T
,
half_t
>::
value
||
is_same
<
T
,
int32_t
>::
value
,
"The data type is not supported by the Add accumulator!"
);
"The data type is not supported by the Add accumulator!"
);
a
=
a
+
b
;
a
=
a
+
b
;
...
...
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