* 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 acosh_grad_apt.cpp
* \brief AcoshGrad 算子 Kernel 入口(arch35 / DAV_3510)
*
* 模板参数(对应 acosh_grad_tiling_key.h 中 ASCENDC_TPL_ARGS_DECL):
* - schMode: 调度模式(0 = 逐元素)
*
* dtype 通过 DTYPE_Y 宏指定(CANN 编译系统根据 op_def 输入名 "y" 自动生成)。
* 每个 dtype 变体由编译系统独立编译,DTYPE_Y 自动替换为对应类型。
*/
#include "arch35/acosh_grad_kernel.h"
template <uint32_t schMode>
__global__ __aicore__ void acosh_grad(GM_ADDR y, GM_ADDR dy, GM_ADDR z,
GM_ADDR workspace, GM_ADDR tiling)
{
REGISTER_TILING_DEFAULT(AcoshGradTilingData);
GET_TILING_DATA_WITH_STRUCT(AcoshGradTilingData, tilingData, tiling);
NsAcoshGrad::AcoshGradKernel<DTYPE_Y> op;
op.Init(y, dy, z, &tilingData);
op.Process();
}