-
Notifications
You must be signed in to change notification settings - Fork 27
/
Nektar++_OpenMPI_GNU_install
executable file
·52 lines (44 loc) · 1.64 KB
/
Nektar++_OpenMPI_GNU_install
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
###############################################
# Installing Nektar++: OpenMPI with GNU compilers
#
# by Brian Alston, March 2017
#
# Using Ian's require function to load modules
#
# Will need modules: see list of modules below.
VERSION=${VERSION:-4.3.5}
INSTALL_PREFIX=${INSTALL_PREFIX:-/shared/ucl/apps/Nektar++/$VERSION/GNU_OpenMPI}
SRC_ARCHIVE=${SRC_ARCHIVE:-nektar++-$VERSION.tar.gz}
SRC_ARCHIVE_LOCATION=${SRC_ARCHIVE_LOCATION:-http://www.nektar.info/downloads/file/nektar-source-tar-gz/}
export PATH=$INSTALL_PREFIX/bin:$PATH
dirname=$(dirname $0 2>/dev/null || pwd)
INCLUDES_DIR=${INCLUDES_DIR:-${dirname}/includes}
source ${INCLUDES_DIR}/module_maker_inc.sh
source ${INCLUDES_DIR}/require_inc.sh
require rcps-core/1.0.0
require compilers/gnu
require mpi/openmpi/1.10.1/gnu-4.9.2
require python3/recommended
require openblas/0.2.14/gnu-4.9.2
require boost/1_54_0/mpi/gnu-4.9.2-ompi-1.10.1
require fftw/3.3.4-ompi-1.10.1/gnu-4.9.2
require ghostscript/9.19/gnu-4.9.2
require texlive/2015
# May be able to use graphicsmagik: gm convert
require libtool/2.4.6
require perl/5.22.0
require graphicsmagick/1.3.21
# temp_dir=`mktemp -d -p /dev/shm`
temp_dir=`mktemp -d -p ~/Software/Nektar++`
cd $temp_dir
wget $SRC_ARCHIVE_LOCATION -O $SRC_ARCHIVE
tar xvzf $SRC_ARCHIVE
cd nektar++-$VERSION
mkdir build
cd build
cmake -DNEKTAR_USE_MPI:BOOL=ON -DNEKTAR_BUILD_TIMINGS:BOOL=ON -DNEKTAR_USE_FFTW:BOOL=ON \
-DNEKTAR_USE_OPENBLAS:BOOL=ON -DNEKTAR_USE_PETSC:BOOL=OFF -DNEKTAR_USE_SCOTCH:BOOL=ON \
-DNEKTAR_USE_SYSTEM_BLAS_LAPACK:BOOL=OFF -DCONVERT:STRING="gm convert" \
-DCMAKE_INSTALL_PREFIX:STRING="$INSTALL_PREFIX" ../
make install