/[escript]/branches/4.0fordebian/scons/templates/jessie_options.py
ViewVC logotype

Contents of /branches/4.0fordebian/scons/templates/jessie_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5577 - (show annotations)
Fri Apr 3 05:26:15 2015 UTC (3 years, 11 months ago) by jfenwick
File MIME type: text/x-python
File size: 9974 byte(s)
Fixes to make us more lintian compliant (copied across from private git)
1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2015 by University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 # This is a template configuration file for escript on Debian/GNU Linux.
18 # Create a file named <sourcedir>/scons/<hostname>_options.py, where
19 # <sourcedir> is the escript source directory and <hostname> is your machine's
20 # short hostname, add the line
21 # from templates.wheezy_options import *
22 # then customize to your needs.
23
24 # PREFIXES:
25 # There are two ways to specify where to find dependent headers and libraries
26 # (via the <dependency>_prefix):
27 # 1) If your installation follows the general scheme where headers are located
28 # in <prefix>/include[32,64], and libraries in <prefix>/lib[32,64] then
29 # it is sufficient to specify this prefix, e.g. boost_prefix='/usr'
30 # 2) Otherwise provide a list with two elements, where the first one is the
31 # include path, and the second the library path, e.g.
32 # boost_prefix=['/usr/include/boost1_48', '/usr/lib']
33 # All <dependency>_prefix settings default to '/usr'
34
35 # The options file version. SCons will refuse to build if there have been
36 # changes to the set of variables and your file has not been updated.
37 # This setting is mandatory.
38 escript_opts_version = 202
39
40 # Installation prefix. Files will be installed in subdirectories underneath.
41 # DEFAULT: '<sourcedir>' (source directory)
42 #prefix = '/usr/local'
43
44 # Top-level directory for intermediate build and test files.
45 # DEFAULT: '<sourcedir>/build'
46 #build_dir = '/tmp/escriptbuild'
47
48 # Set to True to print the full compiler/linker command line
49 # DEFAULT: False
50 #verbose = True
51
52 # C++ compiler command name or full path.
53 # DEFAULT: auto-detected
54 #cxx = 'g++'
55
56 # Flags to use with the C++ compiler. Do not set unless you know
57 # what you are doing - use cxx_extra to specify additional flags!
58 # DEFAULT: compiler-dependent
59 #cc_flags = ''
60
61 # Additional compiler (optimization) flags for non-debug builds
62 # DEFAULT: compiler-dependent
63 #cc_optim = '-O3 -march=native'
64
65 # Additional compiler flags for debug builds
66 # DEFAULT: compiler-dependent
67 #cc_debug = '-g3 -fno-omit-frame-pointer -D_GLIBCXX_DEBUG'
68
69 # Additional flags to add to the C++ compiler
70 # DEFAULT: '' (empty)
71 #cxx_extra = '-Wextra -Wno-unused-parameter'
72
73 # Additional flags to add to the linker
74 # DEFAULT: '' (empty)
75 #ld_extra = ''
76
77 # Path to CUDA compiler [new in 202]
78 # DEFAULT: auto-detected
79 #nvcc = '/usr/local/bin/nvcc'
80
81 # Flags for CUDA compiler [new in 202]
82 # DEFAULT: '' (empty)
83 #nvccflags = '-arch=sm_30 -DBOOST_NOINLINE="__attribute__((noinline))"'
84
85 # Whether to treat compiler warnings as errors
86 # DEFAULT: True
87 #werror = False
88
89 # Whether to build a debug version (applying cc_debug flags)
90 # DEFAULT: False
91 #debug = True
92
93 # Set to True to add flags that enable OpenMP parallelization
94 # DEFAULT: False
95 openmp = True
96
97 # Additional compiler flags for OpenMP builds
98 # DEFAULT: compiler-dependent
99 #omp_flags = '-fopenmp'
100
101 # Additional linker flags for OpenMP builds
102 # DEFAULT: compiler-dependent
103 #omp_ldflags = '-fopenmp'
104
105 # Prefix or paths to boost headers and libraries. See note above.
106 #boost_prefix = '/usr/local'
107
108 # boost-python library/libraries to link against
109 boost_libs = ['boost_python-py27']
110
111 # Prefix or paths to CppUnit headers and libraries. See note above.
112 # Only required for C++ unit tests.
113 #cppunit_prefix = '/usr/local'
114
115 # CppUnit library/libraries to link against
116 #cppunit_libs = ['cppunit']
117
118 # Flavour of MPI implementation
119 # Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI'
120 # DEFAULT: 'none' (disable MPI)
121 #mpi = 'OPENMPI'
122
123 # Prefix or paths to MPI headers and libraries. See note above about prefixes.
124 mpi_prefix = '/usr/lib/openmpi'
125
126 # MPI libraries to link against
127 mpi_libs = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal']
128
129 # Whether to add support for GPU-based ripley system matrix (requires nvcc
130 # and thrust headers) [new in 202]
131 # DEFAULT: False
132 #cuda = True
133
134 # Prefix or paths to NVidia thrust installation. See note above. [new in 202]
135 #thrust_prefix = '/usr/local'
136
137 # Whether to use the netCDF library for dump file support and netCDF-based
138 # downunder data import
139 # DEFAULT: False
140 netcdf = True
141
142 # Prefix or paths to netCDF headers and libraries. See note above.
143 #netcdf_prefix = ['/usr/include/netcdf-3', '/usr/lib']
144
145 # netCDF library/libraries to link against
146 #netcdf_libs = ['netcdf_c++', 'netcdf']
147
148 # Whether to use the parMETIS library (only in conjunction with MPI)
149 # DEFAULT: False
150 #parmetis = True
151
152 # Prefix or paths to parMETIS headers and libraries. See note above.
153 #parmetis_prefix = '/usr/local'
154
155 # parMETIS library/libraries to link against
156 #parmetis_libs = ['parmetis', 'metis']
157
158 # Whether to add support for the Intel MKL (Math Kernel Library) direct solver
159 # DEFAULT: False
160 #mkl = True
161
162 # Prefix or paths to MKL headers and libraries. See note above.
163 #mkl_prefix = ['/opt/intel/composer_xe_2015/mkl/include', '/opt/intel/composer_xe_2015/mkl/lib/intel64']
164
165 # MKL library/libraries to link against
166 #mkl_libs = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'pthread']
167
168 # Whether to add support for the UMFPACK direct solver (requires AMD and BLAS)
169 # DEFAULT: False
170 #umfpack = True
171
172 # Prefix or paths to UMFPACK headers and libraries. See note above.
173 umfpack_prefix = ['/usr/include/suitesparse', '/usr/lib']
174
175 # UMFPACK library/libraries to link against
176 umfpack_libs = ['umfpack', 'blas', 'amd']
177
178 # Whether to use BoomerAMG (requires MPI)
179 # DEFAULT: False
180 #boomeramg = True
181
182 # Prefix or paths to BoomerAMG headers and libraries. See note above.
183 #boomeramg_prefix = '/usr/local'
184
185 # BoomerAMG library/libraries to link against
186 #boomeramg_libs = ['HYPRE']
187
188 # Flavour of LAPACK implementation
189 # Recognized values: 'none', 'clapack', 'mkl'
190 # DEFAULT: 'none' (do not use LAPACK)
191 #lapack = 'clapack'
192
193 # Prefix or paths to LAPACK headers and libraries. See note above.
194 lapack_prefix = ['/usr/include/atlas', '/usr/lib/atlas-base']
195
196 # LAPACK library/libraries to link against
197 lapack_libs = ['lapack_atlas']
198
199 # Whether to use LLNL's SILO library for Silo output file support in weipa
200 # DEFAULT: False
201 #silo = True
202
203 # Prefix or paths to SILO headers and libraries. See note above.
204 #silo_prefix = '/usr/local'
205
206 # SILO library/libraries to link against
207 silo_libs = ['siloh5']
208
209 # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
210 # DEFAULT: False
211 #visit = True
212
213 # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
214 #visit_prefix = '/opt/visit/current/linux-intel/libsim/V2'
215
216 # Sim2 library/libraries to link against
217 #visit_libs = ['simV2']
218
219 # List of domain families to build [new in 202]
220 # DEFAULT: 'all' (i.e. dudley, finley, ripley, speckley)
221 #domains = ['finley', 'ripley']
222
223
224 ### ADVANCED OPTIONS ###
225 # Do not change the following options unless you know what they do
226
227 # launcher, prelaunch, postlaunch: for MPI builds/batch system runs
228 # the following substitutions are applied to all three:
229 # %b = executable, %n = number of nodes, %p = number of processes,
230 # %N = total number of processes, # %t = number of threads,
231 # %f = name of hostfile, %h = comma-separated list of hosts,
232 # %e = comma-separated list of environment variables to export
233 #prelaunch = "EE=$(echo -x %e|sed -e 's/,/ -x /g')"
234 #launcher = "mpirun --gmca mpi_warn_on_fork 0 ${EE} --bynode --bind-to-none --host %h -np %N %b"
235 #postlaunch = ""
236
237 #
238 # Compiler flags for some optimisations in dudley
239 dudley_assemble_flags = '-funroll-loops'
240
241 # enables code that is non-standard
242 #iknowwhatimdoing = True
243
244 # compiler toolset to use
245 #tools_names = ['intelc']
246
247 # Additional environmental variables to export to the tools
248 #env_export = []
249
250 # For testing use only, sets the default value for autolazy
251 # DEFAULT: 'leave_alone'
252 #forcelazy = 'on'
253
254 # For testing use only, sets the default value for force resolving collective
255 # operations
256 # DEFAULT: 'leave_alone'
257 #forcecollres = 'on'
258
259 # Whether to create dynamic libraries for esysUtils and paso
260 # DEFAULT: False
261 build_shared = True
262
263 # Extra libraries to link with
264 #sys_libs = []
265
266 # Python executable to use for compiling. Must be compatible with the
267 # boost python library
268 # DEFAULT: auto-detected (interpreter executing scons)
269 #pythoncmd = '/usr/bin/python3'
270
271 # Whether this is a Python 3 build
272 # DEFAULT: False
273 #usepython3 = True
274
275 # Name of the python library
276 # DEFAULT: auto-detected for python 2.x
277 #pythonlibname = 'python3.4m'
278
279 # Path to Python include files
280 # DEFAULT: auto-detected for python 2.x
281 #pythonincpath = '/usr/include/python3.4'
282
283 # Whether to map index_t to long (for very large matrices) [new in 202]
284 # DEFAULT: False
285 #longindices = True
286
287 # Enable reading compressed binary grids in ripley? (requires boost iostreams)
288 # DEFAULT: True
289 #compressed_files = False
290
291 # Compression libraries to link with
292 # DEFAULT: 'boost_iostreams'
293 #compression_libs = 'boost_iostreams-mt'
294
295 # Whether to use the PAPI (Performance API) library
296 # DEFAULT: False
297 #papi = True
298
299 # Prefix or paths to PAPI headers and libraries. See note above.
300 #papi_prefix = '/usr/local'
301
302 # PAPI library/libraries to link against
303 #papi_libs = ['papi']
304
305 # Whether to use PAPI to instrument solver iterations
306 # DEFAULT: False
307 #papi_instrument_solver = True
308
309 from site_init import getdebbuildflags
310 # Now we add the debian build flags
311 debstuff=getdebbuildflags()
312 if (len(debstuff)>0):
313 print("Building with the following additional flags from debian: "+str(debstuff))
314
315 for i in debstuff:
316 k=i[0]
317 v=i[1]
318 print("Processing: "+k+" || "+v)
319 try:
320 exec(k+"+=' "+v+"'")
321 except NameError:
322 exec(k+"='"+v+"'")

  ViewVC Help
Powered by ViewVC 1.1.26