Compiling and Installing NPB
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to create a main program installation directory:
mkdir -p /path/to/NPB
- Copy the installation package to the installation directory.
cp NPB3.4.tar.gz /path/to/NPB
- Run the following command to go to the main program installation directory:
cd /path/to/NPB
- Run the following command to decompress the installation package:
tar -xvf NPB3.4.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed
cd NPB3.4
- Run the following command to generate a configuration file:
cd NPB3.4-MPI cp config/make.def.template config/make.def
- Run the following command to load OPENMPI and GNU environmental variables:
export PATH=/path/to/OPENMPI/bin:/path/to/GNU/bin:$PATH export LD_LIBRARY_PATH=/path/to/OPENMPI/lib:/path/to/GNU/lib64:$LD_LIBRARY_PATH
- Run the following command to perform compilation.
make EP CLASS=D NPROCS=96
In the preceding command:
- EP indicates the benchmark. The NPB has 12 benchmarks: IS, EP, CG, MG, FT, BT, BT-10, SP, LU, UA, DC, and DT.
- CLASS=D indicates the problem size. NPB has eight problem sizes: S, W, A, B, C, D, E, and F.
- NPROCS=96 indicates the number of cores.
You can select the benchmark, problem size, and number of cores based on the site requirements. For details about the parameters, see More Resources.
Parent topic: NPB 3.4 Porting Guide (CentOS 7.6)