# hccn_tool **Repository Path**: chenzhm23/hccn_tool ## Basic Information - **Project Name**: hccn_tool - **Description**: hccn_tool配置测试脚本 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2022-07-19 - **Last Updated**: 2023-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 该脚本用于快速配置、测试多台训练服务器NPU交换机组网 ## 使用方法 ### 1.修改配置文件 修改根目录下的cfg.py文件, 按实际情况填写:\ node_list:每台服务器的命名;\ IPs["common"]: 根据实际情况填写当前的服务器所在IP网段、掩码、网关、网关mac;\ IPS["node-x"]: 根据实际情况填写每台设备8个NPU使用的IP及MASK;\ ### 2.配置网络 使用root用户在当前目录下执行 python set_hccn.py NODE , NODE需按实际情况修改为cfg.py文件中配置的节点名称。\ 例如,在第2台服务器上配置组网: ``` python set_hccn.py node-2 ``` ### 3.单机测试带宽 测试命令如下: ``` python roce_test_self.py -m [node] -t -s -h | --help for help message -m | --machine swtich node -t | --type