block_gemm_areg_bsmem_creg_v2_default_policy.hpp Source File

block_gemm_areg_bsmem_creg_v2_default_policy.hpp Source File#

Composable Kernel: block_gemm_areg_bsmem_creg_v2_default_policy.hpp Source File
block_gemm_areg_bsmem_creg_v2_default_policy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2018-2024, Advanced Micro Devices, Inc. All rights reserved.
3
4#pragma once
5
6#include "ck_tile/core.hpp"
8
9namespace ck_tile {
10
11// Default policy for BlockGemmARegBSmemCRegV2
12// Default policy class should not be templated, put template on member functions instead
14{
15 template <typename Problem>
17 {
18
19#if 0
20 constexpr index_t kBlockSize = Problem::kBlockSize;
21
22 constexpr index_t kMPerBlock = Problem::BlockGemmShape::kM;
23 constexpr index_t kNPerBlock = Problem::BlockGemmShape::kN;
24 constexpr index_t kKPerBlock = Problem::BlockGemmShape::kK;
25
26 static_assert(kBlockSize % get_warp_size() == 0, "wrong!");
27
28 constexpr index_t NumWarp = kBlockSize / get_warp_size();
29
30 // FIXME
31 if constexpr(NumWarp == 4 && kMPerBlock % 128 == 0 &&
32 kNPerBlock % 128 == 0 % kKPerBlock % 16 == 0)
33 {
35 }
36 else
37 {
39 }
40#else
42#endif
43 }
44};
45
46} // namespace ck_tile
#define CK_TILE_HOST_DEVICE
Definition config.hpp:42
Definition tile/core/algorithm/cluster_descriptor.hpp:13
CK_TILE_HOST_DEVICE constexpr index_t get_warp_size()
Definition arch.hpp:63
WarpGemmImpl< WarpGemmAttributeMfma< WarpGemmAttributeMfmaImplF16F16F32M32N32K8< WGAttrCtlEnum::Default_ > > > WarpGemmMfmaF16F16F32M32N32K8
Definition warp_gemm.hpp:35
int32_t index_t
Definition integer.hpp:9
WarpGemmImpl< WarpGemmAttributeMfmaTransposedCDistribution< WarpGemmAttributeMfmaImplF16F16F32M32N32K8< WGAttrCtlEnum::Default_ > > > WarpGemmMfmaF16F16F32M32N32K8TransposedCDistribution
Definition warp_gemm.hpp:75
CK_TILE_HOST_DEVICE constexpr auto make_tuple(Xs &&... xs)
Definition tile/core/container/tuple.hpp:360
Definition block_gemm_areg_bsmem_creg_v2_default_policy.hpp:14
static CK_TILE_HOST_DEVICE constexpr auto GetWarpGemmMWarpNWarp()
Definition block_gemm_areg_bsmem_creg_v2_default_policy.hpp:16