Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HMPI

Procedure

  1. Use PuTTY to log in to the server as the root user.

    Download HUCX and XUCG.

    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
  2. Decompress the installation packages.
    unzip hucx-huawei.zip
    unzip xucg-huawei.zip
  3. 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/
    cd hucx-huawei
  4. Perform the compilation and installation.
    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"
    mkdir -p /path/to/ucx/
    ./autogen.sh
    ./contrib/configure-opt --prefix=/path/to/ucx CFLAGS="$SEC_CFLAGS" CXXFLAGS="$SEC_CFLAGS"
    make -j32
    make install
  5. Download HMPI.
    wget -c https://github.com/kunpengcompute/hmpi/archive/refs/heads/huawei.zip -O hmpi-huawei.zip
  6. Decompress the installation package.
    unzip hmpi-huawei.zip
    cd hmpi-huawei/
  7. Perform the compilation and installation.
    ./autogen.pl
    ./configure --prefix=/path/to/install/ompi --with-platform=contrib/platform/mellanox/optimized --enable-mpi1-compatibility --with-ucx=/path/to/install/ucx
    make -j16
    make install
  1. Set the environment variables.
    export PATH=/path/to/install/ompi/bin:/path/to/install/ucx/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/install/ompi/lib:/path/to/install/ucx/lib:$LD_LIBRARY_PATH
    export OPAL_PREFIX=/path/to/install/ompi/
    export INCLUDE=/path/to/install/ompi:$INCLUDE