-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
59 lines (51 loc) · 1.27 KB
/
build.sh
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
54
55
56
57
58
59
#!/bin/bash
PREFIX=/opt
source /opt/intel/mkl/bin/mklvars.sh intel64
echo "Installing cmake"
CMAKE=cmake-3.13.1-Linux-x86_64.tar.gz
wget https://github.com/Kitware/CMake/releases/download/v3.13.1/$CMAKE
tar -xf $CMAKE
cd ${CMAKE%.tar.gz}
export PATH=$PATH:$(pwd)/bin
cd -
echo "Setting up SuiteSparse..."
tar -xf $SUITESPARSE
sed -i 's/-lmkl_intel_thread/-lmkl_sequential/g' SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk
cd SuiteSparse
make library
make install INSTALL=$PREFIX/SuiteSparse
cd -
echo "Setting up HYPRE..."
tar -xf $HYPRE
cd ${HYPRE%.tar.gz}/src
./configure --prefix=$PREFIX/hypre CC=mpicc CXX=mpicxx
make -j 4
make install
cd -
echo "Setting up TTL..."
cd ttl
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX/ttl -DBLA_VENDOR=Intel10_64lp_seq .
make -j 4
make install
cd -
echo "Setting up GCM..."
cd gcm
./bootstrap
./configure --with-ttl=$PREFIX/ttl CXXFLAGS="-O3"
make -j 4
cd -
echo "Setting up PGFEM3D..."
cd pgfem-3d
./bootstrap
./configure --prefix=$PREFIX/pgfem-3d \
--with-suitesparse=$PREFIX/SuiteSparse \
--with-hypre=$PREFIX/hypre \
--with-ttl=$PREFIX/ttl \
--with-cnstvm=$HOME/gcm \
--disable-vtk \
--enable-tests \
--with-tests-nprocs=4 \
CC=mpicc CXX=mpicxx CXXFLAGS="-O3"
make -j 4
make install
cd -