CANN/catlass GEMM/Kernel类模板概述
2026/6/24 6:14:08 网站建设 项目流程

Gemm/Kernel Class Template Overview

【免费下载链接】catlass本项目是CANN的算子模板库,提供NPU上高性能矩阵乘及其相关融合类算子模板样例。项目地址: https://gitcode.com/cann/catlass

API List

ComponentDescription
basic_matmulBasic matrix multiplication of the Common template
basic_matmul_tla_visitorEVG GM workspace kernel entry point
basic_matmul_tla_ub_visitorEVG UB workspace kernel entry point

API Breakdown

The namespace isCatlass::Gemm::Kernel. The class template contains the following core members.

TypeNameFunction
structParamsInput arguments used when invoking the device kernel function through<<<>>>.
structArgumentsInput arguments encapsulated prior to device execution
Static functionbool CanImplementArgumentsvalidation interface
Static functionsize_t GetWorkspaceSizeCalculates the required workspace size based onArguments
Static functionParams ToUnderlyingArgumentsConvertsArgumentsinto kernel arguments (Params)
Functionvoid operator()<AscendC::AIC>InputsParamsand executes MMAD computations on the AIC
Functionvoid operator()<AscendC::AIV>InputsParamsand executes calculation on the AIV, such as prologue and epilogue

【免费下载链接】catlass本项目是CANN的算子模板库,提供NPU上高性能矩阵乘及其相关融合类算子模板样例。项目地址: https://gitcode.com/cann/catlass

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询