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

Fixes for compilation on Ubuntu 20.10 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

roystgnr
Copy link

@roystgnr roystgnr commented Mar 5, 2021

The OpenMPI mpicxx workaround is the same as in Nek5000/nekRS@878b9ab

It looks like my commits from Nek5000/nekRS#235 are being incorporated into Nek5000/nekRS#231 ? This might be worth bringing into that too, then.

roystgnr added 2 commits March 5, 2021 17:28
See open-mpi/ompi#5157 (comment)
for an explanation of this "hack that you can do that's gross but safe".

I agree that it's gross but they've at least got their workaround macro
nicely namespaced so it shouldn't interact with other code or other MPI
implementations.

Without some workaround, including OpenMPI's mpi.h in C++ code is a
compiler warning on many compilers and a compiler *error* on others,
including the last couple g++ releases.  I can't build the nekRS fork of
occa without this.
It's been deprecated for a while, and at least on Ubuntu 20.10 it no
longer exists at all.
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

Successfully merging this pull request may close these issues.

1 participant