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

expose Fortran conversions #784

Open
simonbyrne opened this issue Oct 17, 2023 · 4 comments
Open

expose Fortran conversions #784

simonbyrne opened this issue Oct 17, 2023 · 4 comments

Comments

@simonbyrne
Copy link
Member

It would be helpful to expose an interface to convert Fortran handles (i.e. integers) to Julia ones, and vice-versa.

@giordano
Copy link
Member

giordano commented Nov 3, 2023

What's a concrete example of what you'd like to do?

@simonbyrne
Copy link
Member Author

@simonbyrne
Copy link
Member Author

One of the challenges is that if a user converts c2f -> f2c, they may end up with a different Julia object corresponding to the MPI handle.

I think the way to do this:

  • expose f2c/c2f handle conversions (add c2f/f2c handle conversions #798)
  • add attribute support to all handle types (currently we only have them defined for Datatypes)
  • store the pointer to the Julia object as a pointer to each handle.

@johnomotani
Copy link

I would also like this feature. I want to be able to pass a communicator to MUMPS.jl, and MUMPS expects a Fortran communicator. See also https://discourse.julialang.org/t/can-i-pass-mpi-jl-communicator-to-the-fortran-side/76547/2.

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