forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckin-test-neams-smp.sh
executable file
·140 lines (122 loc) · 3.8 KB
/
checkin-test-neams-smp.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
# Simple script I used to drive checkin-test.py from within a CHECKIN subdir of the Trilinos
# source repo, which uses a CHECKIN subdir to store the output files. This
# makes it easy to do commands like --pull with extra repos to see what the
# status of things are.
#
# Glen Hansen, [email protected]
#
# Here is my directory structure:
# Codes/
# Trilinos/
# packages/
# checkin-test.py
# checkin_message
# build/
# CHECKIN/
# checkin-test-neams-smp.sh
# MPI_DEBUG/
# MPI_RELEASE_SS/
# SERIAL_RELEASE/
#
# Make sure to "cd ~/Codes/Trilinos/build/CHECKIN; ln -s ../../sampleScripts/checkin-test-neams-smp.sh ."
#
# To use this script just run it, for example, like (this builds and tests):
#
# $ ./checkin-test-neams-smp.sh --do-all
#
# (This pushes after successful tests have been run)
#
# $ ./checkin-test-neams-smp.sh --push
for word in "$@"
do
if [ ${word} == "--help" ]; then
echo "
To run this script (this builds and tests):
$ ./checkin-test-neams-smp.sh --do-all
(This pushes after successful tests have been run)
$ ./checkin-test-neams-smp.sh --push "
exit
fi
done
#
# Set up configuration files
#
BASE=/repository/usr/local
BOOSTDIR=$BASE/boost/boost_1_53_0
MPI_BASE_DIR=$BASE/gcc/gcc-4.7.2
NETCDF=$BASE/parallel/netcdf-4.2.1.1
HDFDIR=$BASE/parallel/hdf5-1.8.9
SNETCDF=$BASE/serial/netcdf-4.2.1.1
SHDFDIR=$BASE/serial/hdf5-1.8.9
MKL_PATH=$BASE/intel
LABLAS_LIBRARY_DIRS="$MKL_PATH/mkl/lib/intel64;/usr/lib64"
LABLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_sequential;mkl_core;pthread"
echo "
-D BUILD_SHARED_LIBS:BOOL=ON
-D Boost_INCLUDE_DIRS:FILEPATH=\"$BOOSTDIR/include\"
-D BoostLib_INCLUDE_DIRS:FILEPATH=\"$BOOSTDIR/include\"
-D Boost_LIBRARY_DIRS:FILEPATH=\"$BOOSTDIR/lib\"
-D BoostLib_LIBRARY_DIRS:FILEPATH=\"$BOOSTDIR/lib\"
-D TPL_ENABLE_Boost:BOOL=ON
-D TPL_ENABLE_BoostLib:BOOL=ON
-D TPL_ENABLE_Netcdf:BOOL=ON
-D TPL_ENABLE_HDF5:BOOL=ON
-D TPL_ENABLE_BLAS:STRING=ON
-D TPL_ENABLE_LAPACK:STRING=ON
-D BLAS_LIBRARY_DIRS:STRING=\"$LABLAS_LIBRARY_DIRS\"
-D BLAS_LIBRARY_NAMES:STRING=\"$LABLAS_LIBRARY_NAMES\"
-D LAPACK_LIBRARY_DIRS:STRING=\"$LABLAS_LIBRARY_DIRS\"
-D LAPACK_LIBRARY_NAMES:STRING=\"$LABLAS_LIBRARY_NAMES\"
" > COMMON.config
echo "
-DCMAKE_BUILD_TYPE:STRING=DEBUG
-DTPL_ENABLE_MPI:BOOL=ON
-DMPI_BASE_DIR:PATH=$MPI_BASE_DIR
-D Netcdf_INCLUDE_DIRS:PATH=\"$NETCDF/include\"
-D Netcdf_LIBRARY_DIRS:PATH=\"$NETCDF/lib\"
-D HDF5_INCLUDE_DIRS:PATH=\"$HDFDIR/include\"
-D HDF5_LIBRARY_DIRS:PATH=\"$HDFDIR/lib\"
" > MPI_DEBUG.config
#echo "
#-DCMAKE_BUILD_TYPE:STRING=DEBUG
#-DTPL_ENABLE_MPI:BOOL=ON
#-DMPI_BASE_DIR:PATH=$MPI_BASE_DIR
#-D Netcdf_INCLUDE_DIRS:PATH=\"$NETCDF/include\"
#-D Netcdf_LIBRARY_DIRS:PATH=\"$NETCDF/lib\"
#-D HDF5_INCLUDE_DIRS:PATH=\"$HDFDIR/include\"
#-D HDF5_LIBRARY_DIRS:PATH=\"$HDFDIR/lib\"
#" > MPI_DEBUG_SS.config
echo "
-DCMAKE_BUILD_TYPE:STRING=RELEASE
-DTPL_ENABLE_MPI:BOOL=ON
-DMPI_BASE_DIR:PATH=$MPI_BASE_DIR
-D Netcdf_INCLUDE_DIRS:PATH=\"$NETCDF/include\"
-D Netcdf_LIBRARY_DIRS:PATH=\"$NETCDF/lib\"
-D HDF5_INCLUDE_DIRS:PATH=\"$HDFDIR/include\"
-D HDF5_LIBRARY_DIRS:PATH=\"$HDFDIR/lib\"
" > MPI_RELEASE_SS.config
echo "
-DCMAKE_BUILD_TYPE:STRING=RELEASE
-D Netcdf_INCLUDE_DIRS:PATH=\"$SNETCDF/include\"
-D Netcdf_LIBRARY_DIRS:PATH=\"$SNETCDF/lib\"
-D HDF5_INCLUDE_DIRS:PATH=\"$SHDFDIR/include\"
-D HDF5_LIBRARY_DIRS:PATH=\"$SHDFDIR/lib\"
" > SERIAL_RELEASE.config
EXTRA_ARGS=$@
#../../checkin-test.py \
#--make-options="-j 16" \
#--st-extra-builds=MPI_DEBUG_SS \
#--ctest-options="-j 16" \
#--ctest-timeout=1200 \
#--send-email-to="" \
#--no-eg-git-version-check \
#$EXTRA_ARGS
../../checkin-test.py \
--make-options="-j 32" \
--st-extra-builds=MPI_RELEASE_SS \
--ctest-options="-j 16" \
--ctest-timeout=1200 \
--send-email-to="" \
--no-eg-git-version-check \
$EXTRA_ARGS