forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckin-test-sierra-smp.sh
executable file
·98 lines (83 loc) · 2.49 KB
/
checkin-test-sierra-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
#!/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-sierra-smp.sh
# MPI_DEBUG/
# SERIAL_DEBUG/
#
# Make sure to "cd ~/Codes/Trilinos/build/CHECKIN; ln -s ../../sampleScripts/checkin-test-sierra-smp.sh ."
#
# To use this script just run it, for example, like (this builds and tests):
#
# $ ./checkin-test-sierra-smp.sh --do-all
#
# (This pushes after successful tests have been run)
#
# $ ./checkin-test-sierra-smp.sh --push
for word in "$@"
do
if [ ${word} == "--help" ]; then
echo "
To run this script (this builds and tests):
$ ./checkin-test-sierra-smp.sh --do-all
(This pushes after successful tests have been run)
$ ./checkin-test-sierra-smp.sh --push "
exit
fi
done
#
# Set up configuration files
#
BOOSTDIR=/ascldap/users/gahanse/local/boost_1_50_0
MPI_BASE_DIR=/sierra/Sntools/extras/mpi/RHEL5/openmpi-1.4.5/gcc-4.6.3-64Bit
NETCDF=/ascldap/users/gahanse/local/parallel
HDFDIR=/ascldap/users/gahanse/local/parallel
BLASDIR=/sierra/Sntools/extras/compilers/acml4.3.0/gfortran64/lib
FORTRAN_LIBS="-lgfortran -lboost_system"
echo "
-D BUILD_SHARED_LIBS:BOOL=ON
-D Boost_INCLUDE_DIRS:FILEPATH=\"$BOOSTDIR/include\"
-D Boost_LIBRARY_DIRS:FILEPATH=\"$BOOSTDIR/lib\"
-D TPL_ENABLE_Boost:BOOL=ON
-D TPL_ENABLE_Netcdf:BOOL=ON
-D TPL_Netcdf_INCLUDE_DIRS:PATH=$NETCDF/include
-D TPL_Netcdf_LIBRARY_DIRS:PATH=$NETCDF/lib
-D Trilinos_EXTRA_LINK_FLAGS:STRING=\"-lgfortran -lboost_system\"
-D BLAS_LIBRARY_DIRS:FILEPATH=$BLASDIR \
-D BLAS_LIBRARY_NAMES:STRING=\"acml\"
-D LAPACK_LIBRARY_DIRS:FILEPATH=$BLASDIR
-D LAPACK_LIBRARY_NAMES:STRING=\"acml\"
" > COMMON.config
echo "
-DCMAKE_BUILD_TYPE:STRING=DEBUG
-DTPL_ENABLE_MPI:BOOL=ON
-DMPI_BASE_DIR:PATH=$MPI_BASE_DIR
" > MPI_DEBUG.config
echo "
-DCMAKE_BUILD_TYPE:STRING=DEBUG
-DTPL_ENABLE_MPI:BOOL=ON
-DMPI_BASE_DIR:PATH=$MPI_BASE_DIR
" > MPI_DEBUG_SS.config
echo "
-DCMAKE_BUILD_TYPE:STRING=DEBUG
" > SERIAL_DEBUG.config
EXTRA_ARGS=$@
../../checkin-test.py \
--make-options="-j8" \
--ctest-options="-j8" \
--send-email-to="" \
--no-eg-git-version-check \
$EXTRA_ARGS