-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathrunconf.sh
53 lines (46 loc) · 1.82 KB
/
runconf.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
#!/bin/bash
# Usage:
# ./runconf.sh ON lean (MPI On, minimal adios2)
# ./runconf.sh ON (MPI On, adios2 builds with all dependencies, might need -D*_DIR or -D*_ROOT)
# ./runconf.sh OFF lean (MPI Off, minimal adios2)
# ./runconf.sh OFF (MPI Off, adios2 builds with all dependencies, might need -D*_DIR or -D*_ROOT)
USE_MPI=${1:-ON}
echo USE_MPI=$USE_MPI
BUILD_FULL=true
VALUE=AUTO
if [ x"$2" == x"lean" ]; then
BUILD_FULL=false
echo "Build ADIOS without extra packages"
VALUE=OFF
fi
# truly out of source build
ADIOS2_SOURCE=${PWD}/../ADIOS2
echo "ADIOS2_SOURCE: " ${ADIOS2_SOURCE}
# -DCMAKE_BUILD_TYPE options: Debug / Release / RelWithDebInfo / MinSizeRel
# Change -DCMAKE_INSTALL_PREFIX to your preferred location
# Default mode is AUTO
# If mode option is ON, it will fail if cmake can't find the dependency location
# Pass *_ROOT or *_DIR for dependency locations e.g. -DZFP_ROOT=/opt/zfp
cmake -DCMAKE_INSTALL_PREFIX=${PWD}/install \
-DADIOS2_USE_MPI=${USE_MPI} \
-DADIOS2_USE_HDF5=${VALUE} \
-DADIOS2_USE_ZeroMQ=${VALUE} \
-DADIOS2_USE_Fortran=${VALUE} \
-DADIOS2_USE_Python=${VALUE} \
-DADIOS2_USE_SST=${VALUE} \
-DADIOS2_USE_SSC=${VALUE} \
-DADIOS2_USE_DataMan=${VALUE} \
-DADIOS2_USE_DataSpaces=${VALUE} \
-DADIOS2_USE_Table=${VALUE} \
-DADIOS2_USE_BZip2=${VALUE} \
-DADIOS2_USE_PNG=${VALUE} \
-DADIOS2_USE_Blosc=${VALUE} \
-DADIOS2_USE_SZ=${VALUE} \
-DADIOS2_USE_ZFP=${VALUE} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=${VALUE} \
-DADIOS2_BUILD_EXAMPLES=${VALUE} \
-DADIOS2_USE_Endian_Reverse=OFF \
${ADIOS2_SOURCE}