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 IO missing particle with more than 1 MPI rank #54

Closed
acavelan opened this issue Oct 1, 2020 · 3 comments
Closed

MPI IO missing particle with more than 1 MPI rank #54

acavelan opened this issue Oct 1, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@acavelan
Copy link
Collaborator

acavelan commented Oct 1, 2020

In MPIFileutils.hpp, the code has a wrong assumption on the number of particles per node.

const size_t split = d.n / d.nrank;
const size_t remaining = d.n - d.nrank * split;

const MPI_Offset col = d.n * sizeof(double);
MPI_Offset offset = d.rank * split * sizeof(double);
if (d.rank == 0) offset += remaining * sizeof(double);
@acavelan acavelan added the bug Something isn't working label Oct 1, 2020
@jgphpc
Copy link
Collaborator

jgphpc commented Oct 3, 2020

@acavelan can't reproduce, how many mpi ?

@acavelan
Copy link
Collaborator Author

acavelan commented Oct 5, 2020

2 MPI nodes are enough. You can use the script/plot.py to plot the data. The file has the right size, but you will see that (most of the time, but not always) particles are missing (nothing is displayed in some corner of the space).

This was referenced Oct 16, 2020
@jgphpc
Copy link
Collaborator

jgphpc commented Nov 2, 2020

see #60 too

@sekelle sekelle closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants