-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-x86.sh
executable file
·92 lines (73 loc) · 2.38 KB
/
build-x86.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
#! /bin/sh
ROOTPATH=`pwd`
cd $ROOTPATH
echo
echo Configure tmLQCD.....
CPPFLAGS=""
CPPFLAGS="${CPPFLAGS} -I/usr/include/openmpi"
#CPPFLAGS="${CPPFLAGS} -DNDEBUG=1"
CPPFLAGS="${CPPFLAGS} -DNVALGRIND=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_QPX=0"
#CPPFLAGS="${CPPFLAGS} -DBGQ=1"
#CPPFLAGS="${CPPFLAGS} -DXLC=1"
#CPPFLAGS="${CPPFLAGS} -DBGQ_HM_NOKAMUL=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_PREFETCH_EXPLICIT=0"
CPPFLAGS="${CPPFLAGS} -DBGQ_PREFETCH_STREAM=0"
CPPFLAGS="${CPPFLAGS} -DBGQ_PREFETCH_LIST=0"
#CPPFLAGS="${CPPFLAGS} -DBGQ_COORDCHECK=1"
CPPFLAGS="${CPPFLAGS} -DMPI=1"
#CPPFLAGS="${CPPFLAGS} -DXLC=1"
#CPPFLAGS="${CPPFLAGS} -DBGQ_HM_CARRY=1"
CPPFLAGS="${CPPFLAGS} -DBGQ_REPLACE=0"
CPPFLAGS="${CPPFLAGS} -DPAPI=0"
CPPFLAGS="${CPPFLAGS} -DBGQ_UNVECTORIZE=1"
#CPPFLAGS="${CPPFLAGS} -DBGQ_REFCOMPARE=1"
CFLAGS=""
CFLAGS="${CFLAGS} -g"
CFLAGS="${CFLAGS} -O0"
#CFLAGS="${CFLAGS} -O2"
CFLAGS="${CFLAGS} -ffast-math"
CFLAGS="${CFLAGS} -fopenmp"
CFLAGS="${CFLAGS} -Wall"
CFLAGS="${CFLAGS} -Wundef"
LIBS=""
LIBS="${LIBS} -lgomp"
LIBS="${LIBS} -lblas"
#LIBS="${LIBS} -lefence"
LDFLAGS=""
#module load lapack
LAPACK=""
LAPACK="${LAPACK} -llapack"
CONFIGURE=""
#CONFIGURE="${CONFIGURE} --with-alignment=32"
#CONFIGURE="${CONFIGURE} --with-fixedvolume"
CONFIGURE="${CONFIGURE} --without-bgldram"
CONFIGURE="${CONFIGURE} --with-limedir=${ROOTPATH}/lime"
#CONFIGURE="${CONFIGURE} --with-lemondir=${ROOTPATH}/lemon"
CONFIGURE="${CONFIGURE} --enable-mpi"
CONFIGURE="${CONFIGURE} --with-mpidimension=XYZT"
#CONFIGURE="${CONFIGURE} --enable-omp"
CONFIGURE="${CONFIGURE} --disable-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=mpicc"
#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} --disable-qpx"
CONFIGURE="${CONFIGURE} --disable-spi"
CONFIGURE="${CONFIGURE} --disable-sse2"
CONFIGURE="${CONFIGURE} --disable-sse3"
eval ./decho ${CONFIGURE}
echo
eval ./configure ${CONFIGURE}
echo
echo Making tmLQCD
make -j4 bgqbench benchmark invert hmc_tm