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

Errors When Building from Source #303

Closed
yangliu2009 opened this issue Aug 18, 2024 · 4 comments
Closed

Errors When Building from Source #303

yangliu2009 opened this issue Aug 18, 2024 · 4 comments

Comments

@yangliu2009
Copy link

yangliu2009 commented Aug 18, 2024

When building dedalus from source on an Intel CPU, I received the following error

      dedalus/core/transposes.c:2146:3: error: unknown type name ‘MPI_Session’
       2146 |   MPI_Session ob_mpi;
            |   ^~~~~~~

This issue reported the same error message for Apple silicon CPUs. How to fix the issue?

@yangliu2009
Copy link
Author

The c file "transposes.c" doesn't have
#include "mpi4py/mpi4py.h"
How can transpoes.c find MPI_Session that is defined in mpi4py.h?
`

@afraser3
Copy link
Contributor

I believe that the developers ask issues such as this to please be discussed on the google group rather than here. You might try raising this issue there if an initial search reveals this error has not been found before. That said, I wonder if your error is related to this one, and if the fixes documented there might resolve this issue for you as well.

@yangliu2009
Copy link
Author

Thanks a lot. The solution resolved the compile issue, i.e.,

  1. Download mpi-compat.h to the mpi4py include directory
  2. Add the following code in dedalus/core/transposes.pyx
cdef extern from "mpi4py/mpi-compat.h":
    pass

@liamoconnor9
Copy link

Hi @yangliu2009 , could specify where exactly you put the mpi-compat.h file? Thank you

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

3 participants