-
Notifications
You must be signed in to change notification settings - Fork 26
/
Nektar++_OpenMPI_Intel_install
executable file
·53 lines (45 loc) · 1.7 KB
/
Nektar++_OpenMPI_Intel_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
53
#!/usr/bin/env bash
###############################################
# Installing Nektar++: OpenMPI with Intel 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/intel_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/intel
require mpi/openmpi/1.10.1/intel-2015-update2
require python3/recommended
module unload openblas/0.2.14/gnu-4.9.2
require openblas/0.2.14/intel-2015-update2
require boost/1_54_0/mpi/intel-2015-update2
require fftw/3.3.4/intel-2015-update2
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`
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_SHARED_LINKER_FLAGS:STRING="-lifcore" \
-DCMAKE_INSTALL_PREFIX:STRING="$INSTALL_PREFIX" ../
make install