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

Annotation of /trunk/scons/guineapig_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2967 - (hide annotations)
Wed Mar 3 03:50:46 2010 UTC (9 years, 4 months ago) by caltinay
File MIME type: text/x-python
File size: 3743 byte(s)
scons now understands cc_extra and cxx_extra. The former applies only to the
C compiler, the latter to the C++ compiler which fixes #510.

1 jfenwick 2727
2     ########################################################
3     #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 jfenwick 2727 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7     #
8     # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11     #
12     ########################################################
13    
14    
15     # Configuration for guineapig (64-bit Intel running Debian)
16    
17     # If you cannot use the default compiler flags set in SConstruct, then change them here
18     # C/C++ Compiler flags (always use cc_flags and either cc_optim or cc_debug)
19 caltinay 2883 cc='gcc-4.4'
20     cxx='g++-4.4'
21 jfenwick 2727 # cc_flags = '-ansi'
22     # cc_optim = '-O2'
23     # cc_debug = '-g'
24     omp_optim = '-fopenmp'
25     omp_debug = '-fopenmp'
26     omp_libs = []
27    
28     # Use the default C/C++ flags but add something only for this host:
29     #cc_extra = '-Wall -pedantic -isystem /usr/include/boost/ -isystem /usr/include/python2.5/ -Wno-sign-compare -Wno-long-long'
30     #cc_extra = '-fopenmp'
31     ld_extra = '-fopenmp'
32 caltinay 2967 cc_extra = '--std=c99 -isystem /usr/local/py2.6.2/silo4.7.2/include'
33     cxx_extra = '-isystem /usr/local/py2.6.2/silo4.7.2/include'
34 jfenwick 2727
35     # Be picky about errors
36     # usepedantic = 'no'
37    
38     # Extra libraries
39     # sys_libs = ['guide', 'pthread', 'stdc++']
40    
41     # Python libraries
42     python_path = '/usr/local/python2.6.2/include/python2.6'
43     python_lib_path = '/usr/local/python2.6.2/lib'
44     python_libs = 'python2.6'
45     # python_cmd = 'python'
46    
47     # Boost libraries
48     boost_path = '/usr/local/py2.6.2/boost1.39.0/include/boost-1_39'
49     boost_lib_path = '/usr/local/py2.6.2/boost1.39.0/lib'
50     boost_libs = ['libboost_python-gcc44-mt']
51    
52     # Specify whether or not to use VTK
53     # usevtk = 'yes'
54    
55     # NetCDF
56 caltinay 2798 #usenetcdf = 'yes'
57     #netCDF_path = '/usr/local/py2.6.2/netcdf4.0/include'
58     #netCDF_lib_path = '/usr/local/py2.6.2/netcdf4.0/lib'
59     #netCDF_libs = ['netcdf_c++', 'netcdf']
60 jfenwick 2727
61 caltinay 2840 # Silo
62     usesilo = 'yes'
63 jfenwick 2844 #silo_path = '/usr/local/py2.6.2/silo4.7.2/include'
64 caltinay 2840 silo_path = '/usr/local/py2.6.2/silo4.7.2/include'
65     silo_lib_path = '/usr/local/py2.6.2/silo4.7.2/lib'
66     silo_libs = ['siloh5', 'hdf5']
67    
68 jfenwick 2727 # MKL
69     # usemkl = 'yes'
70     # mkl_path = '/sw/sdev/cmkl/10.0.2.18/include'
71     # mkl_lib_path = '/sw/sdev/cmkl/10.0.2.18/lib/em64t'
72     # mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide', 'pthread']
73    
74     # UMFPACK (requires AMD and BLAS)
75 jfenwick 2729 useumfpack = 'yes'
76     ufc_path = '/usr/include/suitesparse'
77     umf_path = '/usr/include/suitesparse'
78     umf_lib_path = '/usr/lib'
79     umf_libs = ['umfpack']
80     amd_path = '/usr/include/suitesparse'
81     amd_lib_path = '/usr/lib'
82     amd_libs = ['amd']
83     blas_path = '/usr/include'
84     blas_lib_path = '/usr/lib'
85     blas_libs = ['blas']
86 jfenwick 2727
87     # OpenMP
88 jfenwick 2729 useopenmp = 'yes'
89 jfenwick 2727
90 jfenwick 2729 usempi = 'yes'
91     mpi_flavour = 'OPENMPI'
92     mpi_path = '/usr/include/openmpi/'
93     mpi_lib_path = '/usr/lib/openmpi/lib/'
94     mpi_libs = ['libmpi','libmpi_cxx']
95    
96 jfenwick 2727 # MPICH2 (to run Escript use: module load mpich2/gcc-4.1.2/mpich2-1.0.7)
97     # usempi = 'no'
98     # mpi_path = '/home/Work/InstallArea/mpich2-1.0.7/include'
99     # mpi_lib_path = '/home/Work/InstallArea/mpich2-1.0.7/lib'
100     # mpi_libs = ['mpich', 'rt']
101     # mpi_flavour = "MPICH"
102    
103     # MPICH2 for jumpshot (to run Escript use: module load mpich2/gcc-4.1.2/mpich2-1.0.7)
104     # mpi_path = '/home/Work/InstallArea/mpich2-1.0.7/include'
105     # mpi_lib_path = '/home/Work/InstallArea/mpich2-1.0.7/lib'
106     # mpi_libs = ['lmpe', 'mpe', 'mpich', 'rt']
107     # mpi_flavour = "MPICH"
108    
109     # ParMETIS (for use with MPI)
110     # useparmetis = 'yes'
111     # parmetis_path = '/home/Work/InstallArea/parmetis-3.1/include'
112     # parmetis_lib_path = '/home/Work/InstallArea/parmetis-3.1/lib'
113     # parmetis_libs = ['parmetis', 'metis']
114    
115     # PAPI
116     # usepapi = 'no'
117     # papi_path = '/usr/include'
118     # papi_lib_path = '/usr/lib'
119     # papi_libs = ['papi']
120     # papi_instrument_solver = 'no'
121    

  ViewVC Help
Powered by ViewVC 1.1.26