# comm_tools **Repository Path**: zhangyinxia/comm_tools ## Basic Information - **Project Name**: comm_tools - **Description**: 通信算子测试 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-29 - **Last Updated**: 2025-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Test comm ops #HCCL_ENTRY_LOG_ENABLE环境变量打开后,会记录算子的下发时间,可以去plog中搜“take time”关键字,获取每个算子的下发时长。 #export HCCL_ENTRY_LOG_ENABLE=1 cd comm_tools/commop #参数列表参考commop/test_comm_op_performance.py中的get_args函数。mindspore用例参考commop/test_mindspore_example.sh,torch用例参考commop/test_torch_example.sh #mindspore示例,验证8卡环境160Byte的输入大小的allreduce算子,运行1000次观察平均性能数据: python test_comm_op_performance.py --case all_reduce --platform mindspore --begin 160 --dtype fp16 --worker_num 8 --local_worker_num 8 --profling False --iters 1000 --master_port 12224 --join True #torch示例,验证8卡环境160Byte的输入大小的allreduce算子,运行1000次观察平均性能数据: python test_comm_op_performance.py --case all_reduce --platform torch --begin 160 --dtype fp16 --worker_num 8 --local_worker_num 8 --profling False --iters 1000 --master_port 12224 --join True