Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with --no-mpi still requires boost mpi #43

Closed
JoostHuizinga opened this issue Oct 10, 2016 · 1 comment
Closed

Building with --no-mpi still requires boost mpi #43

JoostHuizinga opened this issue Oct 10, 2016 · 1 comment

Comments

@JoostHuizinga
Copy link
Contributor

On a system where boost mpi is not installed, configuring sferes with the option --no-mpi fails with the following message:

Checking boost libs                      : lib mpi not found in lib
(complete log in /Users/joost/Documents/sferes/sferes2/build/config.log)

I have currently resolved the issue by changing the following code in the wscript file in the sferes root folder:

Original code:
conf.check_boost(lib='serialization filesystem system unit_test_framework program_options graph mpi thread regex', min_version='1.35')

My 'fix':

    if conf.options.no_mpi:
        conf.check_boost(lib='serialization filesystem system unit_test_framework program_options graph thread regex', min_version='1.35')
    else:
        conf.check_boost(lib='serialization filesystem system unit_test_framework program_options graph mpi thread regex', min_version='1.35')

However, I am not sure if this is the most elegant way of doing things, especially because the --no-mpi option is part of the mpi.py modules, and not part of the basic wscript.

@costashatz
Copy link
Collaborator

Fixed in #55 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants