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

CANN/HCOMM HCCL测试框架

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),仅供参考

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

相关文章:

  • 【软件设计师-从小白到大牛】下午题进阶篇:第四章 算法策略实战与代码填空精解
  • 亲身探访上海雅典官方售后服务中心|最新热线和完整维修地址(2026年7月最新) - 亨得利官方服务中心
  • 毕业证公证2026全攻略:材料清单、办理流程与时效费用详解 - 叮咚办真方便
  • ZonyLrcToolsX深度解析:基于C的多平台歌词下载技术实现
  • VideoDownloadHelper:高效实用的Chrome视频下载助手完整指南
  • OpenVINO性能调优实战:在openEuler平台上实现AI推理速度提升300%的技巧
  • 百度网盘直连解析工具:3步解锁极速下载体验
  • Claude Code:从智能补全到代码库对话的AI编程助手实战
  • 2026年7月青岛口碑比较好的刑事辩护律师推荐孙伟伟:深耕青岛刑事辩护八年,以细致质证与实务经验化解刑案困境 - 十大排行榜推荐
  • 毕节人注意!旧金饰别乱卖,这6家靠谱黄金回收店请收好,覆盖全区县! - 清奢黄金上门回收
  • 【楚雄同城种草】闲置黄金怎么卖最划算?这6家宝藏黄金回收店请收藏! - 清奢黄金上门回收
  • mlx-community/gemma-4-31b-it-mxfp8高级技巧:如何优化生成质量与速度
  • 革命性窗口管理神器:AlwaysOnTop彻底解决多任务遮挡难题
  • Weak-Mamba-UNet:涂鸦标注下的弱监督分割终极解决方案
  • GPT-5.6 Sol Ultra多智能体架构在Codex中的编码实践与优化
  • SoC电源时序设计:从闩锁效应到低功耗状态切换的硬件实战
  • 车载多摄像头系统设计:FPD-Link III与DS90UB964-Q1硬件实战指南
  • NVIDIA Profile Inspector完整指南:深度解锁显卡200+隐藏设置的专业工具
  • Jido信号路由配置:自定义路由策略与消息分发
  • Jido Igniter工具使用指南:快速初始化项目与示例生成
  • 2026年漳州CPPM培训机构怎么选|中采供培 - 中采供培
  • DS90UB913A-Q1寄存器配置实战:FPD-Link III汽车摄像头稳定传输指南
  • 南京爱马仕回收怎么选?正规门店仪器检测,闲置 BKC 包快速安全变现 - 全国二奢机构参考
  • 无锡黄金回收:退休大爷亲历上门,怕被坑结果被科普成了半个行家 - 小城生活闲谈
  • 树莓派3 USB挂载稳定性实战指南:从供电到systemd挂载
  • 16年前Mac mini焕新实战:Linux系统优化与老设备再利用指南
  • 百度网盘直连解析工具:告别限速的完整解决方案
  • OSPerformanceTools架构设计解析:高性能监控工具的实现原理
  • 一、FFT频谱图为何卡在100Hz?用Python带你破解采样设置的迷思
  • 闲置包包别闲置贬值!2026无锡靠谱奢侈品回收门店实测 - 奢品小当家