include/ck_tile/ops/image_to_column/pipeline/tile_image_to_column_shape.hpp Source File

include/ck_tile/ops/image_to_column/pipeline/tile_image_to_column_shape.hpp Source File#

Composable Kernel: include/ck_tile/ops/image_to_column/pipeline/tile_image_to_column_shape.hpp Source File
tile_image_to_column_shape.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: MIT
2 // Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved.
3 
4 #pragma once
5 
6 #include "ck_tile/core.hpp"
7 
8 namespace ck_tile {
9 template <typename ThreadTile, // Sequence<...
10  typename WarpTile, // Sequence<...
11  typename BlockTile> // Sequence<...
13 {
14  static constexpr index_t kMPerThread = ThreadTile::at(number<0>{});
15  static constexpr index_t kKPerThread = ThreadTile::at(number<1>{});
16 
17  static constexpr index_t kMPerWarp = WarpTile::at(number<0>{});
18  static constexpr index_t kKPerWarp = WarpTile::at(number<1>{});
19 
22 
23  static constexpr index_t kMPerBlock = BlockTile::at(number<0>{});
24  static constexpr index_t kKPerBlock = BlockTile::at(number<1>{});
25 
28 
29  static constexpr index_t kBlockSize = warpSize * kMWarpPerBlock * kKWarpPerBlock;
30 };
31 
32 } // namespace ck_tile
Definition: cluster_descriptor.hpp:13
int32_t index_t
Definition: integer.hpp:9
Definition: tile_image_to_column_shape.hpp:13
static constexpr index_t kKThreadPerWarp
Definition: tile_image_to_column_shape.hpp:21
static constexpr index_t kKWarpPerBlock
Definition: tile_image_to_column_shape.hpp:27
static constexpr index_t kMPerBlock
Definition: tile_image_to_column_shape.hpp:23
static constexpr index_t kKPerBlock
Definition: tile_image_to_column_shape.hpp:24
static constexpr index_t kMPerThread
Definition: tile_image_to_column_shape.hpp:14
static constexpr index_t kMThreadPerWarp
Definition: tile_image_to_column_shape.hpp:20
static constexpr index_t kKPerThread
Definition: tile_image_to_column_shape.hpp:15
static constexpr index_t kMWarpPerBlock
Definition: tile_image_to_column_shape.hpp:26
static constexpr index_t kMPerWarp
Definition: tile_image_to_column_shape.hpp:17
static constexpr index_t kKPerWarp
Definition: tile_image_to_column_shape.hpp:18
static constexpr index_t kBlockSize
Definition: tile_image_to_column_shape.hpp:29
Definition: integral_constant.hpp:13