forked from sandialabs/seacas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmake-travis-mpi.sh
executable file
·57 lines (48 loc) · 1.37 KB
/
cmake-travis-mpi.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
#! /usr/bin/env sh
if [ "$1" != "" ]; then
BUILDDIR=$1
else
BUILDDIR=build
fi
# Install parallel version of netcdf library...
ACCESS=`pwd`
pwd
cd TPL/netcdf
wget https://github.com/Unidata/netcdf-c/archive/v4.4.0.tar.gz; fi
tar -xzvf v4.4.0.tar.gz; fi
cd netcdf-c-4.4.0
CC=mpicc ./configure --prefix=$ACCESS --enable-netcdf4 --disable-v2 --disable-fsync --disable-dap && make && sudo make install
cd $ACCESS
pwd
mpiexec --version
mpiexec --help
MPI_EXEC=`which mpiexec`
MPI_BIN=`dirname "${MPI_EXEC}"`
mkdir $BUILDDIR && cd $BUILDDIR
cmake \
-DTPL_ENABLE_MPI=ON \
-DCMAKE_CXX_COMPILER:FILEPATH=mpicxx \
-DCMAKE_C_COMPILER:FILEPATH=mpicc \
-DCMAKE_Fortran_COMPILER:FILEPATH=mpif77 \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_CXX_FLAGS="-Wall -pedantic" \
-DCMAKE_C_FLAGS="-Wall -pedantic" \
-DNetCDF_DIR:PATH=${ACCESS} \
-DHDF5_ROOT:PATH=/usr/ \
-DSEACASProj_ENABLE_ALL_PACKAGES:BOOL=ON \
-DSEACASProj_ENABLE_SECONDARY_TESTED_CODE:BOOL=ON \
-DSEACASProj_ENABLE_TESTS:BOOL=ON \
-DSEACASProj_USE_GNUINSTALLDIRS:BOOL=ON \
-DTPL_ENABLE_CGNS:BOOL=ON \
-DTPL_ENABLE_Matio:BOOL=ON \
-DTPL_ENABLE_METIS:BOOL=OFF \
-DTPL_ENABLE_ParMETIS:BOOL=OFF \
-DTPL_ENABLE_Netcdf:BOOL=ON \
-DTPL_ENABLE_Pamgen:BOOL=OFF \
-DTPL_ENABLE_X11:BOOL=ON \
-DTPL_ENABLE_Zlib:BOOL=ON \
-DZoltan_ENABLE_TESTS:BOOL=OFF \
-DMPI_BIN_DIR:PATH=${MPI_BIN} \
../
make -j2
cd $ACCESS