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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5596 - (hide annotations)
Thu Apr 30 00:13:43 2015 UTC (3 years, 10 months ago) by jfenwick
File MIME type: text/x-python
File size: 10024 byte(s)
To work around that warning

1 jfenwick 5577
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 jfenwick 5596 cxx_extra = '--param=max-vartrack-size=90000000'
73 jfenwick 5577
74 jfenwick 5596
75 jfenwick 5577 # Additional flags to add to the linker
76     # DEFAULT: '' (empty)
77     #ld_extra = ''
78    
79     # Path to CUDA compiler [new in 202]
80     # DEFAULT: auto-detected
81     #nvcc = '/usr/local/bin/nvcc'
82    
83     # Flags for CUDA compiler [new in 202]
84     # DEFAULT: '' (empty)
85     #nvccflags = '-arch=sm_30 -DBOOST_NOINLINE="__attribute__((noinline))"'
86    
87     # Whether to treat compiler warnings as errors
88     # DEFAULT: True
89     #werror = False
90    
91     # Whether to build a debug version (applying cc_debug flags)
92     # DEFAULT: False
93     #debug = True
94    
95     # Set to True to add flags that enable OpenMP parallelization
96     # DEFAULT: False
97     openmp = True
98    
99     # Additional compiler flags for OpenMP builds
100     # DEFAULT: compiler-dependent
101     #omp_flags = '-fopenmp'
102    
103     # Additional linker flags for OpenMP builds
104     # DEFAULT: compiler-dependent
105     #omp_ldflags = '-fopenmp'
106    
107     # Prefix or paths to boost headers and libraries. See note above.
108     #boost_prefix = '/usr/local'
109    
110     # boost-python library/libraries to link against
111     boost_libs = ['boost_python-py27']
112    
113     # Prefix or paths to CppUnit headers and libraries. See note above.
114     # Only required for C++ unit tests.
115     #cppunit_prefix = '/usr/local'
116    
117     # CppUnit library/libraries to link against
118     #cppunit_libs = ['cppunit']
119    
120     # Flavour of MPI implementation
121     # Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI'
122     # DEFAULT: 'none' (disable MPI)
123     #mpi = 'OPENMPI'
124    
125     # Prefix or paths to MPI headers and libraries. See note above about prefixes.
126     mpi_prefix = '/usr/lib/openmpi'
127    
128     # MPI libraries to link against
129     mpi_libs = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal']
130    
131     # Whether to add support for GPU-based ripley system matrix (requires nvcc
132     # and thrust headers) [new in 202]
133     # DEFAULT: False
134     #cuda = True
135    
136     # Prefix or paths to NVidia thrust installation. See note above. [new in 202]
137     #thrust_prefix = '/usr/local'
138    
139     # Whether to use the netCDF library for dump file support and netCDF-based
140     # downunder data import
141     # DEFAULT: False
142     netcdf = True
143    
144     # Prefix or paths to netCDF headers and libraries. See note above.
145     #netcdf_prefix = ['/usr/include/netcdf-3', '/usr/lib']
146    
147     # netCDF library/libraries to link against
148     #netcdf_libs = ['netcdf_c++', 'netcdf']
149    
150     # Whether to use the parMETIS library (only in conjunction with MPI)
151     # DEFAULT: False
152     #parmetis = True
153    
154     # Prefix or paths to parMETIS headers and libraries. See note above.
155     #parmetis_prefix = '/usr/local'
156    
157     # parMETIS library/libraries to link against
158     #parmetis_libs = ['parmetis', 'metis']
159    
160     # Whether to add support for the Intel MKL (Math Kernel Library) direct solver
161     # DEFAULT: False
162     #mkl = True
163    
164     # Prefix or paths to MKL headers and libraries. See note above.
165     #mkl_prefix = ['/opt/intel/composer_xe_2015/mkl/include', '/opt/intel/composer_xe_2015/mkl/lib/intel64']
166    
167     # MKL library/libraries to link against
168     #mkl_libs = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'pthread']
169    
170     # Whether to add support for the UMFPACK direct solver (requires AMD and BLAS)
171     # DEFAULT: False
172     #umfpack = True
173    
174     # Prefix or paths to UMFPACK headers and libraries. See note above.
175     umfpack_prefix = ['/usr/include/suitesparse', '/usr/lib']
176    
177     # UMFPACK library/libraries to link against
178     umfpack_libs = ['umfpack', 'blas', 'amd']
179    
180     # Whether to use BoomerAMG (requires MPI)
181     # DEFAULT: False
182     #boomeramg = True
183    
184     # Prefix or paths to BoomerAMG headers and libraries. See note above.
185     #boomeramg_prefix = '/usr/local'
186    
187     # BoomerAMG library/libraries to link against
188     #boomeramg_libs = ['HYPRE']
189    
190     # Flavour of LAPACK implementation
191     # Recognized values: 'none', 'clapack', 'mkl'
192     # DEFAULT: 'none' (do not use LAPACK)
193     #lapack = 'clapack'
194    
195     # Prefix or paths to LAPACK headers and libraries. See note above.
196     lapack_prefix = ['/usr/include/atlas', '/usr/lib/atlas-base']
197    
198     # LAPACK library/libraries to link against
199     lapack_libs = ['lapack_atlas']
200    
201     # Whether to use LLNL's SILO library for Silo output file support in weipa
202     # DEFAULT: False
203     #silo = True
204    
205     # Prefix or paths to SILO headers and libraries. See note above.
206     #silo_prefix = '/usr/local'
207    
208     # SILO library/libraries to link against
209     silo_libs = ['siloh5']
210    
211     # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
212     # DEFAULT: False
213     #visit = True
214    
215     # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
216     #visit_prefix = '/opt/visit/current/linux-intel/libsim/V2'
217    
218     # Sim2 library/libraries to link against
219     #visit_libs = ['simV2']
220    
221     # List of domain families to build [new in 202]
222     # DEFAULT: 'all' (i.e. dudley, finley, ripley, speckley)
223     #domains = ['finley', 'ripley']
224    
225    
226     ### ADVANCED OPTIONS ###
227     # Do not change the following options unless you know what they do
228    
229     # launcher, prelaunch, postlaunch: for MPI builds/batch system runs
230     # the following substitutions are applied to all three:
231     # %b = executable, %n = number of nodes, %p = number of processes,
232     # %N = total number of processes, # %t = number of threads,
233     # %f = name of hostfile, %h = comma-separated list of hosts,
234     # %e = comma-separated list of environment variables to export
235     #prelaunch = "EE=$(echo -x %e|sed -e 's/,/ -x /g')"
236     #launcher = "mpirun --gmca mpi_warn_on_fork 0 ${EE} --bynode --bind-to-none --host %h -np %N %b"
237     #postlaunch = ""
238    
239     #
240     # Compiler flags for some optimisations in dudley
241     dudley_assemble_flags = '-funroll-loops'
242    
243     # enables code that is non-standard
244     #iknowwhatimdoing = True
245    
246     # compiler toolset to use
247     #tools_names = ['intelc']
248    
249     # Additional environmental variables to export to the tools
250     #env_export = []
251    
252     # For testing use only, sets the default value for autolazy
253     # DEFAULT: 'leave_alone'
254     #forcelazy = 'on'
255    
256     # For testing use only, sets the default value for force resolving collective
257     # operations
258     # DEFAULT: 'leave_alone'
259     #forcecollres = 'on'
260    
261     # Whether to create dynamic libraries for esysUtils and paso
262     # DEFAULT: False
263     build_shared = True
264    
265     # Extra libraries to link with
266     #sys_libs = []
267    
268     # Python executable to use for compiling. Must be compatible with the
269     # boost python library
270     # DEFAULT: auto-detected (interpreter executing scons)
271     #pythoncmd = '/usr/bin/python3'
272    
273     # Whether this is a Python 3 build
274     # DEFAULT: False
275     #usepython3 = True
276    
277     # Name of the python library
278     # DEFAULT: auto-detected for python 2.x
279     #pythonlibname = 'python3.4m'
280    
281     # Path to Python include files
282     # DEFAULT: auto-detected for python 2.x
283     #pythonincpath = '/usr/include/python3.4'
284    
285     # Whether to map index_t to long (for very large matrices) [new in 202]
286     # DEFAULT: False
287     #longindices = True
288    
289     # Enable reading compressed binary grids in ripley? (requires boost iostreams)
290     # DEFAULT: True
291     #compressed_files = False
292    
293     # Compression libraries to link with
294     # DEFAULT: 'boost_iostreams'
295     #compression_libs = 'boost_iostreams-mt'
296    
297     # Whether to use the PAPI (Performance API) library
298     # DEFAULT: False
299     #papi = True
300    
301     # Prefix or paths to PAPI headers and libraries. See note above.
302     #papi_prefix = '/usr/local'
303    
304     # PAPI library/libraries to link against
305     #papi_libs = ['papi']
306    
307     # Whether to use PAPI to instrument solver iterations
308     # DEFAULT: False
309     #papi_instrument_solver = True
310    
311     from site_init import getdebbuildflags
312     # Now we add the debian build flags
313     debstuff=getdebbuildflags()
314     if (len(debstuff)>0):
315     print("Building with the following additional flags from debian: "+str(debstuff))
316    
317     for i in debstuff:
318     k=i[0]
319     v=i[1]
320     print("Processing: "+k+" || "+v)
321     try:
322     exec(k+"+=' "+v+"'")
323     except NameError:
324     exec(k+"='"+v+"'")

  ViewVC Help
Powered by ViewVC 1.1.26