-
Notifications
You must be signed in to change notification settings - Fork 2
/
first
executable file
·131 lines (129 loc) · 5.76 KB
/
first
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
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Wrong syntax!"
echo "Usage: " $0 "LAM -> configure for LAM/MPI"
echo " " $0 "OPEN -> configure for OPEN MPI"
echo " " $0 "MPICH -> configure for MPICH"
echo " " $0 "CSCS -> configure for CSCS machine"
echo " " $0 "CSCS-DEBUG -> configure for CSCS debug mode"
echo " " $0 "WISTERIA -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "WISTERIA-DEBUG -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "WISTERIA-NOMPI -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "NOMPI -> configure without MPI"
echo " " $0 "INTEL -> configure for Intel-MPI with Intel compiler"
echo " " $0 "INTEL-MPI-DEBUG -> configure for Intel with debug mode, with MPI"
echo " " $0 "INTEL-DEBUG -> configure for Intel with debug mode wo MPI"
echo " " $0 "INTEL-PHI -> configure for Intel-phi"
else
if [ $1 = "LAM" ] || [ $1 = "OPEN" ]; then
touch README
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpicc CXX=mpiCC CXXFLAGS='-O3 -std=c++11'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "MPICH" ]; then
touch README
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpicc CXX=mpicxx CXXFLAGS='-O3 -std=c++11'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "CSCS" ]; then
touch README
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=cc CXX=CC CXXFLAGS='-O2 -std=c++11'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "CSCS-DEBUG" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=cc CXX=CC CXXFLAGS='-G02 -std=c++11'
#./configure CC=craycc CXX=crayCC CXXFLAGS='-O2 -std=c++11'
cd Src/Parallel; ln -f -s sequential.h mpi_macros.h; cd ../../
elif [ $1 = "WISTERIA" ]; then
aclocal
autoconf
autoheader
automake --add-missing
###./configure CC=mpifccpx CXX=mpiFCCpx CXXFLAGS='-Kfast -std=c++11' --host=aarch64-unknown-linux-gnu
./configure CC=mpifccpx CXX=mpiFCCpx CXXFLAGS='-O3 -Keval -Kfast_matmul -Kilfunc -Kmfunc -Ksimd_packed_promotion -Kfz -Kfp_contract -Komitfp -std=c++11' --host=aarch64-unknown-linux-gnu
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "WISTERIA-DEBUG" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpifccpx CXX=mpiFCCpx CXXFLAGS='-g -std=c++11' --host=aarch64-unknown-linux-gnu
###./configure CC=mpifccpx CXX=mpiFCCpx CXXFLAGS='-g -Kfast -std=c++11' --host=aarch64-unknown-linux-gnu
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "WISTERIA-NOMPI" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=fccpx CXX=FCCpx CXXFLAGS='-Kfast -std=c++11' --host=aarch64-unknown-linux-gnu
cd Src/Parallel; ln -f -s sequential.h mpi_macros.h; cd ../../
elif [ $1 = "NOMPI" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=gcc CXX=g++ CXXFLAGS='-O3 -std=c++11'
cd Src/Parallel; ln -f -s sequential.h mpi_macros.h; cd ../../
elif [ $1 = "INTEL" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpiicc CXX=mpiicpc CXXFLAGS='-O2 -std=c++11'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "INTEL-MPI-DEBUG" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpiicc CXX=mpiicpc CXXFLAGS='-g -w2 -std=c++11 -debug full -O0 -check=uninit -traceback -fstack-protector-all -fp-trap=common -fp-stack-check -check-pointers=rw'
#./configure CC=mpiicc CXX=mpiicpc CXXFLAGS='-O2 -std=c++11 -fstack-protector-all -fp-trap=common -fp-stack-check -check-pointers=rw'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
elif [ $1 = "INTEL-DEBUG" ]; then
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=icpc CXX=icpc CXXFLAGS='-g -w2 -std=c++11 -debug full -O0 -check=uninit -traceback -fstack-protector-all -fp-trap=common -fp-stack-check -check-pointers=rw'
cd Src/Parallel; ln -f -s sequential.h mpi_macros.h; cd ../../
elif [ $1 = "INTEL-PHI" ]; then
touch README
aclocal
autoconf
autoheader
automake --add-missing
./configure CC=mpiicc CXX=mpiicpc CXXFLAGS='-O2 -std=c++11 -mmic -no-offload -opt-threads-per-core=1'
cd Src/Parallel; ln -f -s parallel.h mpi_macros.h; cd ../../
else
echo "Wrong syntax!"
echo "Usage: " $0 "LAM -> to configure for LAM/MPI"
echo " " $0 "OPEN -> configure for OPEN MPI"
echo " " $0 "MPICH -> configure for MPICH"
echo " " $0 "CSCS -> configure for CSCS machine"
echo " " $0 "CSCS-DEBUG -> configure for CSCS debug mode"
echo " " $0 "WISTERIA -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "WISTERIA-DEBUG -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "WISTERIA-NOMPI -> configure for FUJITSU at WISTERIA machine"
echo " " $0 "NOMPI -> configure without MPI"
echo " " $0 "INTEL -> configure for Intel-MPI with Intel compiler"
echo " " $0 "INTEL-MPI-DEBUG -> configure for Intel with debug mode, with MPI"
echo " " $0 "INTEL-DEBUG -> configure for Intel with debug mode wo MPI"
echo " " $0 "INTEL-PHI -> configure for Intel-phi"
fi
fi
#------------------------------------------------------------------------------#
# '$Id: first,v 1.34 2017/04/11 09:50:09 sato Exp $'/
#------------------------------------------------------------------------------#