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

MPI.Type_Vector undefined #350

Closed
pnavaro opened this issue Feb 19, 2020 · 3 comments
Closed

MPI.Type_Vector undefined #350

pnavaro opened this issue Feb 19, 2020 · 3 comments

Comments

@pnavaro
Copy link

pnavaro commented Feb 19, 2020

I think there is an issue with MPI_Type_vector:

julia> Pkg.status()
    Status `~/JuliaProjects/maxwell_yee_2d_with_mpi/Project.toml`
  [da04e1cc] MPI v0.11.0
julia> MPI.Type_Contiguous
Type_Contiguous (generic function with 1 method)
julia> MPI.Type_Vector
ERROR: UndefVarError: Type_Vector not defined

The example in the source code doesn't work either.

The MPI.Type_Contiguous works but i think i am using it wrong. The way I pass the old datatype seems weird to me.

MPI_REAL8 = MPI.Datatype(MPI.MPI_Datatype(MPI.MPI_DOUBLE))
column_type = MPI.Type_Contiguous(mx+1, MPI_REAL8)
MPI.Type_Commit!(column_type)

Many thanks for this package, i was looking forward to MPI-2.

@simonbyrne
Copy link
Member

Can you try the current master? I have significantly changed the interface in #329, see the latest docs: https://juliaparallel.github.io/MPI.jl/latest/advanced/#Datatype-objects-1

@simonbyrne
Copy link
Member

Also, on the current master creating datatypes should be largely unnecessary, at least for basic send/recv: things should just work if you pass a view.

@pnavaro
Copy link
Author

pnavaro commented Feb 20, 2020

Thank you very much Simon, it works perfectly and it is fast \o/

My example is here :
https://github.com/pnavaro/maxwell_yee_2d_with_mpi

@pnavaro pnavaro closed this as completed Feb 20, 2020
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