-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-bgq.sh
executable file
·135 lines (116 loc) · 4.22 KB
/
build-bgq.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
#! /bin/sh
ROOTPATH=`pwd`
cd $ROOTPATH
echo
echo Configure tmLQCD.....
CPPFLAGS=""
CPPFLAGS="${CPPFLAGS} -I/bgsys/drivers/ppcfloor/arch/include"
CPPFLAGS="${CPPFLAGS} -I/bgsys/drivers/ppcfloor/comm/xl/include"
CPPFLAGS="${CPPFLAGS} -I/bgsys/drivers/ppcfloor"
CPPFLAGS="${CPPFLAGS} -I${HOME}/usr/include"
CPPFLAGS="${CPPFLAGS} -DNDEBUG=1"
CPPFLAGS="${CPPFLAGS} -DNVALGRIND=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_QPX=1"
CPPFLAGS="${CPPFLAGS} -DXLC=1"
#CPPFLAGS="${CPPFLAGS} -DBGQ=1"
CPPFLAGS="${CPPFLAGS} -DPAPI=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_UNVECTORIZE=1"
#CPPFLAGS="${CPPFLAGS} -DBGQ_COORDCHECK=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_REPLACE=0"
CFLAGS=""
CFLAGS="${CFLAGS} -g"
CFLAGS="${CFLAGS} -O5"
CFLAGS="${CFLAGS} -qlibmpi"
#CFLAGS="${CFLAGS} -qprefetch=aggressive"
CFLAGS="${CFLAGS} -qarch=qp"
CFLAGS="${CFLAGS} -qtune=qp"
CFLAGS="${CFLAGS} -qmaxmem=-1"
CFLAGS="${CFLAGS} -qtm" # Enable transactional memory
#CFLAGS="${CFLAGS} -qsimd=noauto"
CFLAGS="${CFLAGS} -qsmp=noauto"
#CFLAGS="${CFLAGS} -qstrict=all"
#CFLAGS="${CFLAGS} -qstrict=none"
CFLAGS="${CFLAGS} -qstrict=order"
#CFLAGS="${CFLAGS} -qipa=level=2"
#CFLAGS="${CFLAGS} -qsimd=auto"
#CFLAGS="${CFLAGS} -qsmp=noauto"
LIBS=""
LIBS="${LIBS} -lhmc"
LIBS="${LIBS} -lbgq"
LIBS="${LIBS} -lhmc" # libbgq links to Symbols in DirectPut.c, that is inluded in libhmc.a
LIBS="${LIBS} -lxl"
LIBS="${LIBS} -lxlopt"
LIBS="${LIBS} -lxlf90_r"
LIBS="${LIBS} -lxlfmath"
LIBS="${LIBS} -lxlsmp"
LIBS="${LIBS} -lpthread"
LIBS="${LIBS} -lSPI_l1p"
LIBS="${LIBS} -lSPI"
LIBS="${LIBS} -lbgpm"
LIBS="${LIBS} -lxlopt"
LDFLAGS=""
#LDFLAGS="${LDFLAGS} -O5"
LDFLAGS="${LDFLAGS} -L/opt/ibmcmp/xlf/bg/14.1/lib64"
LDFLAGS="${LDFLAGS} -L/opt/ibmcmp/xlsmp/bg/3.1/bglib64"
LDFLAGS="${LDFLAGS} -L/usr/local/bg_soft/lapack/3.3.0"
LDFLAGS="${LDFLAGS} -L/bgsys/ibm_essl/prod/opt/ibmmath/lib64"
LDFLAGS="${LDFLAGS} -L/bgsys/drivers/ppcfloor/spi/lib"
LDFLAGS="${LDFLAGS} -L/bgsys/drivers/ppcfloor/bgpm/lib/"
LDFLAGS="${LDFLAGS} -L/opt/ibmcmp/vac/bg/12.1/lib64"
#LDFLAGS="${LDFLAGS} -qipa=level=2"
#LDFLAGS="${LDFLAGS} -L/opt/ibmcmp/xlsmp/bg/3.1/bglib64"
#LDFLAGS="${LDFLAGS} -L/bgsys/ibm_essl/prod/opt/ibmmath/lib64"
#LDFLAGS="${LDFLAGS} -L/usr/local/bg_soft/lapack/3.3.0/lib"
#LDFLAGS="${LDFLAGS} -L/bgsys/local/lib/"
#LDFLAGS="${LDFLAGS} -L$HOME/usr/lib -lpapi"
module load lapack
LAPACK=""
LAPACK="${LAPACK} -L/bgsys/local/lib/"
LAPACK="${LAPACK} -L/usr/local/bg_soft/lapack/3.3.0/lib"
LAPACK="${LAPACK} -lesslbg"
LAPACK="${LAPACK} -llapack"
LAPACK="${LAPACK} -lesslbg"
LAPACK="${LAPACK} -lxlf90_r"
LAPACK="${LAPACK} -L/opt/ibmcmp/xlf/bg/14.1/lib64"
LAPACK="${LAPACK} -lxl"
LAPACK="${LAPACK} -lxlopt"
LAPACK="${LAPACK} -lxlf90_r"
LAPACK="${LAPACK} -lxlfmath"
LAPACK="${LAPACK} -L/opt/ibmcmp/xlsmp/bg/3.1/bglib64"
LAPACK="${LAPACK} -lxlsmp"
LAPACK="${LAPACK} -lpthread"
CONFIGURE=""
#CONFIGURE="${CONFIGURE} --with-alignment=32"
#CONFIGURE="${CONFIGURE} --with-fixedvolume"
CONFIGURE="${CONFIGURE} --without-bgldram"
CONFIGURE="${CONFIGURE} --with-limedir=${HOME}/lime"
CONFIGURE="${CONFIGURE} --with-lemondir=${HOME}/lemon"
CONFIGURE="${CONFIGURE} --enable-mpi"
CONFIGURE="${CONFIGURE} --with-mpidimension=XYZT"
CONFIGURE="${CONFIGURE} --enable-omp"
CONFIGURE="${CONFIGURE} --enable-gaugecopy"
CONFIGURE="${CONFIGURE} --enable-halfspinor"
#CONFIGURE="${CONFIGURE} --disable-halfspinor"
CONFIGURE="${CONFIGURE} --enable-largefile"
CONFIGURE="${CONFIGURE} --with-lapack="\"'${LAPACK}'\"
#CONFIGURE="${CONFIGURE} CC="\"'tau_cc.sh -tau_options=-optCompInst'\"
#CONFIGURE="${CONFIGURE} CC="\"'skin /bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r'\"
CONFIGURE="${CONFIGURE} CC=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r"
#CONFIGURE="${CONFIGURE} CC=/bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlc_r"
CONFIGURE="${CONFIGURE} F77=bgf77"
CONFIGURE="${CONFIGURE} FC=bgxlf_r"
CONFIGURE="${CONFIGURE} CPPFLAGS="\"'${CPPFLAGS}'\"
CONFIGURE="${CONFIGURE} CFLAGS="\"'${CFLAGS}'\"
CONFIGURE="${CONFIGURE} LIBS="\"'${LIBS}'\"
CONFIGURE="${CONFIGURE} LDFLAGS="\"'${LDFLAGS}'\"
CONFIGURE="${CONFIGURE} --enable-optimize=no"
CONFIGURE="${CONFIGURE} --enable-qpx"
CONFIGURE="${CONFIGURE} --enable-spi"
CONFIGURE="${CONFIGURE} --disable-sse2"
CONFIGURE="${CONFIGURE} --disable-sse3"
eval ./decho ${CONFIGURE}
echo
eval ./configure ${CONFIGURE}
echo
echo Making tmLQCD
make -j32 bgqbench benchmark invert hmc_tm