block_fmha_fwd_splitkv_pipeline_qr_ks_vs_default_policy.hpp Source File

block_fmha_fwd_splitkv_pipeline_qr_ks_vs_default_policy.hpp Source File#

Composable Kernel: block_fmha_fwd_splitkv_pipeline_qr_ks_vs_default_policy.hpp Source File
block_fmha_fwd_splitkv_pipeline_qr_ks_vs_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// This pipeline is qkv all located in LDS
13 : BlockFmhaPipelineQXKSVSCustomPolicy</* QLoadOnce = */ true,
14 /* AsyncCopy = */ false,
15 /* NumPrefetchK = */ 1,
16 /* NumPrefetchV = */ 1>
17{
18 template <typename Problem>
19 CK_TILE_HOST_DEVICE static constexpr auto GetAlignmentOacc()
20 {
22
23 return static_cast<index_t>(16 / sizeof(OaccDataType));
24 }
25};
26
27} // namespace ck_tile
#define CK_TILE_HOST_DEVICE
Definition config.hpp:42
Definition tile/core/algorithm/cluster_descriptor.hpp:13
remove_cv_t< std::remove_reference_t< T > > remove_cvref_t
Definition type_traits.hpp:21
int32_t index_t
Definition integer.hpp:9
Definition block_fmha_fwd_splitkv_pipeline_qr_ks_vs_default_policy.hpp:17
static CK_TILE_HOST_DEVICE constexpr auto GetAlignmentOacc()
Definition block_fmha_fwd_splitkv_pipeline_qr_ks_vs_default_policy.hpp:19
Definition block_fmha_pipeline_qx_ks_vs_custom_policy.hpp:266