/**  * Copyright (c) 2025 Huawei Technologies Co., Ltd.  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of  * CANN Open Software License Agreement Version 2.0 (the "License").  * Please refer to the License for details. You may not use this file except in compliance with the License.  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.  * See LICENSE in the root of the software repository for the full text of the License.  */ /*! * \file iterator.h * \brief */ #ifndef INCLUDE_ITERTOR_H #define INCLUDE_ITERTOR_H #include "common_func.h" #include "hardware.h" #include "kernel_operator.h" #include "layout.h" #include "mem.h" ///////////////////////////////////////////////////// // gm_to_l1 ///////////////////////////////////////////////////// template struct gm_to_l1 { __aicore__ gm_to_l1(AscendC::LocalTensor l1Tensor, AscendC::GlobalTensor gmTensor, uint32_t nTileActual, uint32_t nTileCeil, uint32_t nVal, uint32_t dTileActual, uint32_t dTileCeil, uint32_t dVal) {}; }; ///////////////////////////////////////////////////// // l1_to_l0_a ///////////////////////////////////////////////////// template struct l1_to_l0_a { __aicore__ l1_to_l0_a(AscendC::LocalTensor l0Tensor, AscendC::LocalTensor l1Tensor, uint32_t mTileCeil, uint32_t kPartCeil, uint32_t mSrcStride, uint32_t kSrcStride, uint32_t mDstStride, uint32_t kDstStride) {}; }; ///////////////////////////////////////////////////// // l1_to_l0_b ///////////////////////////////////////////////////// template struct l1_to_l0_b { __aicore__ l1_to_l0_b(AscendC::LocalTensor l0Tensor, AscendC::LocalTensor l1Tensor, uint32_t nTileCeil, uint32_t kPartCeil, uint32_t nSrcStride, uint32_t kSrcStride, uint32_t nDstStride, uint32_t kDstStride) {}; }; // l1_to_l0_a ///////////////////////////////////////////////////// template struct l1_to_l0_a_v1 { __aicore__ l1_to_l0_a_v1(AscendC::LocalTensor l0_tensor, AscendC::LocalTensor l1_tensor, uint32_t m_tile_ceil, uint32_t k_tile_ceil, uint32_t k_part, uint32_t k_part_ceil, uint32_t k_part_idx) {}; }; ///////////////////////////////////////////////////// // l1_to_l0_b ///////////////////////////////////////////////////// template struct l1_to_l0_b_v1 { __aicore__ l1_to_l0_b_v1(AscendC::LocalTensor l0_tensor, AscendC::LocalTensor l1_tensor, int32_t n_tile_ceil, int32_t k_tile_ceil, int32_t k_part_ceil, int32_t k_part_idx) {}; }; ///////////////////////////////////////////////////// // l0c_to_gm ///////////////////////////////////////////////////// template struct l0c_to_gm { __aicore__ l0c_to_gm(AscendC::GlobalTensor gmTensor, AscendC::LocalTensor l0cTensor, uint32_t mTileActual, uint32_t nTileActual, uint32_t mTileCeil, uint32_t nActual) {}; }; ///////////////////////////////////////////////////// // l0c_to_l1 ///////////////////////////////////////////////////// template struct l0c_to_l1 { __aicore__ l0c_to_l1(AscendC::LocalTensor l1Tensor, AscendC::LocalTensor l0cTensor, AscendC::LocalTensor deqTensor, uint32_t mTileActual, uint32_t nTileActual, uint32_t mTileCeil, uint32_t nActual) {}; }; #endif