/[escript]/branches/escript3047_with_pastix2995/SConstruct
ViewVC logotype

Diff of /branches/escript3047_with_pastix2995/SConstruct

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

revision 3048 by lgao, Fri Jun 25 03:46:37 2010 UTC revision 3049 by lgao, Fri Jun 25 04:20:29 2010 UTC
# Line 145  adder( Line 145  adder(
145    ('mkl_path', 'Path to MKL includes', '/sw/sdev/cmkl/10.0.2.18/include'),    ('mkl_path', 'Path to MKL includes', '/sw/sdev/cmkl/10.0.2.18/include'),
146    ('mkl_lib_path', 'Path to MKL libs', '/sw/sdev/cmkl/10.0.2.18/lib/em64t'),    ('mkl_lib_path', 'Path to MKL libs', '/sw/sdev/cmkl/10.0.2.18/lib/em64t'),
147    ('mkl_libs', 'MKL libraries to link with', ['mkl_solver', 'mkl_em64t', 'guide', 'pthread']),    ('mkl_libs', 'MKL libraries to link with', ['mkl_solver', 'mkl_em64t', 'guide', 'pthread']),
148    # PASTIX
149      BoolVariable('usepastix', 'switch on/off the usage of PASTIX', 'no'),
150      ('pastix_path', 'Path to PASTIX includes', '/sw/libs/pastix/x86_64/gcc-4.3.2/pastix-2995/include'),
151      ('pastix_lib_path', 'Path to PASTIX libs', '/sw/libs/pastix/x86_64/gcc-4.3.2/pastix-2995/lib'),
152      ('pastix_libs', 'PASTIX libraries to link with', ['pastix']),
153      ('scotch_path', 'Path to SCOTCH includes', '/sw/libs/scotch/x86_64/gcc-4.3.2/scotch-5.1.8a/include'),
154      ('scotch_lib_path', 'Path to SCOTCH libs', '/sw/libs/scotch/x86_64/gcc-4.3.2/scotch-5.1.8a/lib'),
155      ('scotch_libs', 'SCOTCH libraries to link with', ['ptscotch','ptscotcherr','ptscotcherrexit']),
156  # UMFPACK  # UMFPACK
157    BoolVariable('useumfpack', 'switch on/off the usage of UMFPACK', 'no'),    BoolVariable('useumfpack', 'switch on/off the usage of UMFPACK', 'no'),
158    ('ufc_path', 'Path to UFconfig includes', '/usr/include/suitesparse'),    ('ufc_path', 'Path to UFconfig includes', '/usr/include/suitesparse'),
# Line 744  else: Line 752  else:
752    
753  env['useparmetis'] = env_mpi['useparmetis']  env['useparmetis'] = env_mpi['useparmetis']
754    
755    ############ PASTIX (optional) ####################################
756    
757    # Start a new configure environment that reflects what we've already found
758    conf = Configure(clone_env(env_mpi))
759    
760    if not env_mpi['usempi']: env_mpi['usepastix'] = 0
761    
762    if env_mpi['usepastix']:
763      conf.env.AppendUnique(CPPPATH = [env_mpi['pastix_path']])
764      conf.env.AppendUnique(LIBPATH = [env_mpi['pastix_lib_path']])
765      conf.env.AppendUnique(LIBS    = [env_mpi['pastix_libs']])
766      conf.env.AppendUnique(CPPPATH = [env_mpi['scotch_path']])
767      conf.env.AppendUnique(LIBPATH = [env_mpi['scotch_lib_path']])
768      conf.env.AppendUnique(LIBS    = [env_mpi['scotch_libs']])
769      conf.env.PrependENVPath(LD_LIBRARY_PATH_KEY, env['pastix_lib_path'])     # The wrapper script needs to find these libs
770      conf.env.PrependENVPath(LD_LIBRARY_PATH_KEY, env['scotch_lib_path'])     # The wrapper script needs to find these libs
771      #ensure that our path entries remain at the front
772      conf.env.PrependENVPath('PYTHONPATH', prefix)
773      conf.env.PrependENVPath(LD_LIBRARY_PATH_KEY, env['libinstall'])
774    
775    if env_mpi['usepastix'] and not conf.CheckCHeader('pastix.h'): env_mpi['usepastix'] = 0
776    if env_mpi['usepastix'] and not conf.CheckFunc('dpastix'): env_mpi['usepastix'] = 0
777    
778    
779    # Add PASTIX to environment env_mpi if it was found
780    if env_mpi['usepastix']:
781      env_mpi = conf.Finish()
782      env_mpi.Append(CPPDEFINES = ['PASTIX'])
783    else:
784      conf.Finish()
785    
786    env['usepastix'] = env_mpi['usepastix']
787    
788  ############ Summarize our environment #########################  ############ Summarize our environment #########################
789    
790  print ""  print ""
# Line 757  if env['usevtk']: print "  Using VTK" Line 798  if env['usevtk']: print "  Using VTK"
798  else: print "   Not using VTK"  else: print "   Not using VTK"
799  if env['usemkl']: print "   Using MKL"  if env['usemkl']: print "   Using MKL"
800  else: print "   Not using MKL"  else: print "   Not using MKL"
801    if env['usepastix']: print "    Using PASTIX"
802    else: print "   Not using PASTIX"
803  if env['useumfpack']: print "   Using UMFPACK"  if env['useumfpack']: print "   Using UMFPACK"
804  else: print "   Not using UMFPACK"  else: print "   Not using UMFPACK"
805  if env['usesilo']: print "  Using Silo"  if env['usesilo']: print "  Using Silo"

Legend:
Removed from v.3048  
changed lines
  Added in v.3049

  ViewVC Help
Powered by ViewVC 1.1.26