/[escript]/trunk/scons/savanna_options.py
ViewVC logotype

Annotation of /trunk/scons/savanna_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4511 - (hide annotations)
Thu Jul 25 04:51:02 2013 UTC (6 years, 6 months ago) by caltinay
File MIME type: text/x-python
File size: 7023 byte(s)
Print a warning on savanna if dev-deps is not loaded when building and add
debug symbols by default.

1 jfenwick 3024
2 jfenwick 3981 ##############################################################################
3 jfenwick 3024 #
4 jfenwick 4154 # Copyright (c) 2003-2013 by University of Queensland
5 jfenwick 3981 # http://www.uq.edu.au
6 jfenwick 3024 #
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 jfenwick 3981 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     # Development since 2012 by School of Earth Sciences
13     #
14     ##############################################################################
15 jfenwick 3024
16 caltinay 4511 try:
17     import os
18     if not 'escript/dev-deps' in os.environ['LOADEDMODULES'].split(':'):
19     print("WARNING: The escript/dev-deps module does not appear to be loaded!")
20     except:
21     pass
22    
23 jfenwick 3259 # The options file version. SCons will refuse to build if there have been
24     # changes to the set of variables and your file has not been updated.
25     # This setting is mandatory.
26 caltinay 3597 escript_opts_version = 201
27 jfenwick 3024
28 jfenwick 3259 # Installation prefix. Files will be installed in subdirectories underneath.
29     # DEFAULT: '.' (current directory)
30     #prefix = '/usr/local'
31 jfenwick 3024
32 caltinay 3349 # Top-level directory for intermediate build and test files.
33     # DEFAULT: 'build'
34     #build_dir = 'build'
35    
36 jfenwick 3259 # C compiler command name or full path.
37     # DEFAULT: auto-detected
38     #cc = 'gcc'
39 jfenwick 3024
40 jfenwick 3259 # C++ compiler command name or full path.
41     # DEFAULT: auto-detected
42     #cxx = 'g++'
43 jfenwick 3076
44 jfenwick 3259 # Flags to use with both C and C++ compilers. Do not set unless you know
45     # what you are doing - use cc_extra to specify additional flags!
46     # DEFAULT: compiler-dependent
47     #cc_flags = ''
48 jfenwick 3024
49 jfenwick 3259 # Additional compiler (optimization) flags for non-debug builds
50     # DEFAULT: compiler-dependent
51     #cc_optim = '-O3 -mmmx -msse'
52 jfenwick 3024
53 jfenwick 3259 # Additional compiler flags for debug builds
54     # DEFAULT: compiler-dependent
55     #cc_debug = '-g'
56 jfenwick 3024
57 jfenwick 3259 # Additional flags to add to the C compiler only
58     # DEFAULT: '' (empty)
59 caltinay 3814 cc_extra = '-sox'
60 jfenwick 3024
61 jfenwick 3259 # Additional flags to add to the C++ compiler only
62     # DEFAULT: '' (empty)
63 caltinay 4511 cxx_extra = '-g -sox -I/sw/libs/numpy/x86_64/icc-13/numpy-1.6.2-py27/lib/python2.7/site-packages/numpy/core/include'
64 jfenwick 3024
65 jfenwick 3259 # Additional flags to add to the linker
66     # DEFAULT: '' (empty)
67 caltinay 4015 ld_extra = '-shared-intel -L/sw/libs/hdf/x86_64/gcc-4.3.2/hdf5-1.8.4-p1-intelmpi/lib'
68 jfenwick 3024
69 jfenwick 3259 # Whether to treat compiler warnings as errors
70     # DEFAULT: True
71 lgao 3513 werror = False
72 jfenwick 3024
73 jfenwick 3259 # Whether to build a debug version
74     # DEFAULT: False
75 gross 3449 # debug = True
76 jfenwick 3024
77 jfenwick 3259 # Set to True to print the full compiler/linker command line
78     # DEFAULT: False
79     verbose = True
80 jfenwick 3024
81 jfenwick 3259 # Set to True to add flags that enable OpenMP parallelization
82     # DEFAULT: False
83 gross 3449 openmp = True
84 jfenwick 3024
85 jfenwick 3259 # Additional compiler flags for OpenMP builds
86     # DEFAULT: compiler-dependent
87 caltinay 4090 #omp_flags = '-openmp -openmp-report=1'
88 jfenwick 3024
89 jfenwick 3259 # Additional linker flags for OpenMP builds
90     # DEFAULT: compiler-dependent
91     #omp_ldflags = '-fopenmp'
92 jfenwick 3024
93 jfenwick 3259 # Flavour of MPI implementation
94     # Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI'
95     # DEFAULT: 'none' (disable MPI)
96 lgao 3547 mpi = 'INTELMPI'
97     #mpi = 'none'
98 jfenwick 3024
99 jfenwick 3259 # Prefix or paths to MPI headers and libraries. See note above about prefixes.
100 caltinay 4489 mpi_prefix = '/sw/sdev/intel/impi/4.1.1.036/intel64'
101 jfenwick 3024
102 jfenwick 3259 # MPI libraries to link against
103     mpi_libs = ['mpi']
104 jfenwick 3024
105 jfenwick 3259 # Prefix or paths to boost-python headers and libraries. See note above.
106 caltinay 4089 boost_prefix = '/sw/libs/boost/x86_64/gcc-4.3.2/python-2.7.3/boost_1_51_0'
107 caltinay 3096
108 jfenwick 3259 # boost-python library/libraries to link against
109 caltinay 4089 boost_libs = ['boost_python']
110 jfenwick 3024
111 caltinay 3597 # Prefix or paths to CppUnit headers and libraries. See note above.
112     cppunit_prefix = '/sw/apps/cppunit/x86_64/gcc-4.3.2/cppunit-1.12.1'
113    
114     # CppUnit library/libraries to link against
115     #cppunit_libs = ['cppunit']
116    
117 jfenwick 3259 # Whether to use the netCDF library for dump file support
118     # DEFAULT: False
119     netcdf = True
120 jfenwick 3024
121 jfenwick 3259 # Prefix or paths to netCDF headers and libraries. See note above.
122 caltinay 3643 netcdf_prefix = '/sw/libs/netcdf/x86_64/gcc-4.3.2/netcdf-4.1.1'
123 caltinay 3096
124 jfenwick 3259 # netCDF library/libraries to link against
125     #netcdf_libs = ['netcdf_c++', 'netcdf']
126 jfenwick 3024
127 jfenwick 3259 # Whether to use the parMETIS library (only in conjunction with MPI)
128     # DEFAULT: False
129     parmetis = True
130 jfenwick 3024
131 jfenwick 3259 # Prefix or paths to parMETIS headers and libraries. See note above.
132 caltinay 4089 parmetis_prefix = '/sw/libs/parmetis/x86_64/icc-13/parmetis-4.0.2'
133 jfenwick 3024
134 jfenwick 3259 # parMETIS library/libraries to link against
135     #parmetis_libs = ['parmetis', 'metis']
136 jfenwick 3024
137 jfenwick 3259 # Whether to use the Intel PAPI (Performance API) library
138     # DEFAULT: False
139     #papi = True
140 jfenwick 3024
141 jfenwick 3259 # Prefix or paths to PAPI headers and libraries. See note above.
142     #papi_prefix = '/usr/local'
143 jfenwick 3024
144 jfenwick 3259 # PAPI library/libraries to link against
145     #papi_libs = ['papi']
146 jfenwick 3024
147 jfenwick 3259 # Whether to use PAPI to instrument solver iterations
148     # DEFAULT: False
149     #papi_instrument_solver = True
150 jfenwick 3024
151 jfenwick 3259 # Whether to use Intel MKL (Math Kernel Library)
152     # DEFAULT: False
153     mkl = True
154    
155     # Prefix or paths to MKL headers and libraries. See note above.
156 caltinay 4489 mkl_prefix = ['/sw/sdev/intel/composer_xe_2013.5.192/mkl/include', '/sw/sdev/intel/composer_xe_2013.5.192/mkl/lib/intel64']
157 jfenwick 3259
158     # MKL library/libraries to link against
159 caltinay 3842 mkl_libs = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'pthread']
160 jfenwick 3259
161     # Whether to use UMFPACK (requires AMD and BLAS)
162     # DEFAULT: False
163     umfpack = True
164    
165     # Prefix or paths to UMFPACK headers and libraries. See note above.
166 caltinay 4089 umfpack_prefix = '/sw/libs/umfpack/x86_64/icc-13/umfpack-5.6.1'
167 jfenwick 3259
168     # UMFPACK library/libraries to link against
169 caltinay 4089 umfpack_libs = ['umfpack', 'amd', 'suitesparseconfig']
170 jfenwick 3259
171 caltinay 3597 # Whether to use BoomerAMG (requires MPI)
172 lgao 3508 # DEFAULT: False
173 caltinay 3529 #boomeramg = True
174 lgao 3508
175 caltinay 3597 # Prefix or paths to BoomerAMG headers and libraries. See note above.
176 lgao 3508 boomeramg_prefix = '/sw/libs/hypre/x86_64/gcc-4.3.2/hypre-2.0.0'
177    
178     # BoomerAMG library/libraries to link against
179     boomeramg_libs = ['HYPRE']
180     #boomeramg_libs = ['HYPRE_IJ_mv', 'HYPRE_krylov', 'HYPRE_parcsr_ls']
181    
182 jfenwick 3259 # Flavour of LAPACK implementation
183     # Recognized values: 'none', 'clapack', 'mkl'
184     # DEFAULT: 'none' (do not use LAPACK)
185 lgao 3547 lapack = 'mkl'
186 jfenwick 3259
187     # Prefix or paths to LAPACK headers and libraries. See note above.
188     lapack_prefix = mkl_prefix
189    
190     # LAPACK library/libraries to link against
191 caltinay 3842 lapack_libs = ['mkl_core']
192 jfenwick 3259
193     # Whether to use LLNL's SILO library for Silo output file support in weipa
194     # DEFAULT: False
195 caltinay 3836 silo = True
196 jfenwick 3259
197     # Prefix or paths to SILO headers and libraries. See note above.
198 caltinay 3643 silo_prefix = '/sw/libs/silo/x86_64/gcc-4.3.2/silo-4.8'
199 jfenwick 3259
200     # SILO library/libraries to link against
201     silo_libs = ['siloh5', 'hdf5']
202    
203     # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
204     # DEFAULT: False
205 caltinay 4089 visit = False
206 jfenwick 3259
207     # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
208 caltinay 4089 visit_prefix = '/sw/apps/visit/x86_64/gcc-4.3.2/visit-2.6.0/2.6.0/linux-x86_64/libsim/V2'
209 jfenwick 3259
210     # Sim2 library/libraries to link against
211     #visit_libs = ['simV2']
212    
213 caltinay 3598 # Build dynamic libraries only
214     #DEFAULT: False
215 caltinay 4015 #build_shared = True
216 caltinay 3598
217    
218 caltinay 3597 ### ADVANCED OPTIONS ###
219     # Do not change the following options unless you know what they do
220    
221 caltinay 3529 # Use intel's VSL library for random data
222 caltinay 3597 # DEFAULT: False
223 lgao 3545 #vsl_random = True
224 jfenwick 3506
225 jfenwick 3259 # Extra libraries to link with
226     #sys_libs = []
227    
228     # Additional environmental variables to export to the tools
229     env_export = ['INTEL_LICENSE_FILE']
230    
231 caltinay 4489 tools_names = [('intelc',{'topdir':'/sw/sdev/intel/composer_xe_2013.5.192'})]
232 jfenwick 3259
233     #iknowwhatimdoing = False
234    
235     #forcelazy = 'leave_alone'
236    
237     #forcecollres = 'leave_alone'
238    

  ViewVC Help
Powered by ViewVC 1.1.26