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

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the SIESTA package:
    tar -xvf siesta-4.0.2.tar.gz
  3. Run the following command to go to the directory generated after decompression:
    cd siesta-4.0.2
  4. Run the following commands to create a directory:
    mkdir kpgcc_hmpi_compiler
  5. Run the following commands to go to the directory and run the script:
    cd kpgcc_hmpi_compiler
    bash ../Src/obj_setup.sh
  6. Run the following command to perform the configuration:
    ../Src/configure CC=mpicc CFLAGS='-O3 -march=armv8.2-a -mtune=tsv110' FC=mpifort FCFLAGS='-O3 -march=armv8.2-a -mtune=tsv110' --enable-mpi --build=arm-linux --prefix=/path/to/SIESTA/siesta-4.0.2/kpgcc_hmpi_compiler
  7. Run the following commands to modify the arch.make file:
    1. Open the arch.make file.
      vi arch.make
    2. Press i to enter the insert mode and modify lines 38, 39, and 45 of the file.
      SCALAPACK_LIBS=/path/to/SCALAPACK/libscalapack.a
      MATH_LIBS= -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
      LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS) $(MATH_LIBS)

    3. Press Esc, type :wq!, and press Enter to save the file and exit.

  8. Run the following command to perform the compilation and installation:
    make
  9. Run the following command to configure the environment variables:
    export PATH=/path/to/SIESTA/:$PATH