Compiling and Installing SU2
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the dependency:
yum install numpy.aarch64 -y
- Run the following command to decompress the SU2 installation package:
tar zxvf SU2-7.0.4.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd SU2-7.0.4
- Execute the bootstrap script.
./bootstrap
- Run the following commands to switch to the SU2 installation directory:
mkdir ../SU2-7.0.4-gnu-9.3.build cd ../SU2-7.0.4-gnu-9.3.build
- Run the following command to perform configuration:
../SU2-7.0.4/configure --prefix=/path/to/SU2/ CXXFLAGS="-O3 -std=c++11 -march=armv8.2-a -mtune=tsv110" --enable-mpi --with-cc=mpicc --with-cxx=mpicxx
- Run the following commands to compile and install SU2:
make -j 32 make install
- Run the following commands to add the environment variables:
export SU2_RUN=/path/to/SU2/bin export SU2_HOME=/path/to/SU2 export PATH=$PATH:$SU2_RUN export PYTHONPATH=$PYTHONPATH:$SU2_RUN
Parent topic: SU2 7.0.4 Porting Guide (CentOS 7.6)