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

Contents of /trunk/scons/savanna_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6010 - (show annotations)
Wed Mar 2 04:26:26 2016 UTC (3 years, 3 months ago) by caltinay
File MIME type: text/x-python
File size: 7292 byte(s)
silence the auto_ptr deprecation warning on savanna.

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2016 by The 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 = 203
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 = '-sox -I/sw/pymodules/2.7/scipy-0.15.1-haswell/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.1.1.109/intel64'
94
95 # MPI libraries to link against
96 #mpi_libs = ['mpi']
97
98 #cuda = True
99 nvccflags = "-arch=sm_35 -ccbin=icpc -DBOOST_NOINLINE='__attribute__((noinline))'"
100
101 # Prefix or paths to NVidia CUDA installation. See note above. [new in 202]
102 cuda_prefix = ['/sw/libs/cuda/7.5/include', '/sw/libs/cuda/7.5/lib64']
103
104 # Prefix or paths to boost-python headers and libraries. See note above.
105 boost_prefix = '/sw/libs/boost/1.57.0'
106
107 # boost-python library/libraries to link against
108 boost_libs = ['boost_python']
109
110 # Prefix or paths to CppUnit headers and libraries. See note above.
111 cppunit_prefix = '/sw/libs/cppunit/1.13.2'
112
113 # CppUnit library/libraries to link against
114 #cppunit_libs = ['cppunit']
115
116 # Whether to use the netCDF library for dump file support
117 # DEFAULT: False
118 netcdf = True
119
120 # Prefix or paths to netCDF headers and libraries. See note above.
121 netcdf_prefix = '/sw/libs/netcdf/4.1.3'
122
123 # netCDF library/libraries to link against
124 netcdf_libs = ['netcdf_c++', 'netcdf', 'hdf5']
125
126 # Whether to use the parMETIS library (only in conjunction with MPI)
127 # DEFAULT: False
128 parmetis = True
129
130 # Prefix or paths to parMETIS headers and libraries. See note above.
131 parmetis_prefix = '/sw/libs/parmetis/4.0.3-impi'
132
133 # parMETIS library/libraries to link against
134 parmetis_libs = ['parmetis']
135
136 # Whether to use the Intel PAPI (Performance API) library
137 # DEFAULT: False
138 #papi = True
139
140 # Prefix or paths to PAPI headers and libraries. See note above.
141 #papi_prefix = '/usr/local'
142
143 # PAPI library/libraries to link against
144 #papi_libs = ['papi']
145
146 # Whether to use PAPI to instrument solver iterations
147 # DEFAULT: False
148 #papi_instrument_solver = True
149
150 # Whether to use Intel MKL (Math Kernel Library)
151 # DEFAULT: False
152 mkl = True
153
154 # Prefix or paths to MKL headers and libraries. See note above.
155 _mklroot='/sw/intel/compilers_and_libraries_2016.0.109/linux/mkl'
156 mkl_prefix = ['%s/include'%_mklroot, '%s/lib/intel64'%_mklroot]
157
158 # MKL library/libraries to link against
159 mkl_libs = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'pthread']
160
161 # Whether to use UMFPACK (requires AMD and BLAS)
162 # DEFAULT: False
163 #umfpack = True
164
165 # Prefix or paths to UMFPACK headers and libraries. See note above.
166 #umfpack_prefix = '/sw/libs/umfpack/x86_64/icc-13/umfpack-5.6.1'
167
168 # UMFPACK library/libraries to link against
169 #umfpack_libs = ['umfpack', 'amd', 'suitesparseconfig']
170
171 # Whether to use BoomerAMG (requires MPI)
172 # DEFAULT: False
173 #boomeramg = True
174
175 # Prefix or paths to BoomerAMG headers and libraries. See note above.
176 boomeramg_prefix = '/sw/libs/hypre/2.0.0'
177
178 # BoomerAMG library/libraries to link against
179 boomeramg_libs = ['HYPRE']
180 #boomeramg_libs = ['HYPRE_IJ_mv', 'HYPRE_krylov', 'HYPRE_parcsr_ls']
181
182 # Flavour of LAPACK implementation
183 # Recognized values: 'none', 'clapack', 'mkl'
184 # DEFAULT: 'none' (do not use LAPACK)
185 lapack = 'mkl'
186
187 # Prefix or paths to LAPACK headers and libraries. See note above.
188 lapack_prefix = mkl_prefix
189
190 # LAPACK library/libraries to link against
191 lapack_libs = ['mkl_core']
192
193 # Whether to use LLNL's SILO library for Silo output file support in weipa
194 # DEFAULT: False
195 silo = True
196
197 # Prefix or paths to SILO headers and libraries. See note above.
198 silo_prefix = '/sw/libs/silo/4.10.2'
199
200 # SILO library/libraries to link against
201 silo_libs = ['siloh5', 'hdf5']
202
203 # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
204 # DEFAULT: False
205 visit = False
206
207 # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
208 visit_prefix = '/sw/apps/visit/2.7.0/linux-x86_64/libsim/V2'
209
210 # Sim2 library/libraries to link against
211 #visit_libs = ['simV2']
212
213
214 ### ADVANCED OPTIONS ###
215 # Do not change the following options unless you know what they do
216
217 prelaunch = ""
218 launcher = "srun --nodes=%n --ntasks=%N --ntasks-per-node=%p --cpus-per-task=%t --cpu_bind=quiet %b"
219 postlaunch = ""
220
221 # Use intel's VSL library for random data
222 # DEFAULT: False
223 #vsl_random = True
224
225 # Extra libraries to link with
226 #sys_libs = []
227
228 # Additional environmental variables to export to the tools
229 env_export = ['INTEL_LICENSE_FILE']
230
231 tools_names = [('intelc',{'topdir':'/sw/intel/compilers_and_libraries_2016.0.109'})]
232
233
234 #iknowwhatimdoing = False
235
236 #forcelazy = 'leave_alone'
237
238 #forcecollres = 'leave_alone'
239
240 # uncomment the following four options to build with mpt (check modules!)
241 #build_dir = 'buildmpt'
242 #mpi = 'MPT'
243 #mpi_prefix = '/opt/sgi/mpt/mpt-2.10'
244 #parmetis_prefix = '/sw/libs/parmetis/4.0.3-mpt'

  ViewVC Help
Powered by ViewVC 1.1.26