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

Contents of /trunk/scons/savanna_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5431 - (show annotations)
Fri Jan 23 02:32:53 2015 UTC (4 years, 4 months ago) by caltinay
File MIME type: text/x-python
File size: 6878 byte(s)
updated savanna options file.

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

  ViewVC Help
Powered by ViewVC 1.1.26