尧图网站建设 尧图网络
  • 首页
  • 关于我们
  • 服务项目
  • 案例展示
  • 建站流程
  • 资讯中心
  • 联系我们
首页/资讯中心/详情

CANN/HCOMM HCCL测试框架

CANN/HCOMM HCCL测试框架
📅 发布时间:2026/7/15 9:12:17

HCCL LLT

【免费下载链接】hcommHCOMM(Huawei Communication)是HCCL的通信基础库,提供通信域以及通信资源的管理能力。项目地址: https://gitcode.com/cann/hcomm

Overview

HCCL LLT (Low Level Test) is the test framework for HCCL, designed to systematically verify the functional completeness and performance stability of HCCL components at all levels. LLT covers multiple parts of HCCL including the algorithm layer, framework layer, platform layer, and external interface layer. Through comprehensive test cases, it ensures the reliability and efficiency of HCCL in various business scenarios.

Directory Structure

test/ ├── legacy # Historical version compatibility test framework │ ├── common # Common utilities │ ├── depends # Test dependencies on other component headers │ ├── st # ST integration test cases │ │ ├── algorithm # Communication algorithm test cases │ │ ├── fwk # Communication framework test cases │ │ ├── service # Service layer test cases │ │ └── test_case # Test cases │ └── ut # UT integration test cases │ ├── aicpu # AICPU-specific test cases │ ├── all_source_code # Source code file paths │ ├── common # Common utilities │ ├── framework # Communication framework test cases │ ├── service # Service layer test cases │ └── unified_platform # Unified platform layer test cases ├── st/algorithm # ST integration test cases (algorithm analyzer) │ ├── testcase # Test cases │ └── utils # Common utilities └── ut # UT unit test cases ├── aicpu_kfc # MC2-related tests ├── common # Common utilities ├── depends # Test dependencies on other component headers ├── device # Device tests ├── framework # Communication framework test cases ├── impl # Communication algorithm implementation test cases ├── inter # Interface adaptation layer test cases ├── misc # Miscellaneous test cases ├── platform # Communication platform implementation test cases └── stub # Test stub functions

Build and Run

Execute the following commands from the repository root directory:

# Build and run all unit test cases bash build.sh --ut # Build and run all integration test cases bash build.sh --st # Build and run individual test suite cases bash build.sh --open_hccl_test bash build.sh --executor_hccl_test bash build.sh --executor_reduce_hccl_test bash build.sh --executor_pipeline_hccl_test # Manually execute test cases ./build/test/st/algorithm/testcase/testcase/open_hccl_test ./build/test/st/algorithm/testcase/testcase/executor_hccl_test ./build/test/st/algorithm/testcase/testcase/executor_reduce_hccl_test ./build/test/st/algorithm/testcase/testcase/executor_pipeline_hccl_test

Executable Output Location

All executables are output to thebuild/testdirectory by default. The path can be adjusted by modifyingCMakeLists.txt:

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${HCCL_OPEN_CODE_ROOT}/build/test) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${HCCL_OPEN_CODE_ROOT}/build/test)

How to Write Test Cases

HCCL LLT test cases are implemented using the Google Test framework. For detailed writing guidelines, refer to the Google Test User Guide.

  1. Select the appropriate directory based on the test target, e.g.,test/algorithmortest/framework
  2. Create a new test class based on Google Test
  3. Update the corresponding directory'sCMakeLists.txtto add the test entry

Example test code:

#include "gtest/gtest.h" TEST(MyTestClass, MyTestCase) { // Implement assertion logic EXPECT_EQ(actual_value, expected_value); }

How to Run Specific Test Cases

To run specific test cases individually, refer to the Google Test User Guide and add the--gtest_filterparameter when executing the test.

Usinghccl_utest_framework_op_base_apias an example:

# Run only test cases of the HcclCommInitRootInfoTest test class ./build/test/hccl_utest_framework_op_base_api --gtest_filter=HcclCommInitRootInfoTest.*

【免费下载链接】hcommHCOMM(Huawei Communication)是HCCL的通信基础库,提供通信域以及通信资源的管理能力。项目地址: https://gitcode.com/cann/hcomm

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

相关新闻

  • Claude Code:从智能补全到代码库对话的AI编程助手实战
  • VideoDownloadHelper:高效实用的Chrome视频下载助手完整指南
  • mlx-community/gemma-4-31b-it-mxfp8高级技巧:如何优化生成质量与速度

最新新闻

  • 跨平台视频下载利器:一键解密微信视频号、抖音等加密资源
  • 家住慈溪别让旧金闲置落灰,宁波易奢福专业黄金回收,透明估价安全靠谱 - ys韩
  • 成都上门收黄金怎么约?奢二网主城免费上门当面称重 - 生活时报
  • 2026苏州名表回收哪家无虚价?本地测评榜首易奢福资质齐全免费上门 - 肉松卷
  • AI工具选型决策框架:从能力层到交付层的实操指南
  • 如何30秒看透B站评论区真实身份:开源成分检测器完全指南

日新闻

  • 告别启动盘残留:用Diskpart彻底清除U盘EFI分区与恢复完整空间
  • 2026 年宜春诚信的塑料缠绕膜厂家哪个好,缠绕膜背后的秘密:你不知道的成本陷阱 - 领域鉴赏官
  • Arch ECS 入门指南:10分钟掌握C#高性能数据驱动架构

周新闻

  • IX9104 PCIe5.0 高速交换芯片@ACP#完整规格 + 应用场景总结
  • Unity游戏集成Coze智能体:实现NPC智能对话与知识库联动
  • SAP EPIC 建行回单查询:从标准类CL_EPIC_EXAMPLE_CN_CCB_GHTD到Z类的5处关键修改

月新闻

  • 2026年6月公司网站搭建最新热门渠道测评:四大低成本/零代码平台对比+避坑
  • 【Linux】Linux arm 编译QT程序,出现expected “}“报错
  • 【MATLAB例程】四基站二维AOA定位与距离辅助增强对比仿真。基于角度观测和测距修正的固定目标平面定位精度分析

关于尧图

  • 公司简介
  • 团队介绍
  • 企业文化
  • 荣誉资质

服务项目

  • 定制开发
  • 电商建站
  • UI 设计
  • 运维服务

快速链接

  • 案例展示
  • 建站流程
  • 常见问题
  • 资讯中心

联系方式

  • 📍北京市朝阳区互联网产业园 A 座 10 层
  • 📞400-888-8888
  • ✉️contact@rkmt.cn
  • 🕐周一至周日 9:00-21:00

© 2024 北京尧图网络科技有限公司 版权所有 | 京 ICP 备 XXXXXXXX 号