-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NGCHW bf16 grouped conv fwd instances (#1783)
* Add NGCHW bf16 grouped conv fwd instances * add missed cmake
- Loading branch information
Showing
13 changed files
with
304 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...onv2d_fwd/xdl/comp/device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_comp_instance.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2024, 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_fwd/device_grouped_conv_fwd_xdl_comp_instance.hpp" | ||
|
||
namespace ck { | ||
namespace tensor_operation { | ||
namespace device { | ||
namespace instance { | ||
// Compilation parameters for in[n, hi, wi, g, c] * wei[g, k, y, x, c] = out[n, ho, wo, g, k] | ||
void add_device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_comp_instances( | ||
std::vector<std::unique_ptr<DeviceGroupedConvFwdMultipleABD<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
BF16, | ||
BF16, | ||
Empty_Tuple, | ||
BF16, | ||
PassThrough, | ||
PassThrough, | ||
PassThrough>>>& instances) | ||
{ | ||
add_device_operation_instances( | ||
instances, | ||
device_grouped_conv_fwd_xdl_bf16_comp_instances<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
ConvFwdDefault>{}); | ||
} | ||
|
||
} // namespace instance | ||
} // namespace device | ||
} // namespace tensor_operation | ||
} // namespace ck |
38 changes: 38 additions & 0 deletions
38
.../grouped_conv2d_fwd/xdl/device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_instance.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2024, 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_fwd/device_grouped_conv_fwd_xdl_instance.hpp" | ||
|
||
namespace ck { | ||
namespace tensor_operation { | ||
namespace device { | ||
namespace instance { | ||
// Compilation parameters for in[n, hi, wi, g, c] * wei[g, k, y, x, c] = out[n, ho, wo, g, k] | ||
void add_device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_instances( | ||
std::vector<std::unique_ptr<DeviceGroupedConvFwdMultipleABD<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
BF16, | ||
BF16, | ||
Empty_Tuple, | ||
BF16, | ||
PassThrough, | ||
PassThrough, | ||
PassThrough>>>& instances) | ||
{ | ||
add_device_operation_instances(instances, | ||
device_grouped_conv_fwd_xdl_bf16_instances<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
ConvFwdDefault>{}); | ||
} | ||
|
||
} // namespace instance | ||
} // namespace device | ||
} // namespace tensor_operation | ||
} // namespace ck |
39 changes: 39 additions & 0 deletions
39
...d_fwd/xdl/mem/device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_mem_inter_instance.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2024, 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_fwd/device_grouped_conv_fwd_xdl_mem_instance.hpp" | ||
|
||
namespace ck { | ||
namespace tensor_operation { | ||
namespace device { | ||
namespace instance { | ||
// Compilation parameters for in[n, hi, wi, g, c] * wei[g, k, y, x, c] = out[n, ho, wo, g, k] | ||
void add_device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_mem_inter_instances( | ||
std::vector<std::unique_ptr<DeviceGroupedConvFwdMultipleABD<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
BF16, | ||
BF16, | ||
Empty_Tuple, | ||
BF16, | ||
PassThrough, | ||
PassThrough, | ||
PassThrough>>>& instances) | ||
{ | ||
add_device_operation_instances(instances, | ||
device_grouped_conv_fwd_xdl_bf16_mem_instances<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
ConvFwdDefault, | ||
Interwave>{}); | ||
} | ||
|
||
} // namespace instance | ||
} // namespace device | ||
} // namespace tensor_operation | ||
} // namespace ck |
39 changes: 39 additions & 0 deletions
39
...d_fwd/xdl/mem/device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_mem_intra_instance.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2024, 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_fwd/device_grouped_conv_fwd_xdl_mem_instance.hpp" | ||
|
||
namespace ck { | ||
namespace tensor_operation { | ||
namespace device { | ||
namespace instance { | ||
// Compilation parameters for in[n, hi, wi, g, c] * wei[g, k, y, x, c] = out[n, ho, wo, g, k] | ||
void add_device_grouped_conv2d_fwd_xdl_ngchw_gkyxc_ngkhw_bf16_mem_intra_instances( | ||
std::vector<std::unique_ptr<DeviceGroupedConvFwdMultipleABD<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
BF16, | ||
BF16, | ||
Empty_Tuple, | ||
BF16, | ||
PassThrough, | ||
PassThrough, | ||
PassThrough>>>& instances) | ||
{ | ||
add_device_operation_instances(instances, | ||
device_grouped_conv_fwd_xdl_bf16_mem_instances<2, | ||
NGCHW, | ||
GKYXC, | ||
Empty_Tuple, | ||
NGKHW, | ||
ConvFwdDefault, | ||
Intrawave>{}); | ||
} | ||
|
||
} // namespace instance | ||
} // namespace device | ||
} // namespace tensor_operation | ||
} // namespace ck |
Oops, something went wrong.