161 |
('blas_path', 'Path to BLAS includes', '/usr/include/suitesparse'), |
('blas_path', 'Path to BLAS includes', '/usr/include/suitesparse'), |
162 |
('blas_lib_path', 'Path to BLAS libs', usr_lib), |
('blas_lib_path', 'Path to BLAS libs', usr_lib), |
163 |
('blas_libs', 'BLAS libraries to link with', ['blas']), |
('blas_libs', 'BLAS libraries to link with', ['blas']), |
164 |
|
#Lapack options |
165 |
|
BoolVariable('uselapack','switch on/off use of Lapack','no'), |
166 |
|
('lapack_path', 'Path to Lapack includes','/usr/include'), |
167 |
|
('lapack_lib_path', 'Path to Lapack libs', usr_lib), |
168 |
|
('lapack_libs', 'Lapack libraries to link with', []), |
169 |
|
('lapack_type', '{clapack,mkl}','clapack'), |
170 |
# An option for specifying the compiler tools set (see windows branch). |
# An option for specifying the compiler tools set (see windows branch). |
171 |
('tools_names', 'allow control over the tools in the env setup', ['intelc']), |
('tools_names', 'allow control over the tools in the env setup', ['intelc']), |
172 |
# finer control over library building, intel aggressive global optimisation |
# finer control over library building, intel aggressive global optimisation |
609 |
env.AppendUnique(LIBPATH = [env['silo_lib_path']]) |
env.AppendUnique(LIBPATH = [env['silo_lib_path']]) |
610 |
env.Append(CPPDEFINES = ['HAVE_SILO']) |
env.Append(CPPDEFINES = ['HAVE_SILO']) |
611 |
|
|
612 |
|
########### Lapack (optional) ################################## |
613 |
|
|
614 |
|
|
615 |
|
if env['uselapack']: |
616 |
|
env.AppendUnique(CPPDEFINES='USE_LAPACK') |
617 |
|
env.AppendUnique(CPPPATH = [env['lapack_path']]) |
618 |
|
env.AppendUnique(LIBPATH =[env['lapack_lib_path']]) |
619 |
|
|
620 |
|
env.Append(LIBPATH = '/usr/lib/atlas') |
621 |
|
env.Append(LIBS = [env['lapack_libs']]) |
622 |
|
if env['lapack_type']=='mkl': |
623 |
|
env.AppendUnique(CPPDEFINES='MKL_LAPACK') |
624 |
|
|
625 |
############ Add the compiler flags ############################ |
############ Add the compiler flags ############################ |
626 |
|
|
627 |
# Enable debug by choosing either cc_debug or cc_optim |
# Enable debug by choosing either cc_debug or cc_optim |
848 |
out+="n" |
out+="n" |
849 |
buildvars.write(out+"\n") |
buildvars.write(out+"\n") |
850 |
buildvars.write("mpi_flavour="+env['mpi_flavour']+'\n') |
buildvars.write("mpi_flavour="+env['mpi_flavour']+'\n') |
851 |
|
buildvars.write("lapack=") |
852 |
|
if env['uselapack']: |
853 |
|
buildvars.write('y') |
854 |
|
else: |
855 |
|
buildvars.write('n') |
856 |
|
buildvars.write('\n') |
857 |
buildvars.close() |
buildvars.close() |
858 |
|
|
859 |
|
|