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

Diff of /trunk/scons/shake75_options.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2184 by caltinay, Mon Dec 22 04:27:26 2008 UTC revision 4097 by caltinay, Fri Dec 7 01:18:35 2012 UTC
# Line 1  Line 1 
1    
2  ########################################################  ##############################################################################
3  #  #
4  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2012 by University of Queensland
5  # Earth Systems Science Computational Center (ESSCC)  # http://www.uq.edu.au
 # http://www.uq.edu.au/esscc  
6  #  #
7  # Primary Business: Queensland, Australia  # Primary Business: Queensland, Australia
8  # Licensed under the Open Software License version 3.0  # Licensed under the Open Software License version 3.0
9  # http://www.opensource.org/licenses/osl-3.0.php  # 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    # The options file version. SCons will refuse to build if there have been
17    # changes to the set of variables and your file has not been updated.
18    # This setting is mandatory.
19    escript_opts_version = 201
20    
21    # Installation prefix. Files will be installed in subdirectories underneath.
22    # DEFAULT: '.' (current directory)
23    #prefix = '/usr/local'
24    
25    # Top-level directory for intermediate build and test files.
26    # DEFAULT: 'build'
27    #build_dir = 'build'
28    
29    # C compiler command name or full path.
30    # DEFAULT: auto-detected
31    #cc = 'gcc-4.6'
32    
33    # C++ compiler command name or full path.
34    # DEFAULT: auto-detected
35    #cxx = 'g++-4.6'
36    
37    # Flags to use with both C and C++ compilers. Do not set unless you know
38    # what you are doing - use cc_extra to specify additional flags!
39    # DEFAULT: compiler-dependent
40    #cc_flags = ''
41    
42    # Additional compiler (optimization) flags for non-debug builds
43    # DEFAULT: compiler-dependent
44    cc_optim = '-O3 -march=native'
45    
46    # Additional compiler flags for debug builds
47    # DEFAULT: compiler-dependent
48    #cc_debug = '-g'
49    
50    # Additional flags to add to the C compiler only
51    # DEFAULT: '' (empty)
52    cc_extra = '-Wextra -Wno-unused-parameter'
53    
54    # Additional flags to add to the C++ compiler only
55    # DEFAULT: '' (empty)
56    cxx_extra = '-Wextra -Wno-unused-parameter'
57    
58    # Additional flags to add to the linker
59    # DEFAULT: '' (empty)
60    #ld_extra = ''
61    
62    # Whether to treat compiler warnings as errors
63    # DEFAULT: True
64    #werror = False
65    
66    # Whether to build a debug version
67    # DEFAULT: False
68    #debug = True
69    
70    # Set to True to print the full compiler/linker command line
71    # DEFAULT: False
72    verbose = True
73    
74    # Set to True to add flags that enable OpenMP parallelization
75    # DEFAULT: False
76    openmp = True
77    
78    # Additional compiler flags for OpenMP builds
79    # DEFAULT: compiler-dependent
80    #omp_flags = '-fopenmp'
81    
82    # Additional linker flags for OpenMP builds
83    # DEFAULT: compiler-dependent
84    #omp_ldflags = '-fopenmp'
85    
86    # Flavour of MPI implementation
87    # Recognized values: 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI'
88    # DEFAULT: 'none' (disable MPI)
89    mpi = 'OPENMPI'
90    
91    # Prefix or paths to MPI headers and libraries. See note above about prefixes.
92    mpi_prefix = '/usr/lib/openmpi'
93    
94    # MPI libraries to link against
95    mpi_libs = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal']
96    
97    # Prefix or paths to boost-python headers and libraries. See note above.
98    #boost_prefix = '/usr/local'
99    
100    # boost-python library/libraries to link against
101    boost_libs = ['libboost_python-mt-py27']
102    
103    # Prefix or paths to CppUnit headers and libraries. See note above.
104    #cppunit_prefix = '/usr/local'
105    
106    # CppUnit library/libraries to link against
107    #cppunit_libs = ['cppunit']
108    
109    # Whether to use the netCDF library for dump file support
110    # DEFAULT: False
111    netcdf = True
112    
113    # Prefix or paths to netCDF headers and libraries. See note above.
114    #netcdf_prefix = '/usr/local'
115    
116    # netCDF library/libraries to link against
117    #netcdf_libs = ['netcdf_c++', 'netcdf']
118    
119    # Whether to use the parMETIS library (only in conjunction with MPI)
120    # DEFAULT: False
121    parmetis = True
122    
123    # Prefix or paths to parMETIS headers and libraries. See note above.
124    #parmetis_prefix = '/usr/local'
125    
126    # parMETIS library/libraries to link against
127    #parmetis_libs = ['parmetis', 'metis']
128    
129    # Whether to use the Intel PAPI (Performance API) library
130    # DEFAULT: False
131    #papi = True
132    
133    # Prefix or paths to PAPI headers and libraries. See note above.
134    #papi_prefix = '/usr/local'
135    
136    # PAPI library/libraries to link against
137    #papi_libs = ['papi']
138    
139    # Whether to use PAPI to instrument solver iterations
140    # DEFAULT: False
141    #papi_instrument_solver = True
142    
143    # Whether to use Intel MKL (Math Kernel Library)
144    # DEFAULT: False
145    #mkl = True
146    
147    # Prefix or paths to MKL headers and libraries. See note above.
148    #mkl_prefix = '/usr'
149    
150    # MKL library/libraries to link against
151    #mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide', 'pthread']
152    
153    # Whether to use UMFPACK (requires AMD and BLAS)
154    # DEFAULT: False
155    umfpack = True
156    
157    # Prefix or paths to UMFPACK headers and libraries. See note above.
158    umfpack_prefix = ['/usr/include/suitesparse', '/usr/lib']
159    
160    # UMFPACK library/libraries to link against
161    umfpack_libs = ['umfpack', 'blas']
162    
163    # Whether to use BoomerAMG (requires MPI)
164    # DEFAULT: False
165    #boomeramg = True
166    
167    # Prefix or paths to BoomerAMG headers and libraries. See note above.
168    #boomeramg_prefix = '/usr/local'
169    
170    # BoomerAMG library/libraries to link against
171    #boomeramg_libs = ['HYPRE']
172    
173    # Flavour of LAPACK implementation
174    # Recognized values: 'none', 'clapack', 'mkl'
175    # DEFAULT: 'none' (do not use LAPACK)
176    lapack = 'clapack'
177    
178    # Prefix or paths to LAPACK headers and libraries. See note above.
179    lapack_prefix = ['/usr/include/atlas', '/usr/lib/atlas-base']
180    
181    # LAPACK library/libraries to link against
182    lapack_libs = ['lapack_atlas']
183    
184    # Whether to use LLNL's SILO library for Silo output file support in weipa
185    # DEFAULT: False
186    silo = True
187    
188    # Prefix or paths to SILO headers and libraries. See note above.
189    #silo_prefix = '/usr/local'
190    
191    # SILO library/libraries to link against
192    #silo_libs = ['siloh5', 'hdf5']
193    
194    # Whether to use LLNL's VisIt simulation interface (only version 2 supported)
195    # DEFAULT: False
196    visit = True
197    
198    # Prefix or paths to VisIt's sim2 headers and libraries. See note above.
199    visit_prefix = '/opt/visit/2.6.0/linux-intel/libsim/V2'
200    
201    # Sim2 library/libraries to link against
202    #visit_libs = ['simV2']
203    
204    # Whether to enable the deprecated PyVisi interface (requires the VTK python
205    # modules)
206    # DEFAULT: False
207    #pyvisi = True
208    
209    # Build dynamic libraries only
210    #DEFAULT: False
211    #build_shared = True
212    
213    
214    ### ADVANCED OPTIONS ###
215    # Do not change the following options unless you know what they do
216    
217    # Use intel's VSL library for random data
218    # DEFAULT: False
219    #vsl_random = True
220    
221    # Extra libraries to link with
222    #sys_libs = []
223    
224    # Additional environmental variables to export to the tools
225    #env_export = []
226    
227    #tools_names = ['default']
228    
229    #iknowwhatimdoing = False
230    
231  # Configuration for shake75 (32-bit Intel Core 2 running Debian Linux)  #forcelazy = 'leave_alone'
232    
233  # If you cannot use the default compiler flags set in SConstruct, then change them here  #forcecollres = 'leave_alone'
 # C/C++ Compiler flags (always use cc_flags and either cc_optim or cc_debug)  
 # cc_flags      = '-ansi'  
 # cc_optim      = '-O2'  
 # usedebug      = 'no'  
 # cc_debug      = '-g'  
 omp_optim       = '-fopenmp'  
 omp_debug       = ''  
 # omp_libs      = []  
   
 # Use the default C/C++ flags but add something only for this host:  
 cc_extra        = '-Wall -mmmx -msse3'  
 ld_extra        = '-fopenmp'  
   
 # Be picky about errors  
 # usepedantic   = 'no'  
   
 # Extra libraries  
 # sys_libs      = []  
   
 # Python libraries  
 # python_path       = '/usr/lib/python2.5'  
 # python_lib_path   = '/usr/lib'  
 # python_libs       = 'python2.5'  
 # python_cmd        = 'python'  
   
 # Boost libraries  
 boost_path          = '/usr/include/'  
 # boost_lib_path    = '/usr/lib'  
 boost_libs          = ['boost_python-mt']  
   
 # Specify whether or not to use VTK  
 # usevtk            = 'yes'  
   
 # NetCDF  
 #usenetcdf          = 'yes'  
 #netCDF_path        = '/usr/include/'  
 #netCDF_lib_path    = '/usr/lib/'  
 #netCDF_libs        = ['netcdf_c++', 'netcdf']  
   
 # MKL  
 # usemkl        = 'yes'  
 # mkl_path      = '/usr/include'  
 # mkl_lib_path  = '/usr/lib'  
 # mkl_libs      = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide', 'pthread']  
   
 # UMFPACK (requires AMD and BLAS)  
 # useumfpack    = 'yes'  
 # ufc_path      = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'  
 # umf_path      = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'  
 # umf_lib_path  = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'  
 # umf_libs      = ['umfpack']  
 # amd_path      = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'  
 # amd_lib_path  = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'  
 # amd_libs      = ['amd']  
 # blas_path     = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'  
 # blas_lib_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'  
 # blas_libs     = ['blas']  
   
 # Silo  
 usesilo         = 'yes'  
 silo_path       = '/usr/local/include/'  
 silo_lib_path   = '/usr/local/lib/'  
 silo_libs       = ['siloh5', 'hdf5']  
   
 # OpenMP  
 useopenmp       = 'yes'  
   
 # MPICH2 (to run Escript use: module load mpich2/gcc-4.1.2/mpich2-1.0.7)  
 usempi          = 'yes'  
 mpi_path        = '/usr/include/mpi'  
 mpi_lib_path    = '/usr/lib/openmpi/lib'  
 mpi_libs        = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal']  
 mpi_run         = 'mpiexec -np 4'  
   
 # ParMETIS (for use with MPI)  
 #useparmetis        = 'yes'  
 #parmetis_path      = '/usr/local/include'  
 #parmetis_lib_path  = '/usr/local/lib'  
 #parmetis_libs      = ['parmetis', 'metis']  
   
 # PAPI  
 # usepapi                   = 'no'  
 # papi_path                 = '/usr/include'  
 # papi_lib_path             = '/usr/lib'  
 # papi_libs                 = ['papi']  
 # papi_instrument_solver    = 'no'  
234    

Legend:
Removed from v.2184  
changed lines
  Added in v.4097

  ViewVC Help
Powered by ViewVC 1.1.26