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
29dcb956
Unverified
Commit
29dcb956
authored
Feb 08, 2024
by
Illia Silin
Committed by
GitHub
Feb 08, 2024
Browse files
Merge pull request #33 from ROCm/lwpck-1292
Merge from the public repo.
parents
29deceb6
cbcc844e
Changes
393
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
323 additions
and
22 deletions
+323
-22
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_gndhwc_gkzyxc_gndhwk_i8_instance.cpp
...conv3d_bwd_data_wmma_gndhwc_gkzyxc_gndhwk_i8_instance.cpp
+1
-1
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_1x1s1p0_instance.cpp
...d_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_1x1s1p0_instance.cpp
+1
-1
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
...onv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
+1
-1
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_1x1s1p0_instance.cpp
...wd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_1x1s1p0_instance.cpp
+1
-1
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_instance.cpp
...conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_instance.cpp
+1
-1
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_bf16_instance.cpp
...eadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_bf16_instance.cpp
+4
-4
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
...leadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
+4
-4
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f32_instance.cpp
...leadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f32_instance.cpp
+4
-4
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_int8_instance.cpp
...eadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_int8_instance.cpp
+4
-4
library/src/tensor_operation_instance/gpu/normalization_bwd_data/CMakeLists.txt
...ration_instance/gpu/normalization_bwd_data/CMakeLists.txt
+8
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_groupnorm_bwd_data_f32_instance.cpp
...ation_bwd_data/device_groupnorm_bwd_data_f32_instance.cpp
+22
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_layernorm2d_bwd_data_f16_instance.cpp
...ion_bwd_data/device_layernorm2d_bwd_data_f16_instance.cpp
+23
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_layernorm2d_bwd_data_f32_instance.cpp
...ion_bwd_data/device_layernorm2d_bwd_data_f32_instance.cpp
+23
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_data/normalization_bwd_data_instance_common.hpp
...ation_bwd_data/normalization_bwd_data_instance_common.hpp
+73
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/CMakeLists.txt
..._instance/gpu/normalization_bwd_gamma_beta/CMakeLists.txt
+8
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_groupnorm_bwd_gamma_beta_f32_instance.cpp
...mma_beta/device_groupnorm_bwd_gamma_beta_f32_instance.cpp
+23
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_layernorm2d_bwd_gamma_beta_f16_instance.cpp
...a_beta/device_layernorm2d_bwd_gamma_beta_f16_instance.cpp
+24
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_layernorm2d_bwd_gamma_beta_f32_instance.cpp
...a_beta/device_layernorm2d_bwd_gamma_beta_f32_instance.cpp
+24
-0
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/normalization_bwd_gamma_beta_instance_common.hpp
...mma_beta/normalization_bwd_gamma_beta_instance_common.hpp
+73
-0
library/src/tensor_operation_instance/gpu/normalization_fwd/device_groupnorm_fwd_f16_instance.cpp
...u/normalization_fwd/device_groupnorm_fwd_f16_instance.cpp
+1
-1
No files found.
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_gndhwc_gkzyxc_gndhwk_i8_instance.cpp
View file @
29dcb956
...
...
@@ -2,7 +2,7 @@
// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_
i8_
instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_1x1s1p0_instance.cpp
View file @
29dcb956
...
...
@@ -2,7 +2,7 @@
// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_
f16_
instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
View file @
29dcb956
...
...
@@ -2,7 +2,7 @@
// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_
f16_
instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_1x1s1p0_instance.cpp
View file @
29dcb956
...
...
@@ -2,7 +2,7 @@
// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_
i8_
instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_bwd_data/wmma/device_grouped_conv3d_bwd_data_wmma_ndhwgc_gkzyxc_ndhwgk_i8_instance.cpp
View file @
29dcb956
...
...
@@ -2,7 +2,7 @@
// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_instance.hpp"
#include "ck/library/tensor_operation_instance/gpu/grouped_conv_bwd_data/device_grouped_conv_bwd_data_wmma_
i8_
instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_bf16_instance.cpp
View file @
29dcb956
...
...
@@ -13,7 +13,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
std
::
vector
<
std
::
unique_ptr
<
DeviceGroupedConvFwdMultipleABD
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
BF16
,
BF16
,
...
...
@@ -28,7 +28,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_bf16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwdDefault
>
{});
add_device_operation_instances
(
...
...
@@ -36,7 +36,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_bf16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1P0
>
{});
add_device_operation_instances
(
...
...
@@ -44,7 +44,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_bf16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1S1P0
>
{});
}
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f16_instance.cpp
View file @
29dcb956
...
...
@@ -13,7 +13,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
std
::
vector
<
std
::
unique_ptr
<
DeviceGroupedConvFwdMultipleABD
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
F16
,
F16
,
...
...
@@ -28,7 +28,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwdDefault
>
{});
add_device_operation_instances
(
...
...
@@ -36,7 +36,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1P0
>
{});
add_device_operation_instances
(
...
...
@@ -44,7 +44,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f16_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1S1P0
>
{});
}
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_f32_instance.cpp
View file @
29dcb956
...
...
@@ -13,7 +13,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
std
::
vector
<
std
::
unique_ptr
<
DeviceGroupedConvFwdMultipleABD
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
F32
,
F32
,
...
...
@@ -28,7 +28,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f32_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwdDefault
>
{});
add_device_operation_instances
(
...
...
@@ -36,7 +36,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f32_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1P0
>
{});
add_device_operation_instances
(
...
...
@@ -44,7 +44,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_f32_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1S1P0
>
{});
}
...
...
library/src/tensor_operation_instance/gpu/grouped_conv3d_fwd_scaleadd_scaleadd_relu/xdl/device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhwgk_int8_instance.cpp
View file @
29dcb956
...
...
@@ -12,7 +12,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
std
::
vector
<
std
::
unique_ptr
<
DeviceGroupedConvFwdMultipleABD
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
int8_t
,
int8_t
,
...
...
@@ -27,7 +27,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_int8_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwdDefault
>
{});
add_device_operation_instances
(
...
...
@@ -35,7 +35,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_int8_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1P0
>
{});
add_device_operation_instances
(
...
...
@@ -43,7 +43,7 @@ void add_device_grouped_conv3d_fwd_xdl_scaleadd_scaleadd_relu_ndhwgc_gkzyxc_ndhw
device_grouped_conv_fwd_xdl_scaleadd_scaleadd_relu_int8_instances
<
3
,
NDHWGC
,
GKZYXC
,
ck
::
Tuple
<
NDHWGK
,
NDHW
GK
>
,
ck
::
Tuple
<
NDHWGK
,
G
_
K
>
,
NDHWGK
,
ConvFwd1x1S1P0
>
{});
}
...
...
library/src/tensor_operation_instance/gpu/normalization_bwd_data/CMakeLists.txt
0 → 100644
View file @
29dcb956
set
(
DEVICE_NORMALIZATION_bwd_data_INSTANCES
)
list
(
APPEND DEVICE_NORMALIZATION_bwd_data_INSTANCES
device_groupnorm_bwd_data_f32_instance.cpp
device_layernorm2d_bwd_data_f16_instance.cpp
device_layernorm2d_bwd_data_f32_instance.cpp
)
add_instance_library
(
device_normalization_bwd_data_instance
${
DEVICE_NORMALIZATION_bwd_data_INSTANCES
}
)
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_groupnorm_bwd_data_f32_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_data_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_groupnorm_bwd_data_f32_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdData
<
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_data_f32_generic_instance
{});
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_data_f32_instances
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_layernorm2d_bwd_data_f16_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_data_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_layernorm2d_bwd_data_f16_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdData
<
F16
,
F16
,
F16
,
F16
,
F16
,
2
,
1
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_layernorm_bwd_data_f16_generic_instance
<
2
,
1
>
{});
add_device_operation_instances
(
instances
,
device_layernorm_bwd_data_f16_instances
<
2
,
1
>
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_data/device_layernorm2d_bwd_data_f32_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_data_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_layernorm2d_bwd_data_f32_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdData
<
F32
,
F32
,
F32
,
F32
,
F32
,
2
,
1
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_layernorm_bwd_data_f32_generic_instance
<
2
,
1
>
{});
add_device_operation_instances
(
instances
,
device_layernorm_bwd_data_f32_instances
<
2
,
1
>
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_data/normalization_bwd_data_instance_common.hpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#pragma once
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/impl/device_normalization_bwd_data_impl.hpp"
#include "ck/utility/data_type.hpp"
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
using
F16
=
ck
::
half_t
;
using
F32
=
float
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_data_f16_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, GammaDataType, MeanInvStdDataType, ComputeDataType, DXDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsGammaFastestDimReduced, GammaSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, IsDXFastestDimReduced, DXDstVectorSize>
DeviceNormalizationBwdDataImpl
<
F16
,
F16
,
F16
,
F16
,
F32
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
1
,
2
,
true
,
2
,
true
,
2
,
true
,
2
,
false
,
1
,
true
,
2
>
,
DeviceNormalizationBwdDataImpl
<
F16
,
F16
,
F16
,
F16
,
F32
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
1
,
4
,
true
,
4
,
true
,
4
,
true
,
4
,
false
,
1
,
true
,
4
>
,
DeviceNormalizationBwdDataImpl
<
F16
,
F16
,
F16
,
F16
,
F32
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
1
,
8
,
true
,
8
,
true
,
8
,
true
,
8
,
false
,
1
,
true
,
8
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_data_f16_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdDataImpl
<
F16
,
F16
,
F16
,
F16
,
F32
,
F16
,
Rank
,
Reduce
,
64
,
1
,
64
,
1
,
1
,
true
,
1
,
true
,
1
,
true
,
1
,
false
,
1
,
true
,
1
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_data_f32_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, GammaDataType, MeanInvStdDataType, ComputeDataType, DXDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsGammaFastestDimReduced, GammaSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, IsDXFastestDimReduced, DXDstVectorSize>
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
256
,
1
,
256
,
1
,
2
,
true
,
2
,
true
,
2
,
true
,
2
,
false
,
1
,
true
,
2
>
,
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
256
,
1
,
256
,
1
,
4
,
true
,
4
,
true
,
4
,
true
,
4
,
false
,
1
,
true
,
4
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_data_f32_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
64
,
1
,
64
,
1
,
1
,
true
,
1
,
true
,
1
,
true
,
1
,
false
,
1
,
true
,
1
>
// clang-format on
>
;
using
device_groupnorm_bwd_data_f32_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, GammaDataType, MeanInvStdDataType, ComputeDataType, DXDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsGammaFastestDimReduced, GammaSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, IsDXFastestDimReduced, DXDstVectorSize>
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
1
,
2
,
true
,
2
,
true
,
2
,
true
,
2
,
false
,
1
,
true
,
2
>
,
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
1
,
4
,
true
,
4
,
true
,
4
,
true
,
4
,
false
,
1
,
true
,
4
>
// clang-format on
>
;
using
device_groupnorm_bwd_data_f32_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdDataImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
64
,
1
,
64
,
1
,
1
,
true
,
1
,
true
,
1
,
true
,
1
,
false
,
1
,
true
,
1
>
// clang-format on
>
;
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/CMakeLists.txt
0 → 100644
View file @
29dcb956
set
(
DEVICE_NORMALIZATION_BWD_GAMMA_BETA_INSTANCES
)
list
(
APPEND DEVICE_NORMALIZATION_BWD_GAMMA_BETA_INSTANCES
device_groupnorm_bwd_gamma_beta_f32_instance.cpp
device_layernorm2d_bwd_gamma_beta_f16_instance.cpp
device_layernorm2d_bwd_gamma_beta_f32_instance.cpp
)
add_instance_library
(
device_normalization_bwd_gamma_beta_instance
${
DEVICE_NORMALIZATION_BWD_GAMMA_BETA_INSTANCES
}
)
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_groupnorm_bwd_gamma_beta_f32_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_gamma_beta_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_groupnorm_bwd_gamma_beta_f32_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdGammaBeta
<
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_gamma_beta_f32_instances
{});
add_device_operation_instances
(
instances
,
device_groupnorm_bwd_gamma_beta_f32_generic_instance
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_layernorm2d_bwd_gamma_beta_f16_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_gamma_beta_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_layernorm2d_bwd_gamma_beta_f16_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdGammaBeta
<
F16
,
F16
,
F16
,
F16
,
F16
,
2
,
1
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_layernorm_bwd_gamma_beta_f16_generic_instance
<
2
,
1
>
{});
add_device_operation_instances
(
instances
,
device_layernorm_bwd_gamma_beta_f16_instances
<
2
,
1
>
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/device_layernorm2d_bwd_gamma_beta_f32_instance.cpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#include "normalization_bwd_gamma_beta_instance_common.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
void
add_device_layernorm2d_bwd_gamma_beta_f32_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationBwdGammaBeta
<
F32
,
F32
,
F32
,
F32
,
F32
,
2
,
1
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
device_layernorm_bwd_gamma_beta_f32_generic_instance
<
2
,
1
>
{});
add_device_operation_instances
(
instances
,
device_layernorm_bwd_gamma_beta_f32_instances
<
2
,
1
>
{});
}
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_bwd_gamma_beta/normalization_bwd_gamma_beta_instance_common.hpp
0 → 100644
View file @
29dcb956
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
#pragma once
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/impl/device_normalization_bwd_gamma_beta_impl.hpp"
#include "ck/utility/data_type.hpp"
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"
namespace
ck
{
namespace
tensor_operation
{
namespace
device
{
namespace
instance
{
using
F16
=
ck
::
half_t
;
using
F32
=
float
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_gamma_beta_f16_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, MeanInvStdDataType, ComputeDataType, DGammaDataType, DBetaDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, DGammaDstVectorSize, DBetaDstVectorSize>
DeviceNormalizationBwdGammaBetaImpl
<
F16
,
F16
,
F16
,
F32
,
F16
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
2
,
1
,
false
,
2
,
false
,
2
,
true
,
1
,
2
,
2
>
,
DeviceNormalizationBwdGammaBetaImpl
<
F16
,
F16
,
F16
,
F32
,
F16
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
4
,
1
,
false
,
4
,
false
,
4
,
true
,
1
,
4
,
4
>
,
DeviceNormalizationBwdGammaBetaImpl
<
F16
,
F16
,
F16
,
F32
,
F16
,
F16
,
Rank
,
Reduce
,
256
,
1
,
256
,
8
,
1
,
false
,
8
,
false
,
8
,
true
,
1
,
8
,
8
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_gamma_beta_f16_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdGammaBetaImpl
<
F16
,
F16
,
F16
,
F32
,
F16
,
F16
,
Rank
,
Reduce
,
64
,
1
,
64
,
1
,
1
,
false
,
1
,
false
,
1
,
true
,
1
,
1
,
1
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_gamma_beta_f32_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, MeanInvStdDataType, ComputeDataType, DGammaDataType, DBetaDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, DGammaDstVectorSize, DBetaDstVectorSize>
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
256
,
1
,
256
,
2
,
1
,
false
,
2
,
false
,
2
,
true
,
1
,
2
,
2
>
,
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
256
,
1
,
256
,
4
,
1
,
false
,
4
,
false
,
4
,
true
,
1
,
4
,
4
>
// clang-format on
>
;
template
<
index_t
Rank
,
index_t
Reduce
>
using
device_layernorm_bwd_gamma_beta_f32_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
Rank
,
Reduce
,
64
,
1
,
64
,
1
,
1
,
false
,
1
,
false
,
1
,
true
,
1
,
1
,
1
>
// clang-format on
>
;
using
device_groupnorm_bwd_gamma_beta_f32_instances
=
// clang-format off
std
::
tuple
<
// DYDataType, XDataType, MeanInvStdDataType, ComputeDataType, DGammaDataType, DBetaDataType, Rank, NumReduceDim, BlockSize, MThreadClusterSize, KThreadClusterSize, MThreadSliceSize, KThreadSliceSize, IsDYFastestDimReduced, DYSrcVectorSize, IsXFastestDimReduced, XSrcVectorSize, IsMeanInvStdFastestDimReduced, MeanInvStdSrcVectorSize, DGammaDstVectorSize, DBetaDstVectorSize>
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
2
,
1
,
false
,
2
,
false
,
2
,
false
,
1
,
2
,
2
>
,
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
256
,
1
,
256
,
4
,
1
,
false
,
4
,
false
,
4
,
false
,
1
,
4
,
4
>
// clang-format on
>
;
using
device_groupnorm_bwd_gamma_beta_f32_generic_instance
=
std
::
tuple
<
// clang-format off
DeviceNormalizationBwdGammaBetaImpl
<
F32
,
F32
,
F32
,
F32
,
F32
,
F32
,
5
,
3
,
64
,
1
,
64
,
1
,
1
,
false
,
1
,
false
,
1
,
false
,
1
,
1
,
1
>
// clang-format on
>
;
}
// namespace instance
}
// namespace device
}
// namespace tensor_operation
}
// namespace ck
library/src/tensor_operation_instance/gpu/normalization_fwd/device_groupnorm_fwd_f16_instance.cpp
View file @
29dcb956
...
...
@@ -11,7 +11,7 @@ namespace instance {
using
Pass
=
ck
::
tensor_operation
::
element_wise
::
PassThrough
;
void
add_device_normalization_fwd_rank_5_3_f16_instances
(
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationFwd
<
F16
,
F16
,
F16
,
F16
,
F
32
,
Pass
,
5
,
3
>>>&
std
::
vector
<
std
::
unique_ptr
<
DeviceNormalizationFwd
<
F16
,
F16
,
F16
,
F16
,
F
16
,
Pass
,
5
,
3
>>>&
instances
)
{
add_device_operation_instances
(
instances
,
...
...
Prev
1
…
12
13
14
15
16
17
18
19
20
Next
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