Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Obtain and decompress SIESTA to the planned path.
wget https://launchpadlibrarian.net/379220821/siesta-4.0.2.tar.gz tar -xvf siesta-4.0.2.tar.gz
- Go to the directory generated after the decompression.
cd siesta-4.0.2
- Create the directory.
mkdir kpgcc_hmpi_compiler
- Go to the directory and execute the script.
cd kpgcc_hmpi_compiler bash ../Src/obj_setup.sh
- 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
- Modify the arch.make file.
- Open the arch.make file.
vi arch.make
- Press i to enter the edit mode and modify lines 34, 35, 36, 38, 39, and 45.
OPENBLAS_LIBS=/path/to/OPENBLAS/lib/libopenblas.a #BLAS_LIBS=-lblas #LAPACK_LIBS=-llapack 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) $(OPENBLAS_LIBS) $(NETCDF_LIBS) $(MATH_LIBS)
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the arch.make file.
- Replace the config.guess and config.sub scripts in the Fox directory with the content provided in the URLs.
cd /path/to/SIESTA/siesta-4.0.2/Src/FoX/config
In the Fox directory, copy the content provided in the URL to replace the content of the config.guess and config.sub scripts.
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
- Perform the compilation and installation.
make
- Set the environment variables.
export PATH=/path/to/SIESTA/siesta-4.0.2/kpgcc_hmpi_compiler/:$PATH
Parent topic: SIESTA 4.0.2 Porting Guide (openEuler 21.03)
