301 |
if env['bounds_check']: |
if env['bounds_check']: |
302 |
env.Append(CPPDEFINES = [ 'BOUNDS_CHECK' ]) |
env.Append(CPPDEFINES = [ 'BOUNDS_CHECK' ]) |
303 |
env.Append(CXXDEFINES = [ 'BOUNDS_CHECK' ]) |
env.Append(CXXDEFINES = [ 'BOUNDS_CHECK' ]) |
304 |
|
bounds_check = env['bounds_check'] |
305 |
|
else: |
306 |
|
bounds_check = 0 |
307 |
|
|
308 |
#================================================================================================= |
#================================================================================================= |
309 |
# |
# |
449 |
useMPI = None |
useMPI = None |
450 |
# ========= set compiler flags =========================================== |
# ========= set compiler flags =========================================== |
451 |
|
|
452 |
|
# Can't use MPI and OpenMP simultaneously at this time |
453 |
|
if useMPI: |
454 |
|
omp_flags='' |
455 |
|
omp_flags_debug='' |
456 |
|
|
457 |
if dodebug: |
if dodebug: |
458 |
try: |
try: |
459 |
flags = env['cc_flags_debug'] + ' ' + omp_flags_debug |
flags = env['cc_flags_debug'] + ' ' + omp_flags_debug |
483 |
except: |
except: |
484 |
pass |
pass |
485 |
|
|
486 |
|
# ============= Remember what options were used in the compile ===================================== |
487 |
|
env.Execute("/bin/rm -f " + libinstall + "/Compiled.with.*") |
488 |
|
|
489 |
|
if not useMPI: env.Execute("/bin/rm -f " + libinstall + "/pythonMPI") |
490 |
|
|
491 |
|
if dodebug: env.Execute("touch " + libinstall + "/Compiled.with.debug") |
492 |
|
if useMPI: env.Execute("touch " + libinstall + "/Compiled.with.mpi") |
493 |
|
if omp_flags != '': env.Execute("touch " + libinstall + "/Compiled.with.OpenMP") |
494 |
|
if bounds_check: env.Execute("touch " + libinstall + "/Compiled.with.bounds_check") |
495 |
|
|
496 |
# ============= set mkl (but only of no MPI) ===================================== |
# ============= set mkl (but only of no MPI) ===================================== |
497 |
if not useMPI: |
if not useMPI: |
498 |
try: |
try: |