* 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 add_struct.h
* \brief add struct - 非模板版本
*/
#ifndef ADD_STRUCT_H_
#define ADD_STRUCT_H_
#include <cstdint>
namespace AddOp {
* @brief Add 算子的 Tiling 数据结构
* 包含 kernel 需要的所有切分信息
*/
struct AddTilingData {
int64_t elemNum;
int64_t usedCoreNum;
int64_t ubFormer;
int64_t elementsPerCore;
int64_t blockFormer;
int64_t blockLoopCnt;
int64_t blockTail;
int64_t tailCoreElements;
int64_t tailCoreBlockLoopCnt;
int64_t tailCoreBlockTail;
};
}
#endif