/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 3078 by jfenwick, Tue Aug 3 03:12:16 2010 UTC revision 3178 by caltinay, Tue Sep 14 00:31:59 2010 UTC
# Line 156  adder( Line 156  adder(
156    ('silo_path', 'Path to Silo includes', '/usr/include'),    ('silo_path', 'Path to Silo includes', '/usr/include'),
157    ('silo_lib_path', 'Path to Silo libs', usr_lib),    ('silo_lib_path', 'Path to Silo libs', usr_lib),
158    ('silo_libs', 'Silo libraries to link with', ['siloh5', 'hdf5']),    ('silo_libs', 'Silo libraries to link with', ['siloh5', 'hdf5']),
159    # VisIt
160      BoolVariable('usevisit', 'switch on/off the usage of the VisIt sim library', 'no'),
161      ('visit_path', 'Path to VisIt libsim includes', '/usr/include'),
162      ('visit_lib_path', 'Path to VisIt sim library', usr_lib),
163  # AMD (used by UMFPACK)  # AMD (used by UMFPACK)
164    ('amd_path', 'Path to AMD includes', '/usr/include/suitesparse'),    ('amd_path', 'Path to AMD includes', '/usr/include/suitesparse'),
165    ('amd_lib_path', 'Path to AMD libs', usr_lib),    ('amd_lib_path', 'Path to AMD libs', usr_lib),
# Line 261  omp_libs = [] Line 265  omp_libs = []
265  if env["CC"] == "icc":  if env["CC"] == "icc":
266    # Intel compilers    # Intel compilers
267    cc_flags      = "-std=c99 -fPIC -wd161 -w1 -vec-report0 -DBLOCKTIMER -DCORE_ID1"    cc_flags      = "-std=c99 -fPIC -wd161 -w1 -vec-report0 -DBLOCKTIMER -DCORE_ID1"
268    cc_optim      = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias"    cc_optim      = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias -ip"
269    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"
270    omp_optim     = "-openmp -openmp_report0"    omp_optim     = "-openmp -openmp_report0"
271    omp_debug     = "-openmp -openmp_report0"    omp_debug     = "-openmp -openmp_report0"
# Line 271  if env["CC"] == "icc": Line 275  if env["CC"] == "icc":
275    sysheaderopt      = ""    sysheaderopt      = ""
276  elif env["CC"][:3] == "gcc":  elif env["CC"][:3] == "gcc":
277    # GNU C on any system    # GNU C on any system
278    cc_flags      = "-pedantic -Wall -fPIC -ffast-math -Wno-unknown-pragmas -DBLOCKTIMER  -Wno-sign-compare -Wno-system-headers -Wno-long-long -Wno-strict-aliasing"    cc_flags      = "-pedantic -Wall -fPIC -ffast-math -Wno-unknown-pragmas -DBLOCKTIMER  -Wno-sign-compare -Wno-system-headers -Wno-long-long -Wno-strict-aliasing -finline-functions"
279  #the long long warning occurs on the Mac  #the long long warning occurs on the Mac
280    cc_optim      = "-O3"    cc_optim      = "-O3"
281    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"
# Line 651  if env['usesilo']: Line 655  if env['usesilo']:
655    env.AppendUnique(CPPPATH = [env['silo_path']])    env.AppendUnique(CPPPATH = [env['silo_path']])
656    env.AppendUnique(LIBPATH = [env['silo_lib_path']])    env.AppendUnique(LIBPATH = [env['silo_lib_path']])
657    
658    ############ VisIt (optional) ###################################
659    
660    if env['usevisit']:
661      env.AppendUnique(CPPPATH = [env['visit_path']])
662      env.AppendUnique(LIBPATH = [env['visit_lib_path']])
663    
664  ########### Lapack (optional) ##################################  ########### Lapack (optional) ##################################
665    
666  if env['uselapack']:  if env['uselapack']:
# Line 773  if env['usenetcdf']: print "   Using NetCD Line 783  if env['usenetcdf']: print "   Using NetCD
783  else: print "   Not using NetCDF"  else: print "   Not using NetCDF"
784  if env['usevtk']: print "   Using VTK"  if env['usevtk']: print "   Using VTK"
785  else: print "   Not using VTK"  else: print "   Not using VTK"
786    if env['usevisit']: print " Using VisIt"
787    else: print "   Not using VisIt"
788  if env['usemkl']: print "   Using MKL"  if env['usemkl']: print "   Using MKL"
789  else: print "   Not using MKL"  else: print "   Not using MKL"
790  if env['useumfpack']: print "   Using UMFPACK"  if env['useumfpack']: print "   Using UMFPACK"
# Line 801  print "" Line 813  print ""
813  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.debug")))  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.debug")))
814  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.mpi")))  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.mpi")))
815  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.openmp")))  Execute(Delete(os.path.join(env['libinstall'],"Compiled.with.openmp")))
 Execute(Delete(os.path.join(env['libinstall'],"pyversion")))  
816  Execute(Delete(os.path.join(env['libinstall'],"buildvars")))  Execute(Delete(os.path.join(env['libinstall'],"buildvars")))
817  if not env['usempi']: Execute(Delete(os.path.join(env['libinstall'],"pythonMPI")))  if not env['usempi']: Execute(Delete(os.path.join(env['libinstall'],"pythonMPI")))
818    
# Line 875  env.Alias('remember_options', remember_l Line 886  env.Alias('remember_options', remember_l
886  if not IS_WINDOWS_PLATFORM:  if not IS_WINDOWS_PLATFORM:
887    
888    versionstring="Python "+str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2])    versionstring="Python "+str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2])
889    if sys.version_info[4] >0 : versionstring+="rc%s"%sys.version_info[4]  #  if sys.version_info[4] >0 : versionstring+="rc%s"%sys.version_info[4]
   os.system("echo "+versionstring+" > "+os.path.join(env['libinstall'],"pyversion"))  
890    
891  ############## Populate the buildvars file #####################  ############## Populate the buildvars file #####################
892    
# Line 922  if env['usesilo']: Line 932  if env['usesilo']:
932     out+="y"     out+="y"
933  else:  else:
934     out+="n"     out+="n"
935    out+="\nusevisit="
936    if env['usevisit']:
937       out+="y"
938    else:
939       out+="n"
940  buildvars.write(out+"\n")  buildvars.write(out+"\n")
941  buildvars.close()  buildvars.close()
942    
# Line 941  env.Alias('install_paso', ['build_paso', Line 956  env.Alias('install_paso', ['build_paso',
956  env.Alias('build_weipa', ['target_install_weipa_headers', 'target_weipa_so', 'target_weipacpp_so'])  env.Alias('build_weipa', ['target_install_weipa_headers', 'target_weipa_so', 'target_weipacpp_so'])
957  env.Alias('install_weipa', ['build_weipa', 'target_install_weipa_so', 'target_install_weipacpp_so', 'target_install_weipa_py'])  env.Alias('install_weipa', ['build_weipa', 'target_install_weipa_so', 'target_install_weipacpp_so', 'target_install_weipa_py'])
958    
959    
960  env.Alias('build_escriptreader', ['target_install_weipa_headers', 'target_escriptreader_a'])  env.Alias('build_escriptreader', ['target_install_weipa_headers', 'target_escriptreader_a'])
961  env.Alias('install_escriptreader', ['build_escriptreader', 'target_install_escriptreader_a'])  env.Alias('install_escriptreader', ['build_escriptreader', 'target_install_escriptreader_a'])
962    

Legend:
Removed from v.3078  
changed lines
  Added in v.3178

  ViewVC Help
Powered by ViewVC 1.1.26