-
Notifications
You must be signed in to change notification settings - Fork 75
Use MPI_Count for MpiInt only when appropriate #149
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
base: master
Are you sure you want to change the base?
Use MPI_Count for MpiInt only when appropriate #149
Conversation
I believe that the best approach is not to pay attention to the original use of |
I noticed these things and I hinted to them with my "I believe I've seen a couple of places where it isn't", but I have not payed too much attention to them yet. I will. As such, it may be easier to just scrap the existing MpiInt occurrences and create new ones for count only, I see that. I think we are in the same page here.
I am not sure I understand correctly what you are saying here.
Do you have any objections? I believe this is the same thing suggested in #83 (comment) (but there it wasn't so explicit, hence I'm not totally sure of the original poster intentions). |
No objections, this sounds good to me. My unclear comment about removing |
… count (i.e. int or MPI_Count)
…ry occurence where the latter is used
|
Sorry for not being clear. This PR continues to not being ready to merge, the reason why I am pushing is because the final version will be hundreds of files changed, and therefore I want to give people a chance to look at it piecewise, as I am developing it. In its current form it does not even link because the definition of If you prefer me quitting this piecemeal approach and do instead a huge dump at the end, let me know and I'll be happy to oblige |
…ry occurence where the latter is used
Wanted to check the CI. Not ready for review.
|
Piecemeal is all good with me. Not a problem. Maybe have the PR as a draft then, but not a problem with me. |
|
MPI_Count is unspecified (outside of the MPI-5 ABI) but its properties require that it is large enough to hold a pointer, an off_t, a ptrdiff_t and a (s)size_t. In practice, it is a 64-bit integer on every system where ScaLAPACK will ever run. However, if you find a pure 32b system that still has the 2GiB file system limit, it might be smaller. |
This is follow-up on #83 and of course for now it's just a talking point not something anywhere close to be merged. I'm putting it out there to start the conversation with something explicit in front of people, to get constructive criticism, before embarking myself in the full work to implement it (in a possibly broken way)
With that attitude, let me start with some questions @jeffhammond and @albandil
MPIX_*and the MPI4'sMPI_*_cinvocations. I have only experimented with toy examples for both so please don't blindly assume I'm doing the right thing (TM)MpiIntis correctly implemented among the code and I believe I've seen a couple of places where it isn't (but even if it were, it obviously it has never been tested, so "by default" I assume there is at least a bug somewhere until someone or I proves otherwise). As such, part of the work of this PR will definitely include double checking all existing instances ofMpiIntas well as the provenance of all thecountfields for all MPI invocations. I haven't checked yet if this needs to involve Fortran too.