编译与单机测试
编译与单机测试
git clone https://github.com/NVIDIA/nccl-tests.git && cd nccl-tests
make CUDA_HOME=/usr/local/cuda NCCL_HOME=<nccl 安装路径>
./build/all_reduce_perf -b 8 -e 128M -f 2 -g 8| algbw | 算法带宽(不计通信加倍) |
|---|---|
| busbw | 总线带宽(可对标链路理论值) |
| wrong | 结果校验列,非 0 说明通信出错 |
多机测试用 MPI 启动:mpirun -np 16 -H hostA:8,hostB:8 ./build/all_reduce_perf -b 8 -e 1G -f 2 -g 1;结果对网卡与拓扑敏感。