-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathquick_install_instructions
29 lines (23 loc) · 1.24 KB
/
quick_install_instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#For example, if you wanted to install PETSc into dir/soft
mkdir soft
cd soft
git clone https://gitlab.com/petsc/petsc.git petsc
cd petsc
git checkout v3.13.3
export PETSC_DIR=${PWD}
export PETSC_ARCH=linux-gnu-c-complex-int64-sprng
## This compiles PETSc in optimized mode, which is significantly faster than
## with debugging information on
##If you do not have blas/lapack or mpich, use below.
#./configure PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} --download-fblaslapack --download-mpich --download-sprng --with-scalar-type=complex --with-debugging=no COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 --with-64-bit-indices
##If you are on an HPC cluster where MPI and BLAS are already configured, use:
#./configure PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} --download-sprng --with-scalar-type=complex --with-debugging=no COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 --with-64-bit-indices
make PETSC_DIR=${PETSC_DIR} PETSC_ARCH=${PETSC_ARCH} all
cd ..
git clone https://gitlab.com/slepc/slepc
cd slepc
git checkout v3.13.3
export SLEPC_DIR=${PWD}
./configure
make SLEPC_DIR=${SLEPC_DIR}
#Note, you should set PETSC_DI, PETSC_ARCH, and SLEPC_DIR in your profile (such as ~/.bashrc) so that it is automatically loaded whenever you start a new terminal