* Copyright (c) 2026 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 matmul_tiling_data.h
* \brief Host-to-device POD tiling payloads for blasLt matmul kernels.
*/
#pragma once
#ifndef __CCE_AICORE__
#include <cstdint>
#endif
#pragma pack(push, 8)
struct alignas(8) MatmulFp32TilingData {
uint32_t m{0};
uint32_t n{0};
uint32_t k{0};
uint32_t baseM{0};
uint32_t baseN{0};
uint32_t baseK{0};
uint32_t kL1{0};
uint32_t usedCoreNum{0};
uint32_t lda{0};
uint32_t ldb{0};
uint8_t transA{0};
uint8_t transB{0};
};
struct alignas(8) QuantMatmulTilingData {
uint32_t m{0};
uint32_t n{0};
uint32_t k{0};
uint32_t baseM{0};
uint32_t baseN{0};
uint32_t baseK{0};
uint32_t scaleKL1{0};
uint32_t mTailTile{1};
uint32_t nTailTile{1};
uint32_t mBaseTailSplitCnt{1};
uint32_t nBaseTailSplitCnt{1};
uint32_t mTailMain{0};
uint32_t nTailMain{0};
uint32_t usedCoreNum{0};
uint8_t stepK{0};
uint8_t nBufferNum{0};
uint8_t dbL0c{0};
};
#pragma pack(pop)