操作系统 |
依赖包 |
---|---|
|
|
Ubuntu 18.04.5 LTS arm64 |
|
Hyper MPI包含Hyper MPI、HUCX和XUCG三个软件层,其中Hyper MPI的安装依赖于HUCX和XUCG,编译顺序应为编译HUCX > 编译XUCG > 编译Hyper MPI。
下载地址:https://gitee.com/kunpengcompute/hucx/repository/archive/v2.3.0-huawei.tar.gz
./contrib/configure-opt --prefix=/path/to/install/hucx --enable-mt CC=gcc CXX=g++ FC=gfortran
./contrib/configure-opt --prefix=/path/to/install/hucx --with-cuda=/path/to/install/cuda --enable-mt CC=gcc CXX=g++ FC=gfortran
./contrib/configure-opt --prefix=/path/to/install/hucx --disable-numa --enable-mt CC=gcc CXX=g++ FC=gfortran
make -j32
make -j32 install
make后面-j参数为并行编译参数,表示有多少CPU核数参与编译过程,请根据实际CPU核数进行指定。
export LD_LIBRARY_PATH=/path/to/install/hucx/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=/path/to/install/hucx/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/path/to/install/hucx/include:$CPLUS_INCLUDE_PATH
下载地址:https://gitee.com/kunpengcompute/xucg/repository/archive/v2.3.0-huawei.tar.gz
cmake3 .. -DCMAKE_INSTALL_PREFIX=/path/to/install/xucg -DCMAKE_BUILD_TYPE=Release -DUCG_BUILD_WITH_UCX=/path/to/install/hucx -DUCG_ENABLE_MT=ON -DUCG_BUILD_TESTS=OFF -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran
/path/to/install/xucg:表示XUCG的安装路径。
make -j32
make -j32 install
make后面-j参数为并行编译参数,表示有多少CPU核数参与编译过程,请根据实际CPU核数进行指定。
export LD_LIBRARY_PATH=/path/to/install/xucg/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=/path/to/install/xucg/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/path/to/install/xucg/include:$CPLUS_INCLUDE_PATH
下载地址:https://gitee.com/kunpengcompute/hmpi/repository/archive/v2.3.0-huawei.tar.gz
./autogen.pl
./configure --prefix=/path/to/install/hmpi --with-platform=contrib/platform/mellanox/optimized --enable-mpi1-compatibility --with-ucx=/path/to/install/hucx --with-ucg=/path/to/install/xucg CC=gcc CXX=g++ FC=gfortran
make
make install
./configure --prefix=/path/to/install/hmpi --with-platform=contrib/platform/mellanox/optimized --with-cuda=/path/to/install/cuda --enable-mpi1-compatibility --with-ucx=/path/to/install/hucx --with-ucg=/path/to/install/xucg CC=gcc CXX=g++ FC=gfortran
Hyper MPI包含Hyper MPI、HUCX和XUCG三个软件层,其中Hyper MPI的安装依赖于HUCX和XUCG,编译顺序应为编译HUCX > 编译XUCG > 编译Hyper MPI。
下载地址:https://gitee.com/kunpengcompute/hucx/repository/archive/v2.3.0-huawei.tar.gz
./contrib/configure-opt --prefix=/path/to/install/hucx CFLAGS="-Wno-unused-but-set-variable" --enable-mt CC=clang CXX=clang++ FC=flang
./contrib/configure-opt --prefix=/path/to/install/hucx --enable-mt CC=clang CXX=clang++ FC=flang
./contrib/configure-opt --prefix=/path/to/install/hucx --with-cuda=/path/to/install/cuda CFLAGS="-Wno-unused-but-set-variable" --enable-mt CC=clang CXX=clang++ FC=flang
./contrib/configure-opt --prefix=/path/to/install/hucx --with-cuda=/path/to/install/cuda --enable-mt CC=clang CXX=clang++ FC=flang
./contrib/configure-opt --prefix=/path/to/install/hucx CFLAGS="-Wno-unused-but-set-variable" --disable-numa --enable-mt CC=clang CXX=clang++ FC=flang
./contrib/configure-opt --prefix=/path/to/install/hucx --disable-numa --enable-mt CC=clang CXX=clang++ FC=flang
make -j32
make -j32 install
make后面-j参数为并行编译参数,表示有多少CPU核数参与编译过程,请根据实际CPU核数进行指定。
export LD_LIBRARY_PATH=/path/to/install/hucx/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=/path/to/install/hucx/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/path/to/install/hucx/include:$CPLUS_INCLUDE_PATH
下载地址:https://gitee.com/kunpengcompute/xucg/repository/archive/v2.3.0-huawei.tar.gz
cmake3 .. -DCMAKE_INSTALL_PREFIX=/path/to/install/xucg -DCMAKE_BUILD_TYPE=Release -DUCG_BUILD_WITH_UCX=/path/to/install/hucx -DUCG_ENABLE_MT=ON -DUCG_BUILD_TESTS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_Fortran_COMPILER=flang
/path/to/install/xucg:表示XUCG的安装路径。
make -j32
make -j32 install
make后面-j参数为并行编译参数,表示有多少CPU核数参与编译过程,请根据实际CPU核数进行指定。
export LD_LIBRARY_PATH=/path/to/install/xucg/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=/path/to/install/xucg/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/path/to/install/xucg/include:$CPLUS_INCLUDE_PATH
下载地址:https://gitee.com/kunpengcompute/hmpi/repository/archive/v2.3.0-huawei.tar.gz
./autogen.pl
./configure --prefix=/path/to/install/hmpi --with-platform=contrib/platform/mellanox/optimized --enable-mpi1-compatibility --with-ucx=/path/to/install/hucx --with-ucg=/path/to/install/xucg CC=clang CXX=clang++ FC=flang
make
make install
./configure --prefix=/path/to/install/hmpi --with-platform=contrib/platform/mellanox/optimized --with-cuda=/path/to/install/cuda --enable-mpi1-compatibility --with-ucx=/path/to/install/hucx --with-ucg=/path/to/install/xucg CC=clang CXX=clang++ FC=flang
操作系统 |
操作步骤 |
---|---|
|
yum install -y environment-modules |
Ubuntu 18.04.5 LTS arm64 |
apt-get install -y environment-modules |
若module命令不可用,请先执行以下命令,使module命令生效。
回显如下类似信息,说明environment-modules安装成功。
Modules Release 4.1.1 (2018-02-17)
vi /path/to/install/Hmpi_modulefiles
#%Module1.0 # HMPI module for use with 'environment-modules' package: conflict mpi prepend-path OPAL_PREFIX /path/to/install/hmpi/ prepend-path PATH /path/to/install/hmpi/bin:/path/to/install/hucx/bin:/path/to/install/xucg/bin prepend-path LD_LIBRARY_PATH /path/to/install/hmpi/lib:/path/to/install/hucx/lib:/path/to/install/xucg/lib prepend-path INCLUDE /path/to/install/hmpi/include:/path/to/install/hucx/include:/path/to/install/xucg/include
/path/to/install:表示environment-modules工具的安装路径。若用户不指定安装路径,则会安装在默认路径下,不同操作系统的默认路径如下。
module load /path/to/install/Hmpi_modulefiles
vi ~/.bashrc
module use /path/to/install module load /path/to/install/Hmpi_modulefiles
默认用户的“~/.bashrc”文件在共享目录中,若不在,请修改所有节点的“~/.bashrc”。