-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add some explanation of MPISharedArray type to the docs #246
Conversation
@LucasMontoya4 do these new docs make the I'm not sure what I've written so far adds much, but I'm blanking at the moment on what else to put. It'd help if someone would ask questions to help decide what to add! |
I think it makes more sense now. So the MPISharedArray exists in shared memory, but so will the Array when you run using mpi, and so they behave the same way? |
Julia doesn't actually know that our arrays are shared-memory or not (which is partly why we have to do all the synchronization and checking by hand). We use an MPI function to allocate the shared memory, then create a Julia moment_kinetics/moment_kinetics/src/communication.jl Lines 550 to 669 in db370d1
Normally, when debugging is not activated, moment_kinetics/moment_kinetics/src/communication.jl Lines 546 to 548 in db370d1
(I think I might write an actual docstring for that now...). When debugging is not activated, that macro expands out to give just const MPISharedArray = Array but if we hard-coded |
That makes so much sense now, thank you! I didn't mean for you to write such a detailed comment, but I'm sure that that will help others in future as well... |
64c0361
to
f5949f8
Compare
No description provided.