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

Contents of /trunk/scons/vmw_options.py

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26