Installing MPB
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the MPB installation package:
cd /path/to/SRC tar -xvf mpb-1.11.1.tar.gz
- Run the following command to go to the directory generated after decompression:
cd mpb-1.11.1
- Run the following command to install the system packages:
yum install -y guile-devel
- 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
- 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/
- Run the following commands to perform the serial compilation and installation:
make -j make -j install
- (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/
- (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.
Parent topic: Configuring the Compilation Environment