102 |
BoolVariable('usepedantic', 'Compile with -pedantic if using gcc', 'no'), |
BoolVariable('usepedantic', 'Compile with -pedantic if using gcc', 'no'), |
103 |
BoolVariable('usewarnings','Compile with warnings as errors if using gcc','yes'), |
BoolVariable('usewarnings','Compile with warnings as errors if using gcc','yes'), |
104 |
('forcelazy','for testing use only - set the default value for autolazy','leave_alone'), |
('forcelazy','for testing use only - set the default value for autolazy','leave_alone'), |
105 |
|
('forcecollres','for testing use only - set the default value for force resolving collective ops','leave_alone'), |
106 |
# Python |
# Python |
107 |
('python_path', 'Path to Python includes', '/usr/include/'+python_version), |
('python_path', 'Path to Python includes', '/usr/include/'+python_version), |
108 |
('python_lib_path', 'Path to Python libs', usr_lib), |
('python_lib_path', 'Path to Python libs', usr_lib), |
270 |
#set up the autolazy values |
#set up the autolazy values |
271 |
if env['forcelazy'] != "leave_alone": |
if env['forcelazy'] != "leave_alone": |
272 |
if env['forcelazy'] == 'on': |
if env['forcelazy'] == 'on': |
273 |
env.Append(CPPDEFINES='FAUTOLAZYON') |
env.Append(CPPDEFINES=['FAUTOLAZYON']) |
274 |
else: |
else: |
275 |
if env['forcelazy'] == 'off': |
if env['forcelazy'] == 'off': |
276 |
env.Append(CPPDEFINES='FAUTOLAZYOFF') |
env.Append(CPPDEFINES=['FAUTOLAZYOFF']) |
277 |
|
|
278 |
|
#set up the colective resolve values |
279 |
|
if env['forcecollres'] != "leave_alone": |
280 |
|
print env['forcecollres'] |
281 |
|
if env['forcecollres'] == 'on': |
282 |
|
env.Append(CPPDEFINES=['FRESCOLLECTON']) |
283 |
|
else: |
284 |
|
if env['forcecollres'] == 'off': |
285 |
|
env.Append(CPPDEFINES=['FRESCOLLECTOFF']) |
286 |
|
|
287 |
|
|
288 |
# OpenMP is disabled if useopenmp=no or both variables omp_optim and omp_debug are empty |
# OpenMP is disabled if useopenmp=no or both variables omp_optim and omp_debug are empty |
289 |
if not env["useopenmp"]: |
if not env["useopenmp"]: |