CANN/catlass稀疏矩阵乘法示例
SparseMatmulTla Example Readme【免费下载链接】catlass本项目是CANN的算子模板库提供NPU上高性能矩阵乘及其相关融合类算子模板样例。项目地址: https://gitcode.com/cann/catlassCode Organization├── 41_sparse_matmul_tla │ ├── CMakeLists.txt #CMake build file │ ├── README.md │ ├── sparse_gen_data.py │ └── sparse_matmul_tla.cpp # Main fileExampleAfter obtaining the code, compile the operator executable file. For details, see Template Library Quick Start.Runsparse_gen_data.pyto generate a test sample. The test sample needs to be input from the command line. After the command is executed, theinputandoutputdirectories are generated in the specified path, including the input data of the operator and the golden data used for precision verification.Then, execute the operator. Note that the input shape of the operator must match the shape of the data generated in the first step. In addition, this sample supports only theint8_tdata type for the input of matrix A or B.The following is a complete shell script example (run in the project directory):m160 n320 k64 device0 function build() { bash scripts/build.sh 41_sparse_matmul_tla } function gen_data() { cd examples/41_sparse_matmul_tla python3 sparse_gen_data.py $m $n $k echo Data gen finished } function run_kernel { echo Case: m $m k $k n $n cd ../../output/bin/ cp -r ../../examples/41_sparse_matmul_tla/input . cp -r ../../examples/41_sparse_matmul_tla/output . ./41_sparse_matmul_tla $m $n $k $device } build gen_data run_kernelIf the following result is displayed, precision verification is successful.Compare success.【免费下载链接】catlass本项目是CANN的算子模板库提供NPU上高性能矩阵乘及其相关融合类算子模板样例。项目地址: https://gitcode.com/cann/catlass创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关新闻

Snow高级配置:自定义网络拓扑与性能优化的终极指南

Snow高级配置:自定义网络拓扑与性能优化的终极指南

Snow高级配置:自定义网络拓扑与性能优化的终极指南 【免费下载链接】snow 项目地址: https://gitcode.com/gh_mirrors/sno/snow Snow作为一款功能强大的网络工具,提供了丰富的高级配置选项,帮助用户打造个性化的网络拓扑结构并实现性…

2026/6/24 14:05:54阅读更多 →
Bootstrap MaxLength事件处理详解:从显示到隐藏的完整生命周期

Bootstrap MaxLength事件处理详解:从显示到隐藏的完整生命周期

Bootstrap MaxLength事件处理详解:从显示到隐藏的完整生命周期 【免费下载链接】bootstrap-maxlength This plugin integrates by default with Twitter bootstrap using badges to display the maximum lenght of the field where the user is inserting text. Use…

2026/6/24 14:05:54阅读更多 →
hspec扩展开发指南:如何为Haskell测试框架编写自定义插件

hspec扩展开发指南:如何为Haskell测试框架编写自定义插件

hspec扩展开发指南:如何为Haskell测试框架编写自定义插件 【免费下载链接】hspec A Testing Framework for Haskell 项目地址: https://gitcode.com/gh_mirrors/hs/hspec Hspec是Haskell生态中最流行的测试框架之一,它提供了丰富的测试功能和灵活…

2026/6/24 14:05:54阅读更多 →
REL分页实现完全指南:高效处理大数据集查询

REL分页实现完全指南:高效处理大数据集查询

REL分页实现完全指南:高效处理大数据集查询 【免费下载链接】rel :gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API 项目地址: https://gitcode.com/gh_mirrors/re/rel 在现代Web应用中,处理大数据…

2026/6/24 14:15:55阅读更多 →
Serpl项目贡献指南:如何为开源终端搜索替换工具贡献力量

Serpl项目贡献指南:如何为开源终端搜索替换工具贡献力量

Serpl项目贡献指南:如何为开源终端搜索替换工具贡献力量 【免费下载链接】serpl A simple terminal UI for search and replace, ala VS Code. 项目地址: https://gitcode.com/gh_mirrors/se/serpl 想要为Serpl这个强大的终端搜索替换工具贡献力量吗&#xf…

2026/6/24 14:15:55阅读更多 →
Melting Pot在NeurIPS 2023挑战赛中的应用与优秀解决方案分析

Melting Pot在NeurIPS 2023挑战赛中的应用与优秀解决方案分析

Melting Pot在NeurIPS 2023挑战赛中的应用与优秀解决方案分析 【免费下载链接】meltingpot A suite of test scenarios for multi-agent reinforcement learning. 项目地址: https://gitcode.com/gh_mirrors/me/meltingpot Melting Pot是一个多智能体强化学习测试场景套…

2026/6/24 14:15:55阅读更多 →
threads-gnn源码深度解读:PyTorch Geometric图分类最佳实践指南

threads-gnn源码深度解读:PyTorch Geometric图分类最佳实践指南

threads-gnn源码深度解读:PyTorch Geometric图分类最佳实践指南 【免费下载链接】threads-gnn 项目地址: https://ai.gitcode.com/hf_mirrors/pymlex/threads-gnn threads-gnn 是一个基于PyTorch Geometric实现的图神经网络分类项目,专门用于Red…

2026/6/24 14:15:55阅读更多 →
Multiverso核心组件详解:Table接口与通信协议全解析

Multiverso核心组件详解:Table接口与通信协议全解析

Multiverso核心组件详解:Table接口与通信协议全解析 【免费下载链接】Multiverso Parameter server framework for distributed machine learning 项目地址: https://gitcode.com/gh_mirrors/mu/Multiverso Multiverso是一个专为分布式机器学习设计的参数服务…

2026/6/24 14:15:55阅读更多 →
OpenInference性能优化:如何降低监控开销提升AI应用效率

OpenInference性能优化:如何降低监控开销提升AI应用效率

OpenInference性能优化:如何降低监控开销提升AI应用效率 【免费下载链接】openinference OpenTelemetry Instrumentation for AI Observability 项目地址: https://gitcode.com/gh_mirrors/op/openinference OpenInference作为AI可观测性的关键工具&#xff…

2026/6/24 14:10:55阅读更多 →
【人工智能】一文搞定到底什么是智能体

【人工智能】一文搞定到底什么是智能体

【人工智能】一文搞定到底什么是智能体 一文搞定到底什么是智能体【人工智能】一文搞定到底什么是智能体一. LM,WorkFlow,Agent分别有什么么不同二. Agent的思考过程是怎样的三. Agent的五个核心部分1)LLM2)Prompt3)Me…

2026/6/24 7:33:03阅读更多 →
嵌入式GUI控件实战:ROTARY、SCROLLBAR、SLIDER原理与应用

嵌入式GUI控件实战:ROTARY、SCROLLBAR、SLIDER原理与应用

1. 嵌入式GUI控件:从原理到实战的深度解析在嵌入式系统开发中,图形用户界面(GUI)的设计与实现往往是项目从“能用”到“好用”的关键一跃。不同于资源充沛的PC或移动平台,嵌入式设备的GUI需要在有限的CPU性能、内存空间…

2026/6/24 2:12:09阅读更多 →
Google AI Studio 300美元额度的真相与实战指南

Google AI Studio 300美元额度的真相与实战指南

1. 这300美金不是“送钱”,而是Google埋下的第一道技术门槛 你看到标题里那个醒目的“$300美金”时,第一反应可能是:又一个免费额度?领完就完事?我亲手试过——这300美金根本不是红包,而是一张入场券&…

2026/6/24 7:37:00阅读更多 →
TaskJuggler脚本编程入门:用代码实现自动化项目管理

TaskJuggler脚本编程入门:用代码实现自动化项目管理

TaskJuggler脚本编程入门:用代码实现自动化项目管理 【免费下载链接】TaskJuggler TaskJuggler - Project Management beyond Gantt chart drawing 项目地址: https://gitcode.com/gh_mirrors/ta/TaskJuggler TaskJuggler是一款强大的开源项目管理工具&#…

2026/6/24 0:02:41阅读更多 →
终极教程:使用angular-mobile-nav实现流畅的移动页面过渡效果

终极教程:使用angular-mobile-nav实现流畅的移动页面过渡效果

终极教程:使用angular-mobile-nav实现流畅的移动页面过渡效果 【免费下载链接】angular-mobile-nav An angular navigation service for mobile applications 项目地址: https://gitcode.com/gh_mirrors/an/angular-mobile-nav angular-mobile-nav是一款专为…

2026/6/24 0:02:41阅读更多 →
Wan2.1-Fun-V1.1-1.3B-InP Web UI使用教程:无需代码的AI视频创作

Wan2.1-Fun-V1.1-1.3B-InP Web UI使用教程:无需代码的AI视频创作

Wan2.1-Fun-V1.1-1.3B-InP Web UI使用教程:无需代码的AI视频创作 【免费下载链接】Wan2.1-Fun-V1.1-1.3B-InP 项目地址: https://ai.gitcode.com/hf_mirrors/PAI/Wan2.1-Fun-V1.1-1.3B-InP Wan2.1-Fun-V1.1-1.3B-InP是一款强大的AI视频创作工具,…

2026/6/24 0:02:41阅读更多 →