/[escript]/trunk/SConstruct
ViewVC logotype

Annotation of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7011 - (hide annotations)
Wed Jul 22 04:13:34 2020 UTC (2 weeks ago) by uqaeller
File size: 34453 byte(s)
Prototype for the builtin MUMPS solver.


1 jfenwick 3982 ##############################################################################
2 jgs 214 #
3 jfenwick 6651 # Copyright (c) 2003-2018 by The University of Queensland
4 jfenwick 3982 # http://www.uq.edu.au
5 ksteube 1811 #
6     # Primary Business: Queensland, Australia
7 jfenwick 6112 # Licensed under the Apache License, version 2.0
8     # http://www.apache.org/licenses/LICENSE-2.0
9 ksteube 1811 #
10 jfenwick 3982 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
11 jfenwick 4657 # Development 2012-2013 by School of Earth Sciences
12     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
13 jfenwick 3982 #
14     ##############################################################################
15 jgs 455
16 jfenwick 3259 EnsureSConsVersion(0,98,1)
17     EnsurePythonVersion(2,5)
18 ksteube 1811
19 caltinay 4295 import atexit, sys, os, platform, re
20 jfenwick 3259 from distutils import sysconfig
21 caltinay 4295 from dependencies import *
22 jfenwick 3259 from site_init import *
23 jgs 214
24 gross 6702 print(sys.version)
25    
26 jfenwick 3259 # Version number to check for in options file. Increment when new features are
27     # added or existing options changed.
28 caltinay 6241 REQUIRED_OPTS_VERSION=203
29 ksteube 1705
30     # MS Windows support, many thanks to PH
31 jfenwick 3259 IS_WINDOWS = (os.name == 'nt')
32 gross 806
33 uqaeller 7011 if IS_WINDOWS:
34     IS_OSX = False
35     else:
36     IS_OSX = (os.uname()[0] == 'Darwin')
37 jfenwick 4640
38 jfenwick 3259 ########################## Determine options file ############################
39     # 1. command line
40     # 2. scons/<hostname>_options.py
41     # 3. name as part of a cluster
42 jfenwick 2391 options_file=ARGUMENTS.get('options_file', None)
43     if not options_file:
44 jfenwick 3259 ext_dir = os.path.join(os.getcwd(), 'scons')
45     hostname = platform.node().split('.')[0]
46     for name in hostname, effectiveName(hostname):
47     mangledhostname = re.sub('[^0-9a-zA-Z]', '_', hostname)
48     options_file = os.path.join(ext_dir, mangledhostname+'_options.py')
49     if os.path.isfile(options_file): break
50 jfenwick 2391
51 ksteube 1866 if not os.path.isfile(options_file):
52 jfenwick 3259 print("\nWARNING:\nOptions file %s" % options_file)
53     print("not found! Default options will be used which is most likely suboptimal.")
54 jfenwick 5601 print("We recommend that you copy the most relavent options file in the scons/template/")
55 jfenwick 3259 print("subdirectory and customize it to your needs.\n")
56     options_file = None
57 ksteube 1217
58 jfenwick 3259 ############################### Build options ################################
59 gross 1149
60 jfenwick 3259 default_prefix='/usr'
61 jfenwick 3618 mpi_flavours=('no', 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI')
62 jfenwick 6509 netcdf_flavours = ('no', 'off', 'none', 'False', # Must be last of the false alternatives
63     'yes', 'on', 'True', '3', # Must be last of the version 3 alternatives
64     '4')
65 caltinay 6119 all_domains = ['dudley','finley','ripley','speckley']
66 jfenwick 2430
67 jfenwick 5589 #Note that scons construction vars the the following purposes:
68     # CPPFLAGS -> to the preprocessor
69     # CCFLAGS -> flags for _both_ C and C++
70     # CXXFLAGS -> flags for c++ _only_
71     # CFLAGS -> flags for c only
72    
73 jfenwick 3259 vars = Variables(options_file, ARGUMENTS)
74     vars.AddVariables(
75     PathVariable('options_file', 'Path to options file', options_file, PathVariable.PathIsFile),
76     PathVariable('prefix', 'Installation prefix', Dir('#.').abspath, PathVariable.PathIsDirCreate),
77 caltinay 3349 PathVariable('build_dir', 'Top-level build directory', Dir('#/build').abspath, PathVariable.PathIsDirCreate),
78 jfenwick 3259 BoolVariable('verbose', 'Output full compile/link lines', False),
79     # Compiler/Linker options
80     ('cxx', 'Path to C++ compiler', 'default'),
81 jfenwick 5589 ('cc_flags', 'Base (C and C++) compiler flags', 'default'),
82     ('cc_optim', 'Additional (C and C++) flags for a non-debug build', 'default'),
83     ('cc_debug', 'Additional (C and C++) flags for a debug build', 'default'),
84 caltinay 2967 ('cxx_extra', 'Extra C++ compiler flags', ''),
85 ksteube 1771 ('ld_extra', 'Extra linker flags', ''),
86 jfenwick 3259 BoolVariable('werror','Treat compiler warnings as errors', True),
87     BoolVariable('debug', 'Compile with debug flags', False),
88     BoolVariable('openmp', 'Compile parallel version using OpenMP', False),
89     ('omp_flags', 'OpenMP compiler flags', 'default'),
90     ('omp_ldflags', 'OpenMP linker flags', 'default'),
91     # Mandatory libraries
92     ('boost_prefix', 'Prefix/Paths of boost installation', default_prefix),
93 jfenwick 3338 ('boost_libs', 'Boost libraries to link with', ['boost_python-mt']),
94 caltinay 3597 # Mandatory for tests
95     ('cppunit_prefix', 'Prefix/Paths of CppUnit installation', default_prefix),
96     ('cppunit_libs', 'CppUnit libraries to link with', ['cppunit']),
97 jfenwick 3259 # Optional libraries and options
98     EnumVariable('mpi', 'Compile parallel version using MPI flavour', 'none', allowed_values=mpi_flavours),
99     ('mpi_prefix', 'Prefix/Paths of MPI installation', default_prefix),
100     ('mpi_libs', 'MPI shared libraries to link with', ['mpi']),
101 aellery 6824 BoolVariable('use_gmsh', 'Enable gmsh, if available', True),
102 jfenwick 6509 EnumVariable('netcdf', 'Enable netCDF file support', False, allowed_values=netcdf_flavours),
103 jfenwick 3259 ('netcdf_prefix', 'Prefix/Paths of netCDF installation', default_prefix),
104 jfenwick 6509 ('netcdf_libs', 'netCDF libraries to link with', 'DEFAULT'),
105 jfenwick 3259 BoolVariable('parmetis', 'Enable ParMETIS (requires MPI)', False),
106     ('parmetis_prefix', 'Prefix/Paths of ParMETIS installation', default_prefix),
107     ('parmetis_libs', 'ParMETIS libraries to link with', ['parmetis', 'metis']),
108     BoolVariable('mkl', 'Enable the Math Kernel Library', False),
109     ('mkl_prefix', 'Prefix/Paths to MKL installation', default_prefix),
110     ('mkl_libs', 'MKL libraries to link with', ['mkl_solver','mkl_em64t','guide','pthread']),
111     BoolVariable('umfpack', 'Enable UMFPACK', False),
112     ('umfpack_prefix', 'Prefix/Paths to UMFPACK installation', default_prefix),
113     ('umfpack_libs', 'UMFPACK libraries to link with', ['umfpack']),
114 uqaeller 7011 BoolVariable('mumps', 'Enable MUMPS', False),
115     ('mumps_prefix', 'Prefix/Paths to MUMPS installation', default_prefix),
116     ('mumps_libs', 'MUMPS libraries to link with', ['mumps_common','pord','dmumps','zmumps',
117     'mpiseq','lapack','metis','scotch','esmumps','gfortran']),
118 caltinay 6247 TristateVariable('lapack', 'Enable LAPACK', 'auto'),
119 jfenwick 3259 ('lapack_prefix', 'Prefix/Paths to LAPACK installation', default_prefix),
120     ('lapack_libs', 'LAPACK libraries to link with', []),
121     BoolVariable('silo', 'Enable the Silo file format in weipa', False),
122     ('silo_prefix', 'Prefix/Paths to Silo installation', default_prefix),
123 caltinay 2184 ('silo_libs', 'Silo libraries to link with', ['siloh5', 'hdf5']),
124 caltinay 6119 BoolVariable('trilinos', 'Enable the Trilinos solvers', False),
125     ('trilinos_prefix', 'Prefix/Paths to Trilinos installation', default_prefix),
126     ('trilinos_libs', 'Trilinos libraries to link with', []),
127 jfenwick 3259 BoolVariable('visit', 'Enable the VisIt simulation interface', False),
128     ('visit_prefix', 'Prefix/Paths to VisIt installation', default_prefix),
129     ('visit_libs', 'VisIt libraries to link with', ['simV2']),
130 caltinay 6119 ListVariable('domains', 'Which domains to build', 'all', all_domains),
131     BoolVariable('paso', 'Build Paso solver library', True),
132     BoolVariable('weipa', 'Build Weipa data export library', True),
133 jfenwick 6682 ('mathjax_path', 'Path to MathJax.js file', 'default'),
134 jfenwick 3259 # Advanced settings
135 caltinay 5266 ('launcher', 'Launcher command (e.g. mpirun)', 'default'),
136     ('prelaunch', 'Command to execute before launcher (e.g. mpdboot)', 'default'),
137     ('postlaunch', 'Command to execute after launcher (e.g. mpdexit)', 'default'),
138 jfenwick 3259 #dudley_assemble_flags = -funroll-loops to actually do something
139     ('dudley_assemble_flags', 'compiler flags for some dudley optimisations', ''),
140     # To enable passing function pointers through python
141     BoolVariable('iknowwhatimdoing', 'Allow non-standard C', False),
142 caltinay 5266 # An option for specifying the compiler tools
143 jfenwick 3259 ('tools_names', 'Compiler tools to use', ['default']),
144     ('env_export', 'Environment variables to be passed to tools',[]),
145 caltinay 6297 TristateVariable('forcelazy', 'For testing use only - set the default value for autolazy', 'auto'),
146     TristateVariable('forcecollres', 'For testing use only - set the default value for force resolving collective ops', 'auto'),
147 caltinay 6241 BoolVariable('build_shared', '(deprecated option, ignored)', True),
148 jfenwick 3259 ('sys_libs', 'Extra libraries to link with', []),
149     ('escript_opts_version', 'Version of options file (do not specify on command line)'),
150 jfenwick 3618 ('SVN_VERSION', 'Do not use from options file', -2),
151 caltinay 6241 ('pythoncmd', 'which python to compile with', sys.executable),
152 jfenwick 3892 ('pythonlibname', 'Name of the python library to link. (This is found automatically for python2.X.)', ''),
153 jfenwick 3942 ('pythonlibpath', 'Path to the python library. (You should not need to set this unless your python has moved)',''),
154     ('pythonincpath','Path to python include files. (You should not need to set this unless your python has moved',''),
155 caltinay 5250 BoolVariable('longindices', 'use long indices (for very large matrices)', False),
156 sshaw 4738 BoolVariable('compressed_files','Enables reading from compressed binary files', True),
157 caltinay 5250 ('compression_libs', 'Compression libraries to link with', ['boost_iostreams']),
158 uqaeller 6944 BoolVariable('disable_boost_numpy', 'Do not build using boost_numpy, even if it is available', False),
159 jfenwick 6493 BoolVariable('osx_dependency_fix', 'Fix dependencies for libraries to have absolute paths (OSX)', False),
160 jfenwick 6573 BoolVariable('stdlocationisprefix', 'Set the prefix as escript root in the launcher', False),
161 aellery 6722 BoolVariable('mpi_no_host', 'Do not specify --host in run-escript launcher (only OPENMPI)', False),
162     BoolVariable('insane', 'Instructs scons to not run a sanity check after compilation.', False)
163 robwdcock 682 )
164 phornby 1232
165 jfenwick 3259 ##################### Create environment and help text #######################
166 jfenwick 3078
167 jfenwick 3259 # Intel's compiler uses regular expressions improperly and emits a warning
168     # about failing to find the compilers. This warning can be safely ignored.
169 jfenwick 3078
170 caltinay 3319 # PATH is needed so the compiler, linker and tools are found if they are not
171     # in default locations.
172     env = Environment(tools = ['default'], options = vars,
173     ENV = {'PATH': os.environ['PATH']})
174 jfenwick 3967
175 caltinay 4295 # set the vars for clang
176 jfenwick 3967 def mkclang(env):
177 caltinay 4295 env['CXX']='clang++'
178    
179 jfenwick 6510 if env['tools_names'] != ['default']:
180     zz=env['tools_names']
181     if 'clang' in zz:
182     zz.remove('clang')
183     zz.insert(0, mkclang)
184     env = Environment(tools = ['default'] + env['tools_names'], options = vars,
185     ENV = {'PATH' : os.environ['PATH']})
186    
187 jfenwick 6509 # Covert env['netcdf'] into one of False, 3, 4
188     # Also choose default values for libraries
189     pos1=netcdf_flavours.index('False')
190     pos2=netcdf_flavours.index('3')
191     mypos=netcdf_flavours.index(env['netcdf'])
192     if 0 <= mypos <=pos1:
193 jfenwick 6510 env['netcdf']=0
194 jfenwick 6509 elif pos1 < mypos <= pos2:
195     env['netcdf']=3
196     if env['netcdf_libs']=='DEFAULT':
197     env['netcdf_libs']=['netcdf_c++', 'netcdf']
198     else: # netcdf4
199     env['netcdf']=4
200     if env['netcdf_libs']=='DEFAULT':
201     env['netcdf_libs']=['netcdf_c++4']
202 jfenwick 3078
203 jfenwick 3259 if options_file:
204     opts_valid=False
205     if 'escript_opts_version' in env.Dictionary() and \
206     int(env['escript_opts_version']) >= REQUIRED_OPTS_VERSION:
207     opts_valid=True
208     if opts_valid:
209     print("Using options in %s." % options_file)
210     else:
211     print("\nOptions file %s" % options_file)
212 caltinay 6241 print("is outdated! Please update the file after reading scons/templates/README_FIRST")
213     print("and setting escript_opts_version to %d.\n"%REQUIRED_OPTS_VERSION)
214 jfenwick 3259 Exit(1)
215 jfenwick 3078
216 jfenwick 3259 # Generate help text (scons -h)
217     Help(vars.GenerateHelpText(env))
218 jfenwick 3078
219 jfenwick 3259 # Check for superfluous options
220 caltinay 3268 if len(vars.UnknownVariables())>0:
221     for k in vars.UnknownVariables():
222     print("Unknown option '%s'" % k)
223     Exit(1)
224 jfenwick 3078
225 sshaw 5381 if 'dudley' in env['domains']:
226     env['domains'].append('finley')
227    
228 caltinay 6119 env['domains'] = sorted(set(env['domains']))
229    
230 caltinay 4295 # create dictionary which will be populated with info for buildvars file
231 caltinay 6119 env['buildvars'] = {}
232 caltinay 4295 # create list which will be populated with warnings if there are any
233 caltinay 6119 env['warnings'] = []
234 caltinay 4295
235 jfenwick 3259 #################### Make sure install directories exist #####################
236 ksteube 1705
237 caltinay 6119 env['BUILD_DIR'] = Dir(env['build_dir']).abspath
238     prefix = Dir(env['prefix']).abspath
239     env['buildvars']['prefix'] = prefix
240 jfenwick 3259 env['incinstall'] = os.path.join(prefix, 'include')
241     env['bininstall'] = os.path.join(prefix, 'bin')
242     env['libinstall'] = os.path.join(prefix, 'lib')
243     env['pyinstall'] = os.path.join(prefix, 'esys')
244 jfenwick 2604 if not os.path.isdir(env['bininstall']):
245     os.makedirs(env['bininstall'])
246     if not os.path.isdir(env['libinstall']):
247     os.makedirs(env['libinstall'])
248     if not os.path.isdir(env['pyinstall']):
249     os.makedirs(env['pyinstall'])
250    
251 jfenwick 3259 env.Append(CPPPATH = [env['incinstall']])
252     env.Append(LIBPATH = [env['libinstall']])
253 jfenwick 2603
254 jfenwick 3259 ################# Fill in compiler options if not set above ##################
255 ksteube 1312
256 caltinay 6119 if env['cxx'] != 'default':
257     env['CXX'] = env['cxx']
258 gross 1024
259 jfenwick 3259 # default compiler/linker options
260 caltinay 6287 cc_flags = '-std=c++11'
261 jfenwick 3259 cc_optim = ''
262     cc_debug = ''
263     omp_flags = ''
264     omp_ldflags = ''
265     fatalwarning = '' # switch to turn warnings into errors
266     sysheaderopt = '' # how to indicate that a header is a system header
267 jfenwick 2130
268 jfenwick 3259 # env['CC'] might be a full path
269 caltinay 4520 cc_name=os.path.basename(env['CXX'])
270 caltinay 2882
271 caltinay 4520 if cc_name == 'icpc':
272 jfenwick 3259 # Intel compiler
273 caltinay 6010 # #1478: class "std::auto_ptr<...>" was declared deprecated
274 caltinay 4090 # #1875: offsetof applied to non-POD types is nonstandard (in boost)
275 jfenwick 4542 # removed -std=c99 because icpc doesn't like it and we aren't using c anymore
276 caltinay 6010 cc_flags = "-std=c++11 -fPIC -w2 -wd1875 -wd1478 -Wno-unknown-pragmas"
277 aellery 6723 cc_optim = "-Ofast -ftz -fno-alias -xCORE-AVX2 -ipo"
278 gross 6702 #cc_optim = "-Ofast -ftz -fno-alias -inline-level=2 -ipo -xCORE-AVX2"
279     #cc_optim = "-O2 -ftz -fno-alias -inline-level=2"
280     #cc_optim = "-O0 -ftz -fno-alias"
281     #cc_optim = "-O3 -ftz -fno-alias -inline-level=2 -ipo -xHost"
282 jfenwick 6098 cc_debug = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK -DSLOWSHARECHECK"
283 jfenwick 6404 omp_flags = "-qopenmp"
284     omp_ldflags = "-qopenmp" # removing -openmp-report (which is deprecated) because the replacement outputs to a file
285 jfenwick 3259 fatalwarning = "-Werror"
286 caltinay 4520 elif cc_name[:3] == 'g++':
287 caltinay 5250 # GNU C++ on any system
288 caltinay 4173 # note that -ffast-math is not used because it breaks isnan(),
289     # see mantis #691
290 aellery 6786 cc_flags = "-std=c++11 -pedantic -Wall -fPIC -finline-functions"
291 aellery 6799 cc_flags += " -Wno-unknown-pragmas -Wno-sign-compare -Wno-system-headers -Wno-long-long -Wno-strict-aliasing "
292 aellery 7002 cc_flags += " -Wno-stringop-truncation -Wno-deprecated-declarations --param=max-vartrack-size=100000000"
293 jfenwick 3259 cc_optim = "-O3"
294 caltinay 5250 #max-vartrack-size: avoid vartrack limit being exceeded with escriptcpp.cpp
295 jfenwick 6501 cc_debug = "-g3 -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK -DSLOWSHARECHECK --param=max-vartrack-size=100000000"
296     #Removed because new netcdf doesn't seem to like it
297 aellery 6898 #cc_debug += ' -D_GLIBCXX_DEBUG '
298 jfenwick 3259 omp_flags = "-fopenmp"
299     omp_ldflags = "-fopenmp"
300     fatalwarning = "-Werror"
301     sysheaderopt = "-isystem"
302     elif cc_name == 'cl':
303     # Microsoft Visual C on Windows
304     cc_flags = "/EHsc /MD /GR /wd4068 /D_USE_MATH_DEFINES /DDLL_NETCDF"
305     cc_optim = "/O2 /Op /W3"
306     cc_debug = "/Od /RTCcsu /ZI /DBOUNDS_CHECK"
307     fatalwarning = "/WX"
308     elif cc_name == 'icl':
309     # Intel C on Windows
310     cc_flags = '/EHsc /GR /MD'
311     cc_optim = '/fast /Oi /W3 /Qssp /Qinline-factor- /Qinline-min-size=0 /Qunroll'
312     cc_debug = '/Od /RTCcsu /Zi /Y- /debug:all /Qtrapuv'
313     omp_flags = '/Qvec-report0 /Qopenmp /Qopenmp-report0 /Qparallel'
314     omp_ldflags = '/Qvec-report0 /Qopenmp /Qopenmp-report0 /Qparallel'
315 aellery 6788 elif cc_name == 'clang++':
316     # Clang++ on any system
317 aellery 6879 cc_flags = "-std=c++11 -Wall -fPIC -fdiagnostics-color=always -Wno-uninitialized "
318 aellery 6791 cc_flags += "-Wno-unused-private-field -Wno-unknown-pragmas "
319 aellery 6799 if env['trilinos'] is True:
320     cc_flags += "-Wno-unused-variable -Wno-exceptions -Wno-deprecated-declarations"
321 aellery 6788 cc_optim = "-O3"
322     cc_debug = "-ggdb3 -O0 -fdiagnostics-fixit-info -pedantic "
323     cc_debug += "-DDOASSERT -DDOPROF -DBOUNDS_CHECK -DSLOWSHARECHECK "
324     omp_flags = "-fopenmp"
325     omp_ldflags = "-fopenmp"
326     fatalwarning = "-Werror"
327     sysheaderopt = "-isystem"
328 phornby 1243
329 caltinay 4295 env['sysheaderopt']=sysheaderopt
330    
331 jfenwick 3259 # set defaults if not otherwise specified
332     if env['cc_flags'] == 'default': env['cc_flags'] = cc_flags
333     if env['cc_optim'] == 'default': env['cc_optim'] = cc_optim
334     if env['cc_debug'] == 'default': env['cc_debug'] = cc_debug
335     if env['omp_flags'] == 'default': env['omp_flags'] = omp_flags
336     if env['omp_ldflags'] == 'default': env['omp_ldflags'] = omp_ldflags
337     if env['cxx_extra'] != '': env.Append(CXXFLAGS = env['cxx_extra'])
338     if env['ld_extra'] != '': env.Append(LINKFLAGS = env['ld_extra'])
339 jfenwick 2130
340 caltinay 5183 if env['longindices']:
341 aellery 6844 if env['paso']:
342 caltinay 5183 env.Append(CPPDEFINES = ['ESYS_INDEXTYPE_LONG'])
343 aellery 6844 else:
344     env['warnings'].append("The longindices feature requires paso!")
345 caltinay 5183
346 jfenwick 3259 # set up the autolazy values
347 caltinay 6297 if env['forcelazy'] == 1:
348 jfenwick 3259 env.Append(CPPDEFINES=['FAUTOLAZYON'])
349 caltinay 6297 elif env['forcelazy'] == 0:
350 jfenwick 3259 env.Append(CPPDEFINES=['FAUTOLAZYOFF'])
351 ksteube 1312
352 jfenwick 3259 # set up the collective resolve values
353 caltinay 6297 if env['forcecollres'] == 1:
354 jfenwick 3259 env.Append(CPPDEFINES=['FRESCOLLECTON'])
355 caltinay 6297 elif env['forcecollres'] == 0:
356 jfenwick 3259 env.Append(CPPDEFINES=['FRESCOLLECTOFF'])
357 jfenwick 2273
358 jfenwick 3259 # allow non-standard C if requested
359 jfenwick 2827 if env['iknowwhatimdoing']:
360 jfenwick 3259 env.Append(CPPDEFINES=['IKNOWWHATIMDOING'])
361 jfenwick 2827
362 jfenwick 3259 # Disable OpenMP if no flags provided
363     if env['openmp'] and env['omp_flags'] == '':
364 caltinay 4295 env['warnings'].append("OpenMP requested but no flags provided - disabling OpenMP!")
365 jfenwick 3259 env['openmp'] = False
366 gross 1160
367 jfenwick 3259 if env['openmp']:
368     env.Append(CCFLAGS = env['omp_flags'])
369     if env['omp_ldflags'] != '': env.Append(LINKFLAGS = env['omp_ldflags'])
370     else:
371     env['omp_flags']=''
372     env['omp_ldflags']=''
373 ksteube 1312
374 caltinay 4295 env['buildvars']['openmp']=int(env['openmp'])
375    
376 jfenwick 3259 # add debug/non-debug compiler flags
377 caltinay 4295 env['buildvars']['debug']=int(env['debug'])
378 jfenwick 3259 if env['debug']:
379     env.Append(CCFLAGS = env['cc_debug'])
380 gross 2423 else:
381 jfenwick 3259 env.Append(CCFLAGS = env['cc_optim'])
382 gross 1163
383 jfenwick 3259 # always add cc_flags
384     env.Append(CCFLAGS = env['cc_flags'])
385 phornby 1243
386 jfenwick 3259 # add system libraries
387     env.AppendUnique(LIBS = env['sys_libs'])
388 gross 2363
389 caltinay 4295 # determine svn revision
390 jfenwick 3618 global_revision=ARGUMENTS.get('SVN_VERSION', None)
391     if global_revision:
392     global_revision = re.sub(':.*', '', global_revision)
393     global_revision = re.sub('[^0-9]', '', global_revision)
394     if global_revision == '': global_revision='-2'
395     else:
396     # Get the global Subversion revision number for the getVersion() method
397     try:
398 jfenwick 3259 global_revision = os.popen('svnversion -n .').read()
399     global_revision = re.sub(':.*', '', global_revision)
400     global_revision = re.sub('[^0-9]', '', global_revision)
401     if global_revision == '': global_revision='-2'
402 jfenwick 3618 except:
403 jfenwick 3259 global_revision = '-1'
404 caltinay 3271 env['svn_revision']=global_revision
405 caltinay 4295 env['buildvars']['svn_revision']=global_revision
406 jfenwick 3259 env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])
407 gross 2363
408 aellery 6848 # If that failed, try to get the version number from the file svn_version
409 aellery 6843 if global_revision=='-2' or global_revision=='-1':
410 aellery 6848 try:
411     global_revision=str(os.popen('cat svn_version 2>/dev/null').read())
412     if global_revision[global_revision.__len__()-1] == '\n':
413     temp=global_revision[0:(global_revision.__len__()-1)]
414     else:
415     temp=global_revision
416     print("Using svn revision information from file. Got revision = %s" % temp)
417     except:
418     global_revision='-2'
419 aellery 6843
420 aellery 6848 if global_revision=='-2' or global_revision=='-1':
421     env['warnings'].append("Could not detect the svn revision number!")
422    
423 caltinay 4295 env['IS_WINDOWS']=IS_WINDOWS
424 jfenwick 5407 env['IS_OSX']=IS_OSX
425 caltinay 4295
426 jfenwick 3259 ###################### Copy required environment vars ########################
427 gross 2363
428 jfenwick 3259 # Windows doesn't use LD_LIBRARY_PATH but PATH instead
429     if IS_WINDOWS:
430     LD_LIBRARY_PATH_KEY='PATH'
431     env['ENV']['LD_LIBRARY_PATH']=''
432     else:
433     LD_LIBRARY_PATH_KEY='LD_LIBRARY_PATH'
434 robwdcock 682
435 caltinay 4295 env['LD_LIBRARY_PATH_KEY']=LD_LIBRARY_PATH_KEY
436    
437 caltinay 3319 # the following env variables are exported for the unit tests
438 phornby 1244
439 jfenwick 3259 for key in 'OMP_NUM_THREADS', 'ESCRIPT_NUM_PROCS', 'ESCRIPT_NUM_NODES':
440     try:
441     env['ENV'][key] = os.environ[key]
442     except KeyError:
443 caltinay 5045 env['ENV'][key] = '1'
444 robwdcock 682
445 jfenwick 3259 env_export=env['env_export']
446 caltinay 4917 env_export.extend(['ESCRIPT_NUM_THREADS','ESCRIPT_HOSTFILE','DISPLAY','XAUTHORITY','PATH','HOME','KMP_MONITOR_STACKSIZE','TMPDIR','TEMP','TMP','LD_PRELOAD'])
447 robwdcock 682
448 jfenwick 3259 for key in set(env_export):
449     try:
450     env['ENV'][key] = os.environ[key]
451     except KeyError:
452     pass
453 ksteube 1312
454 caltinay 5436 for key in os.environ.keys():
455     if key.startswith("SLURM_"):
456     env['ENV'][key] = os.environ[key]
457    
458 jfenwick 3259 try:
459     env.PrependENVPath(LD_LIBRARY_PATH_KEY, os.environ[LD_LIBRARY_PATH_KEY])
460     except KeyError:
461     pass
462 ksteube 1312
463 jfenwick 4640 if IS_OSX:
464     try:
465     env.PrependENVPath('DYLD_LIBRARY_PATH', os.environ['DYLD_LIBRARY_PATH'])
466     except KeyError:
467     pass
468    
469 jfenwick 3259 try:
470     env['ENV']['PYTHONPATH'] = os.environ['PYTHONPATH']
471     except KeyError:
472     pass
473 ksteube 1312
474 jfenwick 3259 ######################## Add some custom builders ############################
475 ksteube 1312
476 caltinay 6124 # Takes care of prefix and suffix for Python modules:
477     def build_python_module(env, target, source):
478 uqaeller 7011 sl_suffix = '.pyd' if IS_WINDOWS else '.so'
479     return env.SharedLibrary(target, source, SHLIBPREFIX='', SHLIBSUFFIX=sl_suffix)
480 caltinay 6124 env.AddMethod(build_python_module, "PythonModule")
481    
482 jfenwick 3851 if env['pythoncmd']=='python':
483     py_builder = Builder(action = build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
484     else:
485 jfenwick 3892 py_builder = Builder(action = env['pythoncmd']+" scripts/py_comp.py $SOURCE $TARGET", suffix = '.pyc', src_suffix = '.py', single_source=True)
486 jfenwick 3259 env.Append(BUILDERS = {'PyCompile' : py_builder});
487 gross 2423
488 jfenwick 3259 runUnitTest_builder = Builder(action = runUnitTest, suffix = '.passed', src_suffix=env['PROGSUFFIX'], single_source=True)
489     env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
490 gross 2423
491 jfenwick 3259 runPyUnitTest_builder = Builder(action = runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
492     env.Append(BUILDERS = {'RunPyUnitTest' : runPyUnitTest_builder});
493 ksteube 1756
494 sshaw 5017 runPyExample_builder = Builder(action = runPyExample, suffix = '.passed', src_suffic='.py', single_source=True)
495     env.Append(BUILDERS = {'RunPyExample' : runPyExample_builder});
496    
497 jfenwick 3259 epstopdfbuilder = Builder(action = eps2pdf, suffix='.pdf', src_suffix='.eps', single_source=True)
498     env.Append(BUILDERS = {'EpsToPDF' : epstopdfbuilder});
499 ksteube 817
500 jfenwick 3259 ############################ Dependency checks ###############################
501 phornby 1246
502 caltinay 4295 ######## Compiler
503     env=checkCompiler(env)
504 phornby 1634
505 jfenwick 3259 ######## Python headers & library (required)
506 caltinay 4295 env=checkPython(env)
507 gross 806
508 caltinay 4295 ######## boost & boost-python (required)
509     env=checkBoost(env)
510 jfenwick 3892
511 caltinay 4295 ######## numpy (required) and numpy headers (optional)
512     env=checkNumpy(env)
513 jfenwick 3892
514 caltinay 3597 ######## CppUnit (required for tests)
515 caltinay 4295 env=checkCppUnit(env)
516 caltinay 3597
517 caltinay 4295 ######## optional python modules (sympy, pyproj)
518     env=checkOptionalModules(env)
519 caltinay 3597
520 uqaeller 7011 ######## optional dependencies (netCDF, MKL, UMFPACK, MUMPS, Lapack, Silo, ...)
521 caltinay 4295 env=checkOptionalLibraries(env)
522 caltinay 3975
523 caltinay 3604 ######## PDFLaTeX (for documentation)
524 caltinay 4295 env=checkPDFLatex(env)
525 caltinay 3604
526 caltinay 6249 # set defaults for launchers if not otherwise specified
527     if env['prelaunch'] == 'default':
528     if env['mpi'] == 'INTELMPI' and env['openmp']:
529     env['prelaunch'] = "export I_MPI_PIN_DOMAIN=omp"
530     elif env['mpi'] == 'OPENMPI':
531     # transform comma-separated list to '-x a -x b -x c ...'
532     env['prelaunch'] = "EE=$(echo -x %e|sed -e 's/,/ -x /g')"
533     elif env['mpi'] == 'MPT':
534     env['prelaunch'] = "export MPI_NUM_MEMORY_REGIONS=0"
535     elif env['mpi'] == 'MPICH2':
536     env['prelaunch'] = "mpdboot -n %n -r ssh -f %f"
537     else:
538     env['prelaunch'] = ""
539    
540     if env['launcher'] == 'default':
541     if env['mpi'] == 'INTELMPI':
542     env['launcher'] = "mpirun -hostfile %f -n %N -ppn %p %b"
543     elif env['mpi'] == 'OPENMPI':
544 jfenwick 6573 if env['mpi_no_host']:
545     hostoptionstr=''
546     else:
547     hostoptionstr='--host %h'
548 caltinay 6249 # default to OpenMPI version 1.10 or higher
549 jfenwick 6573 env['launcher'] = "mpirun ${AGENTOVERRIDE} --gmca mpi_warn_on_fork 0 ${EE} "+hostoptionstr+" --map-by node:pe=%t -bind-to core -np %N %b"
550 caltinay 6249 if 'orte_version' in env:
551     major,minor,point = [int(i) for i in env['orte_version'].split('.')]
552     if major == 1 and minor < 10:
553 jfenwick 6573 env['launcher'] = "mpirun ${AGENTOVERRIDE} --gmca mpi_warn_on_fork 0 ${EE} "+hostoptionstr+" --cpus-per-rank %t -np %N %b"
554 caltinay 6249 elif env['mpi'] == 'MPT':
555     env['launcher'] = "mpirun %h -np %p %b"
556     elif env['mpi'] == 'MPICH':
557     env['launcher'] = "mpirun -machinefile %f -np %N %b"
558     elif env['mpi'] == 'MPICH2':
559     env['launcher'] = "mpiexec -genvlist %e -np %N %b"
560     else:
561     env['launcher'] = "%b"
562    
563     if env['postlaunch'] == 'default':
564     if env['mpi'] == 'MPICH2':
565     env['postlaunch'] = "mpdallexit"
566     else:
567     env['postlaunch'] = ""
568    
569 caltinay 6119 # dependency sanity checks
570    
571     if len(env['domains']) == 0:
572     env['warnings'].append("No domains have been built, escript will not be very useful!")
573    
574 jfenwick 3259 # keep some of our install paths first in the list for the unit tests
575     env.PrependENVPath(LD_LIBRARY_PATH_KEY, env['libinstall'])
576     env.PrependENVPath('PYTHONPATH', prefix)
577     env['ENV']['ESCRIPT_ROOT'] = prefix
578 ksteube 1705
579 jfenwick 3259 if not env['verbose']:
580     env['CXXCOMSTR'] = "Compiling $TARGET"
581     env['SHCXXCOMSTR'] = "Compiling $TARGET"
582     env['ARCOMSTR'] = "Linking $TARGET"
583     env['LINKCOMSTR'] = "Linking $TARGET"
584     env['SHLINKCOMSTR'] = "Linking $TARGET"
585 caltinay 3271 env['PDFLATEXCOMSTR'] = "Building $TARGET from LaTeX input $SOURCES"
586     env['BIBTEXCOMSTR'] = "Generating bibliography $TARGET"
587     env['MAKEINDEXCOMSTR'] = "Generating index $TARGET"
588     env['PDFLATEXCOMSTR'] = "Building $TARGET from LaTeX input $SOURCES"
589 jfenwick 3259 #Progress(['Checking -\r', 'Checking \\\r', 'Checking |\r', 'Checking /\r'], interval=17)
590 ksteube 1705
591 caltinay 6119 ########################### Configure the targets ############################
592 ksteube 1247
593 caltinay 6119 from grouptest import GroupTest
594 jfenwick 2235 TestGroups=[]
595    
596 jfenwick 3259 # keep an environment without warnings-as-errors
597     dodgy_env=env.Clone()
598 jfenwick 2827
599 jfenwick 3259 # now add warnings-as-errors flags. This needs to be done after configuration
600     # because the scons test files have warnings in them
601     if ((fatalwarning != '') and (env['werror'])):
602     env.Append(CCFLAGS = fatalwarning)
603 jfenwick 2827
604 phornby 2027 Export(
605 jfenwick 3259 ['env',
606     'dodgy_env',
607     'IS_WINDOWS',
608     'TestGroups'
609     ]
610     )
611 ksteube 1705
612 caltinay 3604 target_init = env.Command(os.path.join(env['pyinstall'],'__init__.py'), None, Touch('$TARGET'))
613 ksteube 1705 env.Alias('target_init', [target_init])
614    
615 caltinay 6119 # escript can't be turned off
616 caltinay 6174 build_all_list = ['build_escript']
617     install_all_list = ['target_init', 'install_escript']
618 caltinay 2810
619 caltinay 6119 if env['usempi']:
620     build_all_list += ['build_pythonMPI', 'build_overlord']
621     install_all_list += ['install_pythonMPI', 'install_overlord']
622 caltinay 3096
623 caltinay 6333 env['buildvars']['paso'] = int(env['paso'])
624 caltinay 6119 if env['paso']:
625 caltinay 6167 env.Append(CPPDEFINES = ['ESYS_HAVE_PASO'])
626 caltinay 6119 build_all_list += ['build_paso']
627     install_all_list += ['install_paso']
628 caltinay 2910
629 caltinay 6555 env['buildvars']['trilinos'] = int(env['trilinos'])
630 caltinay 6119 if env['trilinos']:
631     build_all_list += ['build_trilinoswrap']
632     install_all_list += ['install_trilinoswrap']
633 caltinay 3792
634 caltinay 6333 env['buildvars']['domains'] = ','.join(env['domains'])
635 caltinay 6119 for domain in env['domains']:
636 caltinay 6174 env.Append(CPPDEFINES = ['ESYS_HAVE_'+domain.upper()])
637 caltinay 6119 build_all_list += ['build_%s'%domain]
638     install_all_list += ['install_%s'%domain]
639 ksteube 1705
640 caltinay 6333 env['buildvars']['weipa'] = int(env['weipa'])
641 caltinay 6119 if env['weipa']:
642 caltinay 6174 env.Append(CPPDEFINES = ['ESYS_HAVE_WEIPA'])
643 caltinay 6119 build_all_list += ['build_weipa']
644     install_all_list += ['install_weipa']
645 caltinay 6184 if 'finley' in env['domains'] or 'dudley' in env['domains']:
646 caltinay 6119 build_all_list += ['build_escriptreader']
647     install_all_list += ['install_escriptreader']
648 ksteube 1705
649 caltinay 6174 variant='$BUILD_DIR/$PLATFORM/'
650     env.SConscript('escriptcore/SConscript', variant_dir=variant+'escriptcore', duplicate=0)
651     env.SConscript('escript/py_src/SConscript', variant_dir=variant+'escript', duplicate=0)
652     env.SConscript('pythonMPI/src/SConscript', variant_dir=variant+'pythonMPI', duplicate=0)
653     env.SConscript('tools/overlord/SConscript', variant_dir=variant+'tools/overlord', duplicate=0)
654     env.SConscript('paso/SConscript', variant_dir=variant+'paso', duplicate=0)
655     env.SConscript('trilinoswrap/SConscript', variant_dir=variant+'trilinoswrap', duplicate=0)
656     env.SConscript('cusplibrary/SConscript')
657     env.SConscript('dudley/SConscript', variant_dir=variant+'dudley', duplicate=0)
658     env.SConscript('finley/SConscript', variant_dir=variant+'finley', duplicate=0)
659     env.SConscript('ripley/SConscript', variant_dir=variant+'ripley', duplicate=0)
660     env.SConscript('speckley/SConscript', variant_dir=variant+'speckley', duplicate=0)
661     env.SConscript('weipa/SConscript', variant_dir=variant+'weipa', duplicate=0)
662     env.SConscript(dirs = ['downunder/py_src'], variant_dir=variant+'downunder', duplicate=0)
663     env.SConscript(dirs = ['modellib/py_src'], variant_dir=variant+'modellib', duplicate=0)
664     env.SConscript(dirs = ['pycad/py_src'], variant_dir=variant+'pycad', duplicate=0)
665     env.SConscript('tools/escriptconvert/SConscript', variant_dir=variant+'tools/escriptconvert', duplicate=0)
666     env.SConscript('doc/SConscript', variant_dir=variant+'doc', duplicate=0)
667 ksteube 1705
668 caltinay 6119 env.Alias('build', build_all_list)
669    
670 caltinay 3947 install_all_list += ['install_downunder_py']
671 jfenwick 3259 install_all_list += ['install_modellib_py']
672     install_all_list += ['install_pycad_py']
673 caltinay 6119 install_all_list += [env.Install(Dir('scripts',env['build_dir']), os.path.join('scripts', 'release_sanity.py'))]
674 ksteube 1705
675 jfenwick 5851 if env['osx_dependency_fix']:
676     print("Require dependency fix")
677 caltinay 6119 install_all=env.Command('install', install_all_list, 'scripts/moveall.sh')
678 jfenwick 5851 else:
679 caltinay 6119 install_all=env.Alias('install', install_all_list)
680 jfenwick 5851
681 jfenwick 5811 sanity=env.Alias('sanity', env.Command('dummy','',os.path.join(env['prefix'], 'bin', 'run-escript')+' '+os.path.join(env['build_dir'],'scripts', 'release_sanity.py')))
682 jfenwick 5802 env.Depends('dummy', install_all)
683 jfenwick 5801 if env['usempi']:
684 caltinay 6119 env.Depends('dummy', ['install_pythonMPI'])
685 jfenwick 5801
686 caltinay 6119 # if all domains are built:
687 aellery 6722 if env['domains'] == all_domains and env['insane'] == False:
688     env.AlwaysBuild('sanity')
689     env.Default('sanity')
690 jfenwick 5802 else:
691 caltinay 6119 env.Default('install')
692 jfenwick 5800
693 jfenwick 3259 ################## Targets to build and run the test suite ###################
694 ksteube 1705
695 caltinay 3597 if not env['cppunit']:
696 caltinay 4520 test_msg = env.Command('.dummy.', None, '@echo "Cannot run C++ unit tests, CppUnit not found!";exit 1')
697 caltinay 3597 env.Alias('run_tests', test_msg)
698 caltinay 4249 env.Alias('build_tests', '')
699 caltinay 6119 env.Alias('run_tests', ['install'])
700     env.Alias('all_tests', ['install', 'run_tests', 'py_tests'])
701     env.Alias('build_full',['install','build_tests','build_py_tests'])
702     Requires('py_tests', 'install')
703 ksteube 1705
704 jfenwick 3259 ##################### Targets to build the documentation #####################
705 artak 2820
706 jfenwick 4244 env.Alias('pdfdocs',['user_pdf', 'install_pdf', 'cookbook_pdf', 'inversion_pdf'])
707     env.Alias('basedocs', ['pdfdocs','examples_tarfile', 'examples_zipfile', 'api_doxygen'])
708 jfenwick 4167 env.Alias('docs', ['basedocs', 'sphinxdoc'])
709 caltinay 6119 env.Alias('release_prep', ['docs', 'install'])
710     env.Alias('release_prep_old', ['basedocs', 'api_epydoc', 'install'])
711 ksteube 1705
712 jfenwick 4078 # The test scripts are always generated, this target allows us to
713     # generate the testscripts without doing a full build
714     env.Alias('testscripts',[])
715    
716 uqaeller 7011 generateTestScripts(env, TestGroups)
717 jfenwick 2879
718 caltinay 6119 ######################## Populate the buildvars file #########################
719 caltinay 3604
720 caltinay 6119 write_buildvars(env)
721     # delete buildvars upon cleanup - target_init is default so use it
722     env.Clean('target_init', File('buildvars', env['libinstall']))
723    
724     write_launcher(env)
725    
726     # remove obsolete files
727     if not env['usempi']:
728     Execute(Delete(File(['pythonMPI','pythonMPIredirect'], env['libinstall'])))
729     Execute(Delete(File('escript-overlord', env['bininstall'])))
730    
731 caltinay 4295 ######################## Summarize our environment ###########################
732     def print_summary():
733 caltinay 6255 d_list=[]
734 caltinay 4295 print("")
735 caltinay 4299 print("*** Config Summary (see config.log and <prefix>/lib/buildvars for details) ***")
736 caltinay 6119 print("Escript revision %s"%global_revision)
737 caltinay 4295 print(" Install prefix: %s"%env['prefix'])
738 caltinay 6248 print(" Python: %s (Version %s)"%(env['pythoncmd'],env['python_version']))
739 caltinay 5696 print(" boost: %s (Version %s)"%(env['boost_prefix'],env['boost_version']))
740 aellery 6882 if env['have_boost_numpy'] is True:
741 aellery 6872 print(" boost numpy: YES")
742     else:
743     print(" boost numpy: NO")
744 aellery 6818 if env['trilinos']:
745 aellery 6898 print(" trilinos: %s (Version %s)" % (env['trilinos_prefix'],env['trilinos_version']))
746 aellery 6818 else:
747     print(" trilinos: NO")
748 caltinay 4299 if env['numpy_h']:
749     print(" numpy: YES (with headers)")
750     else:
751     print(" numpy: YES (without headers)")
752 caltinay 4295 if env['usempi']:
753 caltinay 6249 if 'orte_version' in env:
754     print(" MPI: %s (Version %s)"%(env['mpi'], env['orte_version']))
755     else:
756     print(" MPI: YES (flavour: %s)"%env['mpi'])
757 caltinay 4295 else:
758 caltinay 6255 d_list.append('mpi')
759 caltinay 5696 if env['parmetis']:
760     print(" ParMETIS: %s (Version %s)"%(env['parmetis_prefix'],env['parmetis_version']))
761     else:
762 caltinay 6255 d_list.append('parmetis')
763 caltinay 4295 if env['uselapack']:
764     print(" LAPACK: YES (flavour: %s)"%env['lapack'])
765     else:
766 caltinay 6255 d_list.append('lapack')
767 caltinay 5391 if env['gmshpy']:
768     gmshpy=" + python module"
769     else:
770     gmshpy=""
771 caltinay 4295 if env['gmsh']=='m':
772 caltinay 5391 print(" gmsh: YES, MPI-ENABLED"+gmshpy)
773 caltinay 4295 elif env['gmsh']=='s':
774 caltinay 5391 print(" gmsh: YES"+gmshpy)
775 caltinay 4295 else:
776 caltinay 5391 if env['gmshpy']:
777     print(" gmsh: python module only")
778     else:
779 caltinay 6255 d_list.append('gmsh')
780     if env['compressed_files']:
781     print(" gzip: YES")
782     else:
783     d_list.append('gzip')
784 caltinay 4299
785 caltinay 6255 solvers = []
786     direct = []
787     if env['paso']:
788     solvers.append('paso')
789     if env['mkl']:
790     direct.append('mkl')
791     if env['umfpack']:
792     direct.append('umfpack')
793 uqaeller 7011 if env['mumps']:
794     direct.append('mumps')
795 caltinay 6255 else:
796     d_list.append('paso')
797     if env['trilinos']:
798     solvers.append('trilinos')
799     direct.append('trilinos')
800     else:
801     d_list.append('trilinos')
802    
803     print(" Solver library: %s"%(", ".join(solvers)))
804     if len(direct) > 0:
805     print(" Direct solver: YES (%s)"%(", ".join(direct)))
806     else:
807     print(" Direct solver: NONE")
808     print(" domains: %s"%(", ".join(env['domains'])))
809 jfenwick 6509 if env['netcdf']==4:
810     print(" netcdf: YES (4 + 3)")
811     elif env['netcdf']==3:
812     print(" netcdf: YES (3)")
813     else:
814     print(" netcdf: NO")
815 caltinay 6255 e_list=[]
816 aellery 6739 for i in ('weipa','debug','openmp','cppunit','gdal','mkl',
817 uqaeller 7011 'mumps','pyproj','scipy','silo','sympy','umfpack','visit'):
818 caltinay 6255 if env[i]: e_list.append(i)
819     else: d_list.append(i)
820    
821     d_list += set(all_domains).difference(env['domains'])
822     for i in e_list:
823     print("%16s: YES"%i)
824     print("\n DISABLED features: %s"%(" ".join(sorted(d_list))))
825    
826 caltinay 4295 if ((fatalwarning != '') and (env['werror'])):
827     print(" Treating warnings as errors")
828     else:
829     print(" NOT treating warnings as errors")
830     print("")
831     for w in env['warnings']:
832     print("WARNING: %s"%w)
833 sshaw 4726 if len(GetBuildFailures()):
834     print("\nERROR: build stopped due to errors\n")
835     else:
836     print("\nSUCCESS: build complete\n")
837 caltinay 4295
838     atexit.register(print_summary)

  ViewVC Help
Powered by ViewVC 1.1.26