1 |
|
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 |
import os |
15 |
|
16 |
# PREFIXES: |
17 |
# There are two ways to specify where to find dependent headers and libraries |
18 |
# (via the <dependency>_prefix): |
19 |
# 1) If your installation follows the general scheme where headers are located |
20 |
# in <prefix>/include[32,64], and libraries in <prefix>/lib[32,64] then |
21 |
# it is sufficient to specify this prefix, e.g. boost_prefix='C:/python' |
22 |
# 2) Otherwise provide a list with two elements, where the first one is the |
23 |
# include path, and the second the library path, e.g. |
24 |
# boost_prefix=['C:/boost/include/boost1_44', 'C:/boost/lib'] |
25 |
# All <dependency>_prefix settings default to '/usr' so have to be set |
26 |
# manually on Windows. |
27 |
|
28 |
# The options file version. SCons will refuse to build if there have been |
29 |
# changes to the set of variables and your file has not been updated. |
30 |
# This setting is mandatory. |
31 |
escript_opts_version = 200 |
32 |
|
33 |
# Installation prefix. Files will be installed in subdirectories underneath. |
34 |
# DEFAULT: '.' (current directory) |
35 |
#prefix = 'C:/escript' |
36 |
|
37 |
# Top-level directory for intermediate build and test files. |
38 |
# DEFAULT: 'build' |
39 |
#build_dir = 'build' |
40 |
|
41 |
# C compiler command name or full path. |
42 |
# DEFAULT: auto-detected |
43 |
#cc = 'gcc' |
44 |
|
45 |
# C++ compiler command name or full path. |
46 |
# DEFAULT: auto-detected |
47 |
#cxx = 'g++' |
48 |
|
49 |
# Flags to use with both C and C++ compilers. Do not set unless you know |
50 |
# what you are doing - use cc_extra to specify additional flags! |
51 |
# DEFAULT: compiler-dependent |
52 |
cc_flags = '/EHsc /GR /MD /I"C:/Program Files (x86)/Intel/Composer XE 2011 SP1/compiler/include/" /DCPPUNIT_BUILD_DLL' |
53 |
|
54 |
# Additional compiler (optimization) flags for non-debug builds |
55 |
# DEFAULT: compiler-dependent |
56 |
cc_optim = '/fast /Oi /W3 /Qinline-factor- /Qinline-min-size=0 /Qunroll' |
57 |
cc_optim = '/fast /Oi /Qunroll' |
58 |
|
59 |
# Additional compiler flags for debug builds |
60 |
# DEFAULT: compiler-dependent |
61 |
#cc_debug = '/Od /RTCcsu /Zi /Y- /debug:all /Qtrapuv' |
62 |
|
63 |
# Additional flags to add to the C compiler only |
64 |
# DEFAULT: '' (empty) |
65 |
#cc_extra = '' |
66 |
|
67 |
# Additional flags to add to the C++ compiler only |
68 |
# DEFAULT: '' (empty) |
69 |
#cxx_extra = '' |
70 |
|
71 |
# Additional flags to add to the linker |
72 |
# DEFAULT: '' (empty) |
73 |
ld_extra = '/libpath:"C:/Program Files (x86)/Intel/Composer XE 2011 SP1/compiler/lib/ia32"' |
74 |
|
75 |
# Whether to treat compiler warnings as errors |
76 |
# DEFAULT: True |
77 |
werror = False |
78 |
|
79 |
# Whether to build a debug version |
80 |
# DEFAULT: False |
81 |
#debug = True |
82 |
|
83 |
# Set to True to print the full compiler/linker command line |
84 |
# DEFAULT: False |
85 |
verbose = False |
86 |
|
87 |
# Set to True to add flags that enable OpenMP parallelization |
88 |
# DEFAULT: False |
89 |
openmp = True |
90 |
|
91 |
# Additional compiler flags for OpenMP builds |
92 |
# /Qvec-report0 - Vectorise quietly - http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/cpp/lin/copts/common_options/option_vec_report.htm |
93 |
# /Qopenmp-report0 - OpenMP quietly (No diagnostics report generated.) - http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/cpp/lin/optaps/common/optaps_perf_openmprep.htm |
94 |
# DEFAULT: compiler-dependent |
95 |
omp_flags = '/Qvec-report0 /Qopenmp /Qopenmp-report0 /Qparallel' |
96 |
|
97 |
# Additional linker flags for OpenMP builds |
98 |
# DEFAULT: compiler-dependent |
99 |
omp_ldflags = '' |
100 |
|
101 |
# Flavour of MPI implementation |
102 |
# Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI' |
103 |
# DEFAULT: 'none' (disable MPI) |
104 |
mpi = 'MPICH2' #'MPICH2' |
105 |
|
106 |
# Prefix or paths to MPI headers and libraries. See note above about prefixes. |
107 |
mpi_prefix = "C:/Program Files (x86)/MPICH2" |
108 |
|
109 |
# MPI libraries to link against |
110 |
mpi_libs = ['mpi'] |
111 |
|
112 |
dotdot = os.path.realpath('..') |
113 |
|
114 |
# Prefix or paths to boost-python headers and libraries. See note above. |
115 |
boost_prefix = ['C:/projects/boost_1_47_0', 'C:/projects/boost_1_47_0/stage/lib'] |
116 |
|
117 |
# boost-python library/libraries to link against |
118 |
boost_libs = ['boost_python-iw-mt-1_47'] |
119 |
|
120 |
# Prefix or paths to CppUnit headers and libraries. See note above. |
121 |
#cppunit_prefix = 'C:/CppUnit' |
122 |
|
123 |
# CppUnit library/libraries to link against |
124 |
#cppunit_libs = ['cppunit'] |
125 |
|
126 |
# Whether to use the netCDF library for dump file support |
127 |
# DEFAULT: False |
128 |
netcdf = False |
129 |
|
130 |
# Prefix or paths to netCDF headers and libraries. See note above. |
131 |
netcdf_prefix = [os.path.join(dotdot, 'netcdf', 'src', 'include'), os.path.join(dotdot, 'netcdf', 'lib')] |
132 |
|
133 |
# netCDF library/libraries to link against |
134 |
netcdf_libs = ['netcdf_cpp', 'netcdf'] |
135 |
|
136 |
# Whether to use the parMETIS library (only in conjunction with MPI) |
137 |
# DEFAULT: False |
138 |
#parmetis = True |
139 |
|
140 |
# Prefix or paths to parMETIS headers and libraries. See note above. |
141 |
#parmetis_prefix = 'C:/parmetis' |
142 |
|
143 |
# parMETIS library/libraries to link against |
144 |
#parmetis_libs = ['parmetis', 'metis'] |
145 |
|
146 |
# Whether to use the Intel PAPI (Performance API) library |
147 |
# DEFAULT: False |
148 |
#papi = True |
149 |
|
150 |
# Prefix or paths to PAPI headers and libraries. See note above. |
151 |
#papi_prefix = 'C:/papi' |
152 |
|
153 |
# PAPI library/libraries to link against |
154 |
#papi_libs = ['papi'] |
155 |
|
156 |
# Whether to use PAPI to instrument solver iterations |
157 |
# DEFAULT: False |
158 |
#papi_instrument_solver = True |
159 |
|
160 |
# Whether to use Intel MKL (Math Kernel Library) |
161 |
# DEFAULT: False |
162 |
mkl = True |
163 |
|
164 |
# Prefix or paths to MKL headers and libraries. See note above. |
165 |
mkl_base_dir = 'C:/Program Files (x86)/Intel/Composer XE 2011 SP1/mkl' |
166 |
mkl_prefix = [os.path.join(mkl_base_dir, 'include'), os.path.join(mkl_base_dir, 'lib/ia32')] |
167 |
|
168 |
# MKL library/libraries to link against |
169 |
mkl_libs = ['mkl_intel_c_dll', 'mkl_intel_thread_dll', 'mkl_core_dll', 'libiomp5md', 'mkl_solver', 'mkl_intel_thread', 'mkl_core'] |
170 |
|
171 |
# Whether to use UMFPACK (requires AMD and BLAS) |
172 |
# DEFAULT: False |
173 |
#umfpack = True |
174 |
|
175 |
# Prefix or paths to UMFPACK headers and libraries. See note above. |
176 |
#umfpack_prefix = 'C:/umfpack' |
177 |
|
178 |
# UMFPACK library/libraries to link against |
179 |
#umfpack_libs = ['umfpack'] |
180 |
|
181 |
# Whether to use BoomerAMG (requires MPI) |
182 |
# DEFAULT: False |
183 |
#boomeramg = True |
184 |
|
185 |
# Prefix or paths to BoomerAMG headers and libraries. See note above. |
186 |
#boomeramg_prefix = 'C:/boomeramg' |
187 |
|
188 |
# BoomerAMG library/libraries to link against |
189 |
#boomeramg_libs = ['HYPRE'] |
190 |
|
191 |
# Flavour of LAPACK implementation |
192 |
# Recognized values: 'none', 'clapack', 'mkl' |
193 |
# DEFAULT: 'none' (do not use LAPACK) |
194 |
#lapack = 'clapack' |
195 |
lapack = 'mkl' |
196 |
|
197 |
# Prefix or paths to LAPACK headers and libraries. See note above. |
198 |
#lapack_prefix = 'C:/lapack' |
199 |
lapack_prefix = mkl_prefix |
200 |
|
201 |
# LAPACK library/libraries to link against |
202 |
lapack_libs = ['mkl_lapack95'] |
203 |
|
204 |
# Whether to use LLNL's SILO library for Silo output file support in weipa |
205 |
# DEFAULT: False |
206 |
#silo = True |
207 |
|
208 |
# Prefix or paths to SILO headers and libraries. See note above. |
209 |
#silo_prefix = 'C:/silo' |
210 |
|
211 |
# SILO library/libraries to link against |
212 |
#silo_libs = ['siloh5', 'hdf5'] |
213 |
|
214 |
# Whether to use LLNL's VisIt simulation interface (only version 2 supported) |
215 |
# DEFAULT: False |
216 |
#visit = True |
217 |
|
218 |
# Prefix or paths to VisIt's sim2 headers and libraries. See note above. |
219 |
#visit_prefix = 'C:/visit/2.1.0/linux-intel/libsim/V2' |
220 |
|
221 |
# Sim2 library/libraries to link against |
222 |
#visit_libs = ['simV2'] |
223 |
|
224 |
# Whether to enable the deprecated PyVisi interface (requires the VTK python |
225 |
# modules) |
226 |
# DEFAULT: False |
227 |
#pyvisi = True |
228 |
|
229 |
# Build dynamic libraries only |
230 |
#DEFAULT: False |
231 |
build_shared = True |
232 |
|
233 |
|
234 |
### ADVANCED OPTIONS ### |
235 |
# Do not change the following options unless you know what they do |
236 |
|
237 |
# Use intel's VSL library for random data |
238 |
# DEFAULT: False |
239 |
#vsl_random = True |
240 |
|
241 |
# Extra libraries to link with |
242 |
# sys_libs = ['C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib/Ws2_32', 'C:\Program Files\Intel\Compiler\C++\9.1\IA32\Lib\libguide40'] |
243 |
sys_libs = [''] |
244 |
|
245 |
# Additional environmental variables to export to the tools |
246 |
#env_export = [] |
247 |
|
248 |
# overloading - [('intelc',{'topdir':'/sw/sdev/intel/cc/x86_64/10.1.025'})] |
249 |
tools_names = [('intelc',{'topdir':'C:/Program Files (x86)/Intel/Composer XE 2011 SP1'})] |
250 |
|
251 |
#iknowwhatimdoing = False |
252 |
|
253 |
#forcelazy = 'leave_alone' |
254 |
|
255 |
#forcecollres = 'leave_alone' |
256 |
|