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

Integer/float divide by zero by MPI_set_view when compiling with debug flags #9

Open
andyandreolli opened this issue Jul 27, 2022 · 0 comments

Comments

@andyandreolli
Copy link
Collaborator

It could be that the below bug arises as a consequence of npy only; for sure, a the value of npy is one of the causes.

When compiling with debug flags, usually no problem arises with low values of npy. For high values of npy, one of the two situations arises:

  1. the program is unable to terminate, as it is blocked on MPI_write;
  2. the program terminates, the output seems correct, but if one uses debug flags for compilation, it can be seen that MPI_set_view triggers a float divide by zero.

It can be that issue no. 1 is associated to an integer divide by zero, whereas the second might be associated to a float divide by zero. For sure, in both cases MPI_set_view is trying to divide by zero.

It also seems (from a limited number of attempts), that case 1 (program unable to write and terminate) happens when processes have a different number of y points. Attention: the number of points held by every process includes ghost and halo cells; it can be found as nyN-ny0+5.

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

1 participant