moe_sorting_pipeline.hpp Source File# Composable Kernel: moe_sorting_pipeline.hpp Source File includeck_tileopsfused_moepipeline moe_sorting_pipeline.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" 7#include "ck_tile/ops/fused_moe/pipeline/moe_sorting_policy.hpp" 8#include <string> 9#include <type_traits> 10 11#ifndef TOPK_SOFTMAX_USE_RAW_TILE_WINDOW 12#define TOPK_SOFTMAX_USE_RAW_TILE_WINDOW 0 13#endif 14 15namespace ck_tile { 16 17// template <typename Problem_, typename Policy_ = MoeSortingPolicy> 18// struct MoeSortingPipeline 19// { 20// // TODO: this kernel only support warp per row 21// using Problem = remove_cvref_t<Problem_>; 22// using Policy = remove_cvref_t<Policy_>; 23// using WeightType = typename Problem::WeightType; 24 25// template <typename TopkIdWindow, typename WeightWindow> 26// CK_TILE_DEVICE auto operator()(const TopkIdWindow& topk_id_window, 27// const WeightWindow& weight_window, 28// index_t* p_sorted_token_ids, 29// WeightType* p_sorted_weights, 30// index_t* p_sorted_expert_ids, 31// index_t* p_total_tokens_post_pad, 32// const index_t num_experts, 33// const index_t unit_size, 34// const size_t numel, 35// const index_t topk) 36// { 37// } 38// }; 39} // namespace ck_tile core.hpp moe_sorting_policy.hpp ck_tileDefinition tile/core/algorithm/cluster_descriptor.hpp:13