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

Contents of /trunk/scons/savanna_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5435 - (show annotations)
Tue Jan 27 00:15:26 2015 UTC (4 years, 4 months ago) by caltinay
File MIME type: text/x-python
File size: 7122 byte(s)
option 'thrust_prefix' was never used - updated to cuda_prefix and added
detection code. Updated savanna options.

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 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/6.5/include', '/sw/libs/cuda/6.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 mkl_prefix = ['/sw/intel/composer_xe_2015.1.133/mkl/include', '/sw/intel/composer_xe_2015.1.133/mkl/lib/intel64']
156
157 # MKL library/libraries to link against
158 mkl_libs = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'pthread']
159
160 # Whether to use UMFPACK (requires AMD and BLAS)
161 # DEFAULT: False
162 #umfpack = True
163
164 # Prefix or paths to UMFPACK headers and libraries. See note above.
165 #umfpack_prefix = '/sw/libs/umfpack/x86_64/icc-13/umfpack-5.6.1'
166
167 # UMFPACK library/libraries to link against
168 #umfpack_libs = ['umfpack', 'amd', 'suitesparseconfig']
169
170 # Whether to use BoomerAMG (requires MPI)
171 # DEFAULT: False
172 #boomeramg = True
173
174 # Prefix or paths to BoomerAMG headers and libraries. See note above.
175 boomeramg_prefix = '/sw/libs/hypre/2.0.0'
176
177 # BoomerAMG library/libraries to link against
178 boomeramg_libs = ['HYPRE']
179 #boomeramg_libs = ['HYPRE_IJ_mv', 'HYPRE_krylov', 'HYPRE_parcsr_ls']
180
181 # Flavour of LAPACK implementation
182 # Recognized values: 'none', 'clapack', 'mkl'
183 # DEFAULT: 'none' (do not use LAPACK)
184 lapack = 'mkl'
185
186 # Prefix or paths to LAPACK headers and libraries. See note above.
187 lapack_prefix = mkl_prefix
188
189 # LAPACK library/libraries to link against
190 lapack_libs = ['mkl_core']
191
192 # Whether to use LLNL's SILO library for Silo output file support in weipa
193 # DEFAULT: False
194 silo = True
195
196 # Prefix or paths to SILO headers and libraries. See note above.
197 silo_prefix = '/sw/libs/silo/4.10.2'
198
199 # SILO library/libraries to link against
200 silo_libs = ['siloh5', 'hdf5']
201
202 # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
203 # DEFAULT: False
204 visit = False
205
206 # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
207 visit_prefix = '/sw/apps/visit/2.7.0/linux-x86_64/libsim/V2'
208
209 # Sim2 library/libraries to link against
210 #visit_libs = ['simV2']
211
212 # Build dynamic libraries only
213 #DEFAULT: False
214 build_shared = True
215
216
217 ### ADVANCED OPTIONS ###
218 # Do not change the following options unless you know what they do
219
220 prelaunch = ""
221 launcher = "srun --nodes=%n --ntasks-per-node=%p --cpus-per-task=%t --cpu_bind=verbose %b"
222 postlaunch = ""
223
224 # Use intel's VSL library for random data
225 # DEFAULT: False
226 #vsl_random = True
227
228 # Extra libraries to link with
229 #sys_libs = []
230
231 # Additional environmental variables to export to the tools
232 env_export = ['INTEL_LICENSE_FILE']
233
234 tools_names = [('intelc',{'topdir':'/sw/intel/composer_xe_2015.1.133'})]
235
236
237 #iknowwhatimdoing = False
238
239 #forcelazy = 'leave_alone'
240
241 #forcecollres = 'leave_alone'
242

  ViewVC Help
Powered by ViewVC 1.1.26