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

Compiling and Installing NPB

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to create a main program installation directory:
    mkdir -p /path/to/NPB
  3. Copy the installation package to the installation directory.
    cp NPB3.4.tar.gz /path/to/NPB
  4. Run the following command to go to the main program installation directory:
    cd /path/to/NPB
  5. Run the following command to decompress the installation package:
    tar -xvf NPB3.4.tar.gz
  6. Run the following command to switch to the directory generated after the package is decompressed
    cd NPB3.4
  7. Run the following command to generate a configuration file:
    cd NPB3.4-MPI
    cp config/make.def.template config/make.def
  8. 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
  9. 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.