搭建环境 配置编译运行 mpi-test-suite
1,编译安装 ucx
下载源码:
$ git clone https://github.com/openucx/ucx.git
$ git checkout v1.17.0
运行auto工具:
$ ./autogen.sh
$ ./autogen.sh
指所以运行两次是因为有时候第一次会失败,原因未查。
配置 ucx
$ mkdir build
$ cd build
$ ../contrib/configure-devel --prefix=${PWD}/../ --enable-debug --enable-gtest --with-cuda=/usr/local/cuda --without-rocm --without-knem --without-java
编译安装:
$ make -j
$ make install
验证:
ucx 安装目录:
cd ..
pwd
/home/hanmeimei/ex_openmpi/tmp5_runtest/tmp1/ucx
备 openmpi 配置使用。
2,编译安装 openmpi
下载源码及其子模块:
git clone https://github.com/open-mpi/ompi.git
cd ompi
git checkout v5.0.3
git submodule update --recursive --init
git submodule init
git submodule update
运行auto-tool:
./autogen.pl
配置项目 :
mkdir build
cd build
../configure --prefix=${PWD}/../../local_ompi --enable-debug --with-tests-examples --with-tests-examples --with-ucx=/home/hongleili/ex_openmpi/tmp5_runtest/tmp1/ucx --without-verbs
编译安装:
make -j
make install
验证:
3,编译运行 mpi-test-suite
安装依赖包:
sudo apt-get install gengetopt
下载源代码:
$ git clone https://github.com/open-mpi/mpi-test-suite.git
$ cd mpi-test-suite/
运行auto-tool:
$ autogen.sh
配置环境变量:
cd ../local_ompi/bin/
$ export PATH=$PWD:$PATH
cd ../../local_ompi/lib/
export LD_LIBRARY_PATH=$PWD
配置项目:
$ mkdir build
$ cd build/
$ ../configure CC=mpicc
编译:
$ make -j
查看帮助信息:
$ mpirun -np 1 ./mpi_test_suite -h
查看测试case信息:
$ mpirun -np 1 ./mpi_test_suite -l
运行测试case:
$ mpirun -np 32 ./mpi_test_suite -t "P2P" -c COMM_SELF,INTER_COMM -d MPI_CHAR