/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck_tile/ops/topk/block/block_topk_stream_2d_problem.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck_tile/ops/topk/block/block_topk_stream_2d_problem.hpp Source File#

Composable Kernel: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck_tile/ops/topk/block/block_topk_stream_2d_problem.hpp Source File
block_topk_stream_2d_problem.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: MIT
2 // Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
3 
4 #pragma once
5 
6 #include "ck_tile/core.hpp"
7 
8 namespace ck_tile {
9 
10 /*
11 simple 2d topk implementation, along row (dim=1)
12 requirement:
13  1). each row is within a warp
14 */
15 template <typename DataType_, typename IndexType_, index_t ColLanes_>
17 {
20  static constexpr index_t ColLanes = ColLanes_;
21 };
22 } // namespace ck_tile
Definition: cluster_descriptor.hpp:13
int32_t index_t
Definition: integer.hpp:9
remove_cv_t< std::remove_reference_t< T > > remove_cvref_t
Definition: type_traits.hpp:21
Definition: block_topk_stream_2d_problem.hpp:17
remove_cvref_t< IndexType_ > IndexType
Definition: block_topk_stream_2d_problem.hpp:19
remove_cvref_t< DataType_ > DataType
Definition: block_topk_stream_2d_problem.hpp:18
static constexpr index_t ColLanes
Definition: block_topk_stream_2d_problem.hpp:20