Skip to content

Safe GPU-aware MPI communication#1313

Merged
mfherbst merged 1 commit into
JuliaMolSim:masterfrom
abussy:gpu_mpi
May 6, 2026
Merged

Safe GPU-aware MPI communication#1313
mfherbst merged 1 commit into
JuliaMolSim:masterfrom
abussy:gpu_mpi

Conversation

@abussy
Copy link
Copy Markdown
Collaborator

@abussy abussy commented Apr 30, 2026

Before MPI communication of GPU buffers, the device must be synchronized. If not, there is a real risk of race condition because CPU and GPU run asynchronously. This has no effect on CPU performance. On the GPU, this cannot be avoided.

For reference, here is a PR updating the relevant documentation in MPI.jl. The problem has been known for a while, but never properly documented. The PR also links to a slack thread where the problem is discussed.

Copy link
Copy Markdown
Collaborator

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I remember this

Comment thread src/common/mpi.jl
@mfherbst mfherbst merged commit ed5ee5e into JuliaMolSim:master May 6, 2026
8 of 10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants