当前位置: 首页 > news >正文

CANN/hccl 测试指南

HCCL Test

【免费下载链接】hccl集合通信库(Huawei Collective Communication Library,简称HCCL)是基于昇腾AI处理器的高性能集合通信库,为计算集群提供高性能、高可靠的通信方案项目地址: https://gitcode.com/cann/hccl

This directory contains the HCCL test code, which is divided into system tests (ST) and unit tests (UT).

Directory Structure

test/ ├── st/ # System Test │ ├── algorithm/ # Algorithm analyzer tests │ │ ├── testcase/ # Algorithm test cases │ │ ├── utils/ # Test utility code │ │ │ └── src/ │ │ │ ├── aicpu/ # AICPU-related stubs │ │ │ ├── common/ # Common utilities │ │ │ │ ├── exception/ # Exception handling │ │ │ │ └── utils/ # Utility functions │ │ │ ├── hccl_depends_stub/ # HCCL dependency interface stubs │ │ │ ├── hccl_proxy/ # Simulated communicator implementation │ │ │ │ ├── communicator/ │ │ │ │ └── topo_model/ │ │ │ ├── hccl_verifier/ # Verifier │ │ │ │ ├── mem_conflict_check/ # Memory conflict checking │ │ │ │ ├── semantics_check/ # Semantics checking │ │ │ │ ├── singletask_check/ # Single-task checking │ │ │ │ └── task_graph_generator/# Task graph generation │ │ │ ├── sim_world/ # Simulation world implementation │ │ │ └── ut/ # Algorithm analyzer UT tests │ │ ├── figures/ # Test illustration images │ │ ├── CMakeLists.txt │ │ ├── README.md # Algorithm analyzer detailed guide │ │ └── build.sh # Compilation and execution script └── ut/ # Unit Test └── common/ └── prepare_ut_env/ # UT environment preparation code

Test Types

System Test (ST)

System tests mainly verify the correctness of HCCL collective communication algorithm logic, including memory operation validation and semantics validation.

Algorithm Analyzer

The algorithm analyzer verifies algorithm logic and memory operation functions by simulating the HCCL single-operator execution flow.

Principle:

  1. The algorithm analyzer stubs the dependencies (hcomm and runtime interfaces) of the HCCL single-operator flow to obtain the Task sequences of all ranks during algorithm execution.
  2. The Task information of all ranks is formed into adirected acyclic graph.
  3. Validation is performed based ongraph algorithms, including memory read-write conflict checking and semantics checking.

Core Functions:

  • Memory conflict checking: Analyzes whether there are possible read-write conflicts based on the synchronization situation in the Task graph.
  • Semantics checking: Simulates Task graph execution, records data movement information, and verifies whether the data movement in the output memory meets the operator requirements.

For details, see the Algorithm Analyzer Guide.

Unit Test (UT)

Run the following commands in the repository root directory:

# Compile and run all unit test cases bash build.sh --ut # Compile and run all system test cases bash build.sh --st

【免费下载链接】hccl集合通信库(Huawei Collective Communication Library,简称HCCL)是基于昇腾AI处理器的高性能集合通信库,为计算集群提供高性能、高可靠的通信方案项目地址: https://gitcode.com/cann/hccl

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

http://www.jsqmd.com/news/1120247/

相关文章:

  • ofa.js 企业级应用架构:微前端实战案例分享
  • 高速PCB设计中AC耦合电容布局与串扰解决方案
  • Spirit Web Player核心功能解析:让你的网页动画更流畅的终极工具
  • Obsidian-zola性能优化:10个技巧让你的知识网站加载更快
  • 密码同步 - 青龙面板自动签到脚本
  • Optimus与Airflow集成教程:构建企业级数据调度系统的终极方案
  • 芯片失效分析技术:从原理到实践
  • GPT-5 不存在?揭穿AI模型代际炒作真相
  • Leela Chess Zero核心技术揭秘:神经网络如何让AI从零学会下象棋
  • Context开发指南:为MCP协议贡献自定义功能的完整教程
  • CANN/mat-chem-sim-pred SOPDT基准测试报告
  • 如何快速上手jqjq:5个简单步骤掌握自解释JSON处理器
  • Leela Chess Zero分布式训练架构:揭秘lczero.org背后的协同计算
  • Open Battery Information:开源硬件逆向工程工具,解锁BMS锁定电池修复新方案
  • Reacord API完全参考:从基础到高级功能的详细文档
  • Gradle Docker插件与微服务架构:多模块项目的最佳实践指南
  • 如何为details-dialog-element编写自定义样式:CSS定制完全教程
  • CANN/ge Shape类API文档
  • Elm-platform安全指南:确保Elm应用安全性的最佳实践
  • Statsig Status Page故障排查:常见问题与解决方案
  • Selenium Web自动化入门到实战:从环境搭建到框架设计
  • Instatic数据获取实战:从TypeBox验证到useAsyncResource的完整指南
  • 终极指南:如何使用Gradle Docker插件实现与Kubernetes的无缝集成
  • jinjava高级技巧:自定义标签、过滤器和函数的终极指南
  • Trae使用详细教程—从入门到精通(附带图文)
  • Spirit Web Player高级技巧:掌握timeline控制的10个实用方法
  • Genome在Linux环境下的部署与使用:跨平台Swift开发的秘诀
  • CANN/mat-chem-sim-pred IPDT批量闭环评分
  • PoseDiffusion实战应用:如何使用自定义数据集进行姿态估计的完整指南
  • CANN/asc-devkit Conv3DBackpropFilter Tiling使用说明