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

Detecting MPI #32

Open
drwells opened this issue Dec 15, 2021 · 1 comment
Open

Detecting MPI #32

drwells opened this issue Dec 15, 2021 · 1 comment

Comments

@drwells
Copy link
Member

drwells commented Dec 15, 2021

I don't know a ton about docker but this was on the mailing list:


[ 50%] Building CXX object CMakeFiles/cdr.dir/cdr.cc.o
In file included from /usr/include/deal.II/base/conditional_ostream.h:19,
                from /home/dealii/dealii/cdr/cdr.cc:1:
/usr/include/deal.II/base/config.h:490:12: fatal error: mpi.h: No such file or directory
 490 | #  include <mpi.h>
     |            ^~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/cdr.dir/build.make:63: CMakeFiles/cdr.dir/cdr.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/cdr.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
dealii@cdab72233c4c:~/dealii/cdr$ 

see https://groups.google.com/g/dealii/c/0iNlXmvC7Ts

@luca-heltai
Copy link
Member

This is related to not calling DEAL_II_SETUP_TARGET(target_name). If you forget to do that, then cmake does not configure correctly the includ paths.

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