Installing Gemma
Procedure
- Use PuTTY to log in to the server as the root user.
- Use an SFTP tool to upload the Gemma installation package to the /path/to/GEMMA directory.
- Run the following command to install dependencies:
yum install blas-devel lapack-devel -y
- Run the following command to decompress the installation package:
cd /path/to/GEMMA && tar -zxf GEMMA-0.96.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd GEMMA-0.96
- Run the following command to modify compilation optimization parameters:
sed -i 's/\-O3/-O3 -march=armv8.2-a -mtune=tsv110/' Makefile
- Run the following command to replace the parameter -m64 by -mabi=lp64:
sed -i 's/\-m64/\-mabi=lp64/g' Makefile
- Run the following commands to change the value of the compilation parameter LIBS_LNX_S_LAPACK and delete the compilation parameter static:
sed -i 's/LIBS_LNX_S_LAPACK = /# LIBS_LNX_S_LAPACK = /' Makefile sed -i '/LIBS_LNX_S_LAPACK = /a LIBS_LNX_S_LAPACK = -lgfortran -lopenblas -llapack -lblas -lgfortran' Makefile sed -i 's/CPPFLAGS += -static/#CPPFLAGS += -static/' Makefile
- Run the following commands to set the environment variables:
export LIBRARY_PATH=/path/to/OPENBLAS/lib:/path/to/GSL/lib:$LIBRARY_PATH export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:/path/to/GSL/lib:$LD_LIBRARY_PATH export CPLUS_INCLUDE_PATH=/path/to/OpenBLAS/include:/path/to/EIGEN/include/eigen3:/path/to/GSL/include:$CPLUS_INCLUDE_PATH export C_INCLUDE_PATH=/path/to/OpenBLAS/include:/path/to/EIGEN/include/eigen3:/path/to/GSL/include:$C_INCLUDE_PATH
- Run the following commands to perform the compilation and installation:
make -j
Parent topic: Configuring the Compilation Environment