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

Contents of /trunk/scons/savanna_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4520 - (show annotations)
Thu Aug 22 06:42:57 2013 UTC (5 years, 8 months ago) by caltinay
File MIME type: text/x-python
File size: 6828 byte(s)
Removing spurious usage of C compiler:
-Changed all scons tests to use C++ compiler
-Renamed paso profiling files (unused)
-Updated most options files (removal of options and updated comments)

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

  ViewVC Help
Powered by ViewVC 1.1.26