GPU・collectiveとstorageの性能測定2 / 4

NCCL testsの例

対応するGPU driver/CUDA/NCCLを用意し、複数nodeでは同じbinaryとMPIによるhost/process配置、bootstrap/RDMAの接続・権限をそろえる。nccl-testsを配置したdirectoryで、単node8GPUなら次のようにmessage sizeを倍増させてall-reduceを測る。

./build/all_reduce_perf -b 8 -e 128M -f 2 -g 8

-bは開始byte、-eは最大size、-fは増加factor、-gはthreadあたりGPU数である。MPI対応でbuildしたbinaryと二node各8processの割当を用意した環境では、次の例は16process×1GPU(既定1thread)となる。

mpirun -np 16 -N 8 ./build/all_reduce_perf -b 8 -e 128M -f 2 -g 1

一nodeだけの結果で、node間fabricの性能を確認したとはいえない。testがTCPへfallbackするなど、使ったtransport/pathとNIC・GPU topologyも確認する。表示timeの単位とin-place/out-of-place、error/check列を読む。

学習パスへ
参考資料