我要评分
获取效率
正确性
完整性
易理解

Installing MPB

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the MPB installation package:
    cd /path/to/SRC
    tar -xvf mpb-1.11.1.tar.gz
  3. Run the following command to go to the directory generated after decompression:
    cd mpb-1.11.1
  4. Run the following command to install the system packages:
    yum install -y guile-devel
  5. Run the following command to configure the environment variables of the mathlib library:
    export LD_LIBRARY_PATH=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc:$LD_LIBRARY_PATH
  6. Run the following command to perform the serial configuration:
    sh autogen.sh --prefix=/path/to/DEPENDENCIES --enable-shared CC=mpicc LDFLAGS="-L/path/to/DEPENDENCIES/lib -Wl,-rpath=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc/ -L/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -lmathlib -lm" CPPFLAGS="-I/path/to/DEPENDENCIES/include" CFLAGS="-O3 -march=armv8.2-a -mtune=tsv110" --with-hermitian-eps --with-libctl=/path/to/DEPENDENCIES/share/libctl/
  7. Run the following commands to perform the serial compilation and installation:
    make -j
    make -j install
  8. (Optional) Run the following command to perform the parallel configuration:
    sh autogen.sh --prefix=/path/to/DEPENDENCIES --enable-shared CC=mpicc LDFLAGS="-L/path/to/DEPENDENCIES/lib -Wl,-rpath=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc/ -L/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -lmathlib -lm" CPPFLAGS="-I/path/to/DEPENDENCIES/include" CFLAGS="-O3 -march=armv8.2-a -mtune=tsv110" --with-hermitian-eps --with-mpi --with-libctl=/path/to/DEPENDENCIES/share/libctl/
  9. (Optional) Run the following commands to perform the parallel compilation and installation:
    make -j
    make -j install

    Meep can only be linked to the serial version of MPB. For the linkage to the parallel version of MPB, you need to perform the compilation and installation.