1 |
gross |
3624 |
|
2 |
|
|
######################################################## |
3 |
|
|
# |
4 |
|
|
# Copyright (c) 2003-2010 by University of Queensland |
5 |
|
|
# Earth Systems Science Computational Center (ESSCC) |
6 |
|
|
# http://www.uq.edu.au/esscc |
7 |
|
|
# |
8 |
|
|
# Primary Business: Queensland, Australia |
9 |
|
|
# Licensed under the Open Software License version 3.0 |
10 |
|
|
# http://www.opensource.org/licenses/osl-3.0.php |
11 |
|
|
# |
12 |
|
|
######################################################## |
13 |
|
|
# |
14 |
|
|
|
15 |
|
|
# |
16 |
|
|
# On epic.ivec.org: link this file to epicuser1_options.py and |
17 |
|
|
# epicuser2_options.py |
18 |
|
|
# |
19 |
|
|
|
20 |
|
|
# The options file version. SCons will refuse to build if there have been |
21 |
|
|
# changes to the set of variables and your file has not been updated. |
22 |
|
|
# This setting is mandatory. |
23 |
|
|
escript_opts_version = 201 |
24 |
|
|
|
25 |
|
|
# Installation prefix. Files will be installed in subdirectories underneath. |
26 |
|
|
# DEFAULT: '.' (current directory) |
27 |
|
|
#prefix = '/opt/escript/3.2.1' |
28 |
|
|
|
29 |
|
|
# Top-level directory for intermediate build and test files. |
30 |
|
|
# DEFAULT: 'build' |
31 |
|
|
build_dir = 'build' |
32 |
|
|
|
33 |
|
|
# C compiler command name or full path. |
34 |
|
|
# DEFAULT: auto-detected |
35 |
lgao |
3646 |
#cc = 'icc' |
36 |
|
|
cc = 'gcc' |
37 |
gross |
3624 |
|
38 |
|
|
# C++ compiler command name or full path. |
39 |
|
|
# DEFAULT: auto-detected |
40 |
lgao |
3646 |
#cxx = 'icc' |
41 |
|
|
cxx = 'g++' |
42 |
gross |
3624 |
|
43 |
|
|
# Flags to use with both C and C++ compilers. Do not set unless you know |
44 |
|
|
# what you are doing - use cc_extra to specify additional flags! |
45 |
|
|
# DEFAULT: compiler-dependent |
46 |
|
|
#cc_flags = '' |
47 |
|
|
|
48 |
|
|
# Additional compiler (optimization) flags for non-debug builds |
49 |
|
|
# DEFAULT: compiler-dependent |
50 |
|
|
#cc_optim = '-O3 -mmmx -msse' |
51 |
|
|
|
52 |
|
|
# Additional compiler flags for debug builds |
53 |
|
|
# DEFAULT: compiler-dependent |
54 |
lgao |
3646 |
cc_debug = '-g' |
55 |
gross |
3624 |
|
56 |
|
|
# Additional flags to add to the C compiler only |
57 |
|
|
# DEFAULT: '' (empty) |
58 |
lgao |
3646 |
#cc_extra = '-sox' |
59 |
|
|
cc_extra = '-fopenmp' |
60 |
gross |
3624 |
|
61 |
|
|
# Additional flags to add to the C++ compiler only |
62 |
|
|
# DEFAULT: '' (empty) |
63 |
lgao |
3646 |
#cxx_extra = '-sox' |
64 |
|
|
cxx_extra = '-fopenmp' |
65 |
gross |
3624 |
|
66 |
|
|
# Additional flags to add to the linker |
67 |
|
|
# DEFAULT: '' (empty) |
68 |
lgao |
3646 |
#ld_extra = '-shared-intel -L/opt/hdf5/1.8.6/lib' |
69 |
|
|
ld_extra = '-L/opt/hdf5/1.8.6/lib -fopenmp' |
70 |
gross |
3624 |
|
71 |
|
|
# Whether to treat compiler warnings as errors |
72 |
|
|
# DEFAULT: True |
73 |
|
|
werror = False |
74 |
|
|
|
75 |
|
|
# Whether to build a debug version |
76 |
|
|
# DEFAULT: False |
77 |
lgao |
3646 |
debug = True |
78 |
gross |
3624 |
|
79 |
|
|
# Set to True to print the full compiler/linker command line |
80 |
|
|
# DEFAULT: False |
81 |
|
|
verbose = True |
82 |
|
|
|
83 |
|
|
# Set to True to add flags that enable OpenMP parallelization |
84 |
|
|
# DEFAULT: False |
85 |
lgao |
3646 |
#openmp = True |
86 |
|
|
openmp = False |
87 |
gross |
3624 |
|
88 |
|
|
# Additional compiler flags for OpenMP builds |
89 |
|
|
# DEFAULT: compiler-dependent |
90 |
|
|
omp_flags = '-openmp -openmp-report2' |
91 |
|
|
|
92 |
|
|
# Additional linker flags for OpenMP builds |
93 |
|
|
# DEFAULT: compiler-dependent |
94 |
|
|
omp_ldflags = '-openmp' |
95 |
|
|
|
96 |
|
|
# Flavour of MPI implementation |
97 |
|
|
# Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI' |
98 |
|
|
# DEFAULT: 'none' (disable MPI) |
99 |
lgao |
3646 |
#mpi = 'OPENMPI' |
100 |
|
|
mpi = 'none' |
101 |
gross |
3624 |
|
102 |
|
|
# Prefix or paths to MPI headers and libraries. See note above about prefixes. |
103 |
|
|
mpi_prefix = ['/opt/mpi/gcc/openmpi/1.4.3/include', '/opt/mpi/gcc/openmpi/1.4.3/lib'] |
104 |
|
|
|
105 |
|
|
# MPI libraries to link against |
106 |
|
|
mpi_libs = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal'] |
107 |
|
|
|
108 |
|
|
# Prefix or paths to python headers and libraries. See note above. |
109 |
|
|
# By default, this is determined using the running python executable. |
110 |
|
|
python_prefix = ['/opt/python/2.6.7/include/python2.6', '/opt/python/2.6.7/lib'] |
111 |
lgao |
3646 |
#python_prefix = ['/opt/python/2.7.2/include/python2.7', '/opt/python/2.7.2/lib'] |
112 |
gross |
3624 |
|
113 |
|
|
# Prefix or paths to boost-python headers and libraries. See note above. |
114 |
lgao |
3646 |
#boost_prefix = ['/opt/boost/1.39.0/include/boost-1_39', '/opt/boost/1.39.0/lib'] |
115 |
|
|
boost_prefix = ['/opt/boost/1.46.1-python-2.6/include/', '/opt/boost/1.46.1-python-2.6/lib'] |
116 |
gross |
3624 |
|
117 |
|
|
# boost-python library/libraries to link against |
118 |
lgao |
3646 |
#boost_libs = ['boost_python-gcc41-mt-1_39'] |
119 |
|
|
boost_libs = ['boost_python'] |
120 |
gross |
3624 |
|
121 |
gross |
3626 |
|
122 |
|
|
# Prefix or paths to CppUnit headers and libraries. See note above. |
123 |
|
|
cppunit_prefix = '/opt/cppunit/1.12.1' |
124 |
|
|
|
125 |
|
|
# CppUnit library/libraries to link against |
126 |
|
|
#cppunit_libs = ['cppunit'] |
127 |
|
|
|
128 |
|
|
|
129 |
gross |
3624 |
# Whether to use the netCDF library for dump file support |
130 |
|
|
# DEFAULT: False |
131 |
|
|
netcdf = True |
132 |
|
|
|
133 |
|
|
# Prefix or paths to netCDF headers and libraries. See note above. |
134 |
|
|
netcdf_prefix = ['/opt/netcdf/4.0.1/include', '/opt/netcdf/4.0.1/lib'] |
135 |
|
|
|
136 |
|
|
# netCDF library/libraries to link against |
137 |
|
|
netcdf_libs = ['netcdf_c++', 'netcdf'] |
138 |
|
|
|
139 |
|
|
# Whether to use the parMETIS library (only in conjunction with MPI) |
140 |
|
|
# DEFAULT: False |
141 |
|
|
parmetis = True |
142 |
|
|
|
143 |
|
|
# Prefix or paths to parMETIS headers and libraries. See note above. |
144 |
|
|
parmetis_prefix = ['/opt/parmetis/3.1.1/include', '/opt/parmetis/3.1.1/lib'] |
145 |
|
|
|
146 |
|
|
# parMETIS library/libraries to link against |
147 |
|
|
parmetis_libs = ['parmetis', 'metis'] |
148 |
|
|
|
149 |
|
|
# Whether to use the Intel PAPI (Performance API) library |
150 |
|
|
# DEFAULT: False |
151 |
|
|
#papi = True |
152 |
|
|
|
153 |
|
|
# Prefix or paths to PAPI headers and libraries. See note above. |
154 |
|
|
#papi_prefix = '/usr/local' |
155 |
|
|
|
156 |
|
|
# PAPI library/libraries to link against |
157 |
|
|
#papi_libs = ['papi'] |
158 |
|
|
|
159 |
|
|
# Whether to use PAPI to instrument solver iterations |
160 |
|
|
# DEFAULT: False |
161 |
|
|
#papi_instrument_solver = True |
162 |
|
|
|
163 |
|
|
# Whether to use Intel MKL (Math Kernel Library) |
164 |
|
|
# DEFAULT: False |
165 |
|
|
mkl = True |
166 |
|
|
|
167 |
|
|
# Prefix or paths to MKL headers and libraries. See note above. |
168 |
|
|
mkl_prefix = ['/opt/intel-mkl/10.3.5.220/mkl/include', '/opt/intel-mkl/10.3.5.220/mkl/lib/intel64'] |
169 |
|
|
|
170 |
|
|
# MKL library/libraries to link against |
171 |
lgao |
3646 |
mkl_libs = ['mkl_intel_lp64', 'mkl_gnu_thread', 'libmkl_lapack95_lp64', 'mkl_core', 'pthread'] |
172 |
gross |
3624 |
|
173 |
|
|
# Whether to use UMFPACK (requires AMD and BLAS) |
174 |
|
|
# DEFAULT: False |
175 |
|
|
#umfpack = True |
176 |
|
|
|
177 |
|
|
# Prefix or paths to UMFPACK headers and libraries. See note above. |
178 |
|
|
#umfpack_prefix = ['/usr/include/suitesparse', '/usr/lib'] |
179 |
|
|
|
180 |
|
|
# UMFPACK library/libraries to link against |
181 |
|
|
#umfpack_libs = ['umfpack'] |
182 |
|
|
|
183 |
|
|
# Flavour of LAPACK implementation |
184 |
|
|
# Recognized values: 'none', 'clapack', 'mkl' |
185 |
|
|
# DEFAULT: 'none' (do not use LAPACK) |
186 |
|
|
lapack = 'mkl' |
187 |
|
|
|
188 |
|
|
# Prefix or paths to LAPACK headers and libraries. See note above. |
189 |
|
|
lapack_prefix = mkl_prefix |
190 |
|
|
|
191 |
|
|
# LAPACK library/libraries to link against |
192 |
|
|
lapack_libs = ['mkl_rt'] |
193 |
|
|
|
194 |
|
|
# Whether to use LLNL's SILO library for Silo output file support in weipa |
195 |
|
|
# DEFAULT: False |
196 |
gross |
3626 |
silo = True |
197 |
gross |
3624 |
|
198 |
|
|
# Prefix or paths to SILO headers and libraries. See note above. |
199 |
gross |
3626 |
silo_prefix = [ '/opt/silo/4.7.2/include', '/opt/silo/4.7.2/lib'] |
200 |
|
|
#silo_prefix = [ '/opt/silo/4.7.2/include', '/opt/silo/4.7.2/lib' , '/opt/hdf5/1.8.6/lib' ] |
201 |
gross |
3624 |
|
202 |
|
|
# SILO library/libraries to link against |
203 |
gross |
3626 |
silo_libs = ['siloh5', 'hdf5'] |
204 |
gross |
3624 |
|
205 |
|
|
# Whether to use LLNL's VisIt simulation interface (only version 2 supported) |
206 |
|
|
# DEFAULT: False |
207 |
|
|
visit = True |
208 |
|
|
|
209 |
|
|
# Prefix or paths to VisIt's sim2 headers and libraries. See note above. |
210 |
|
|
visit_prefix = '/opt/visit/2.3.1/2.3.1/linux-x86_64/libsim/V2/' |
211 |
|
|
|
212 |
|
|
# Sim2 library/libraries to link against |
213 |
|
|
#visit_libs = ['simV2'] |
214 |
|
|
|
215 |
|
|
# Whether to enable the deprecated PyVisi interface (requires the VTK python |
216 |
|
|
# modules) |
217 |
|
|
# DEFAULT: False |
218 |
|
|
#pyvisi = True |
219 |
gross |
3626 |
# Whether to use BoomerAMG (requires MPI) |
220 |
|
|
# DEFAULT: False |
221 |
lgao |
3646 |
boomeramg = True |
222 |
gross |
3624 |
|
223 |
gross |
3626 |
# Prefix or paths to BoomerAMG headers and libraries. See note above. |
224 |
lgao |
3646 |
boomeramg_prefix = '/opt/hypre/2.0.0/' |
225 |
gross |
3624 |
|
226 |
gross |
3626 |
# BoomerAMG library/libraries to link against |
227 |
lgao |
3646 |
boomeramg_libs = ['HYPRE'] |
228 |
gross |
3626 |
#boomeramg_libs = ['HYPRE_IJ_mv', 'HYPRE_krylov', 'HYPRE_parcsr_ls'] |
229 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
gross |
3624 |
### ADVANCED OPTIONS ### |
235 |
|
|
# Do not change the following options unless you know what they do |
236 |
|
|
|
237 |
|
|
# Extra libraries to link with |
238 |
|
|
#sys_libs = [] |
239 |
|
|
|
240 |
|
|
# Additional environmental variables to export to the tools |
241 |
|
|
#env_export = [] |
242 |
|
|
|
243 |
|
|
# Build a shared esysUtils library |
244 |
|
|
#share_esysutils = True |
245 |
|
|
|
246 |
|
|
# Build a shared paso library |
247 |
|
|
#share_paso = True |
248 |
|
|
|
249 |
|
|
#tools_names = ['default'] |
250 |
|
|
|
251 |
|
|
#iknowwhatimdoing = False |
252 |
|
|
|
253 |
|
|
#forcelazy = 'leave_alone' |
254 |
|
|
|
255 |
|
|
#forcecollres = 'leave_alone' |
256 |
|
|
|