File: nrnbg.m4

package info (click to toggle)
neuron 7.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 48,268 kB
  • sloc: cpp: 192,952; ansic: 145,860; python: 42,092; sh: 10,507; makefile: 6,816; yacc: 3,259; java: 995; lex: 457; csh: 108; pascal: 37; sed: 5
file content (282 lines) | stat: -rw-r--r-- 9,145 bytes parent folder | download
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
AC_DEFUN([AC_NRN_BLUEGENE],[

AC_ARG_ENABLE([bluegene],
	AC_HELP_STRING([--enable-bluegene],[For BlueGene/L, supplies many extra configuration options]),[
	if test "$enable_bluegene" = "yes" ; then
		with_x="no"
		with_memacs="no"
		enable_shared="no"
		enable_pysetup="no"
		with_readline="no"
		java_dlopen="no"
		linux_nrnmech="no"
		if test x$with_nmodl_only != xyes ; then
			nmodl_build="no"
			if test "$BGLSYS" = "" ; then
				BGLSYS=/bgl/BlueLight/ppcfloor/bglsys
			fi
			if test "$CC" = "" ; then
				CC=blrts_xlc
			fi
			if test "$CXX" = "" ; then
				CXX=blrts_xlc++
			fi
			if test "$MPICC" = "" ; then
				MPICC=$CC
			fi
			if test "$MPICXX" = "" ; then
				MPICXX=$CXX
			fi
			if test "$OPTFLAGS" = "" ; then
				OPTFLAGS="-qarch=440d -qtune=440 -O3 -qstrict -qhot"
			fi
			if test "$CFLAGS" = "" ; then
				CFLAGS="$OPTFLAGS -g -I$BGLSYS/include"
			fi
			if test "$CXXFLAGS" = "" ; then
				CXXFLAGS=$CFLAGS
			fi
			if test "$BGL_LIBS" = "" ; then
				BGL_LIBS="-lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts -ldevices.rts -L/opt/ibmcmp/xlmass/bg/4.3/blrts_lib -lmass"
			fi
			if test "$BG_CHECKPOINT" = "yes" ; then
                        	NRN_DEFINE(BLUEGENE_CHECKPOINT,1,[enable the checkpointing on BlueGene hardware])
                        	BGL_LIBS = "-lchkpt.rts $BGL_LIBS"
                	fi
			if test "$LIBS" = "" ; then
				LIBS="-L$BGLSYS/lib $BGL_LIBS"
			fi
			am_cv_CC_dependencies_compiler_type=xlc
			am_cv_CXX_dependencies_compiler_type=xlc
		else
			nmodl_build="yes"
		fi
		always_call_mpi_init=yes
		if test "$file_open_retry" = "" ; then
			file_open_retry=1
		fi
		NRN_DEFINE(BLUEGENE,1,[define if cross compiling for IBM BlueGene])
	fi
])

AC_ARG_ENABLE([bluegeneP],
	AC_HELP_STRING([--enable-bluegeneP],[For BlueGene/P, supplies many extra configuration options]),[
	if test "$enable_bluegeneP" = "yes" ; then
		with_x="no"
		with_memacs="no"
		enable_pysetup="no"
		enable_shared="no"
		with_readline="no"
		java_dlopen="no"
		linux_nrnmech="no"
		if test x$with_nmodl_only != xyes ; then
			nmodl_build="no"
			if test "$BG_BASE" = "" ; then
				BG_BASE="/bgsys/drivers/ppcfloor/"
			fi
			if test "$BG_INCLUDE" = "" ; then
				BG_INCLUDE="-I$BG_BASE/comm/include -I$BG_BASE/arch/include"
			fi
			if test "$PYINCDIR" = "" ; then
				PYINCDIR="$BG_BASE/gnu-linux/include/python2.6"
			fi
			if test "$PYLIB" = "" ; then
				PYLIB="-L$BG_BASE/gnu-linux/lib -lpython2.6"
				PYLIBDIR="$BG_BASE/gnu-linux/lib"
				PYLIBLINK="-L$BG_BASE/gnu-linux/lib -lpython2.6"
			fi
			if test "$LIBS" = "" ; then
				LIBS='-lmass'
			fi
			if test "$LDFLAGS" = "" ; then
				LDFLAGS='-qsmp -qnostaticlink'
			fi
			if test "$with_multisend" = "" ; then
				with_multisend=bgp
			fi
			if test "$CC" = "" ; then
				CC=mpixlc
			fi
			if test "$CXX" = "" ; then
				CXX=mpixlcxx
			fi
			if test "$MPICC" = "" ; then
				MPICC=$CC
			fi
			if test "$MPICXX" = "" ; then
				MPICXX=$CXX
			fi
			if test "$OPTFLAGS" = "" ; then
				OPTFLAGS="-O3 -qarch=450d"
			fi
			if test "$CFLAGS" = "" ; then
				CFLAGS="$OPTFLAGS $BG_INCLUDE"
			fi
			if test "$CXXFLAGS" = "" ; then
				CXXFLAGS=$CFLAGS
			fi
			if test "$BG_CHECKPOINT" = "yes" ; then
                        	NRN_DEFINE(BLUEGENE_CHECKPOINT,1,[enable the checkpointing on BlueGene hardware])
                        	BGL_LIBS = "-lchkpt.rts $BGL_LIBS"
                	fi
			if test "$deptype" = "" ; then
				am_cv_CC_dependencies_compiler_type=xlc
				am_cv_CXX_dependencies_compiler_type=xlc
			fi
		else
			nmodl_build="yes"
		fi
		always_call_mpi_init=yes
		if test "$file_open_retry" = "" ; then
			file_open_retry=1
		fi
		NRN_DEFINE(BLUEGENE,1,[define if cross compiling for IBM BlueGene L or P])
		NRN_DEFINE(BLUEGENEP,1,[define if cross compiling for IBM BlueGene/P])
	fi
])

AC_ARG_ENABLE([bgPlinux],
	AC_HELP_STRING([--enable-bgPlinux],[For BlueGene/P mpicc, supplies many extra configuration options]),[
	if test "$enable_bgPlinux" = "yes" ; then
		with_x="no"
		with_memacs="no"
#		enable_shared="no"
		enable_pysetup="no"
		with_readline="no"
		java_dlopen="no"
		linux_nrnmech="no"
		if test x$with_nmodl_only != xyes ; then
			nmodl_build="no"
			if test "$BG_BASE" = "" ; then
				BG_BASE="/bgsys/drivers/ppcfloor"
			fi
			BG_INCLUDE="-I$BG_BASE/comm/include -I$BG_BASE/arch/include"
			if test "$PYINCDIR" = "" ; then
				PYINCDIR="$BG_BASE/gnu-linux/include/python2.5"
			fi
			if test "$PYLIB" = "" ; then
				PYLIB="-L$BG_BASE/gnu-linux/lib -lpython2.5"
				PYLIBDIR="$BG_BASE/gnu-linux/lib"
				PYLIBLINK="-L$BG_BASE/gnu-linux/lib -lpython2.5"
			fi
			if test "$with_multisend" = "" ; then
				with_multisend=bgp
			fi
			if test "$CC" = "" ; then
				CC=mpicc
			fi
			if test "$CXX" = "" ; then
				CXX=mpicxx
			fi
			if test "$MPICC" = "" ; then
				MPICC=$CC
			fi
			if test "$MPICXX" = "" ; then
				MPICXX=$CXX
			fi
			if test "$OPTFLAGS" = "" ; then
				OPTFLAGS="-O3 -g"
			fi
			if test "$CFLAGS" = "" ; then
				CFLAGS="$OPTFLAGS $BG_INCLUDE"
			fi
			if test "$CXXFLAGS" = "" ; then
				CXXFLAGS=$CFLAGS
			fi
			if test "$BG_CHECKPOINT" = "yes" ; then
                        	NRN_DEFINE(BLUEGENE_CHECKPOINT,1,[enable the checkpointing on BlueGene hardware])
                        	BGL_LIBS = "-lchkpt.rts $BGL_LIBS"
                	fi
#			if test "$LDFLAGS" = "" ; then
#				LDFLAGS="-shared"
#			fi
		else
			nmodl_build="yes"
		fi
		always_call_mpi_init=yes
		if test "$file_open_retry" = "" ; then
			file_open_retry=1
		fi
		NRN_DEFINE(BLUEGENE,1,[define if cross compiling for IBM BlueGene L or P])
		NRN_DEFINE(BLUEGENEP,1,[define if cross compiling for IBM BlueGene/P])
	fi
])

AC_ARG_ENABLE([bluegeneQ],
        AC_HELP_STRING([--enable-bluegeneQ],[For BlueGene/Q, supplies many extra configuration options]),[
        if test "$enable_bluegeneQ" = "yes" ; then
                with_x="no"
                with_memacs="no"
                enable_shared="no"                
		enable_pysetup="no"
                with_readline="no"
                java_dlopen="no"
                linux_nrnmech="no"
                if test x$with_nmodl_only != xyes ; then
                        nmodl_build="no"
                        if test "$BG_BASE" = "" ; then
                                BG_BASE="/bgsys/drivers/ppcfloor/"
                        fi
                        if test "$BG_INCLUDE" = "" ; then
                                BG_INCLUDE="-I$BG_BASE/comm/include -I$BG_BASE/arch/include"
                        fi
			PYBASE=$BG_BASE/tools/python/bldsrc-2.6.7/Python-2.6.7
                        if test "$PYINCDIR" = "" ; then
                                PYINCDIR="$PYBASE/Include -I$PYBASE"
                        fi
                        if test "$PYLIB" = "" ; then
				PYLIB="-L$PYBASE -lpython2.6"
				PYLIBDIR="$PYBASE"
				PYLIBLINK="$PYLIB"
                        fi
                        if test "$LIBS" = "" ; then
                                LIBS='-lmass'
                        fi
                        if test "$LDFLAGS" = "" ; then
                                LDFLAGS='-qsmp -qnostaticlink'
                        fi
                        if test "$with_multisend" = "" ; then
                                with_multisend=yes
                        fi
                        if test "$CC" = "" ; then
                                CC=mpixlc
                        fi
                        if test "$CXX" = "" ; then
                                CXX=mpixlcxx
                        fi
                        if test "$MPICC" = "" ; then
                                MPICC=$CC
                        fi
                        if test "$MPICXX" = "" ; then
                                MPICXX=$CXX
                        fi
                        if test "$OPTFLAGS" = "" ; then
                                OPTFLAGS="-O3 -qarch=qp -q64 -qstrict -qnohot"
                        fi
                        if test "$CFLAGS" = "" ; then
                                CFLAGS="$OPTFLAGS $BG_INCLUDE"
                        fi
                        if test "$CXXFLAGS" = "" ; then
                                CXXFLAGS=$CFLAGS
                        fi
                        if test "$BG_CHECKPOINT" = "yes" ; then
                                NRN_DEFINE(BLUEGENE_CHECKPOINT,1,[enable the checkpointing on BlueGene hardware])
                                BGL_LIBS = "-lchkpt.rts $BGL_LIBS"
                        fi
                        if test "$deptype" = "" ; then
                                am_cv_CC_dependencies_compiler_type=xlc
                                am_cv_CXX_dependencies_compiler_type=xlc
                        fi
                else
                        nmodl_build="yes"
                fi
                always_call_mpi_init=yes
                if test "$file_open_retry" = "" ; then
                        file_open_retry=1
                fi
                NRN_DEFINE(BLUEGENE,1,[define if cross compiling for IBM BlueGene L or P])
                NRN_DEFINE(BLUEGENEQ,1,[define if cross compiling for IBM BlueGene/Q])
        fi
])

]) dnl end of AC_NRN_BLUEGENE