Installing Hyper MPI
Procedure
- Use PuTTY to log in to the server as the root user.
- Install the HUCX and XUCG source packages.
wget -c https://github.com/kunpengcompute/hucx/archive/refs/heads/huawei.zip -O hucx-huawei.zip wget -c https://github.com/kunpengcompute/xucg/archive/refs/heads/huawei.zip -O xucg-huawei.zip
- Decompress the HUCX and XUCG source packages.
unzip hucx-huawei.zip unzip xucg-huawei.zip
- Copy the content in the XUCG source package to the src/ucg directory of the HUCX source package.
cp -r xucg-huawei/* hucx-huawei/src/ucg/
- Go to the hucx-huawei directory.
cd hucx-huawei
- Set the environment variables.
export SEC_CFLAGS="-Wno-error=deprecated-declarations -DHAVE___CLEAR_CACHE=1 -Wno-error=asm-operand-widths -Wno-error=implicit-int-float-conversion -Wno-error=format -Wno-error=tautological-pointer-compare"
- Create an HUCX installation directory.
mkdir -p /path/to/ucx
- Install HUCX.
./autogen.sh ./contrib/configure-opt --prefix=/path/to/ucx CFLAGS="$SEC_CFLAGS" CXXFLAGS="$SEC_CFLAGS" make -j32 make install
- Obtain the Hyper MPI source package.
wget -c https://github.com/kunpengcompute/hmpi/archive/refs/heads/huawei.zip -O hmpi-huawei.zip
- Decompress the Hyper MPI source package.
unzip hmpi-huawei.zip
- Go to the hmpi-huawei directory.
cd hmpi-huawei
- Install Hyper MPI.
./autogen.pl ./configure --prefix=/path/to/ompi --with-platform=contrib/platform/mellanox/optimized --enable-mpi1-compatibility --with-ucx=/path/to/ucx make -j16 make install
- Set the environment variables.
export PATH=/path/to/ompi/bin:/path/to/ucx/bin:$PATH export LD_LIBRARY_PATH=/path/to/ompi/lib:/path/to/ucx/lib:$LD_LIBRARY_PATH export OPAL_PREFIX=/path/to/ompi/ export INCLUDE=/path/to/ompi:$INCLUDE
Parent topic: Configuring the Compilation Environment