Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,9 @@ jobs:
version:
- '1.10' # LTS
- '1.11'
- '1.13'
- '1.14'
- '1' # latest stable
- 'pre' # latest prerelease
ranks:
- 2
- 4
Expand All @@ -458,6 +459,7 @@ jobs:
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
include-all-prereleases: ${{ matrix.version == '1.14' }}
arch: x64
- uses: julia-actions/cache@v3
# test/mpi/env pulls MPI (MPICH_jll by default) plus the checked-out Dagger;
Expand Down
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1014,3 +1014,12 @@ lesson.
the domain's indices there. Test both direct sparse-domain slicing and the
existing allocation/distribute suite on the current nightly; an older
nightly without the fallback does not exercise the conflict.

98. **Use the public fence API in both remainder-copy transports.**
Julia 1.14 added a sync-scope argument to the `atomic_fence` intrinsic.
A direct one-argument call can survive precompilation and then fail when
MPI first compiles a cross-rank remainder copy. Use
`Base.Threads.atomic_fence()` after scattering in both the Distributed
and MPI paths. When diagnosing MPI uniformity errors, check for an earlier
task failure that left ranks on different operations. Compare the actual
Julia versions behind rolling CI labels such as `pre`.
4 changes: 2 additions & 2 deletions ext/MPIExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1832,8 +1832,8 @@ function move!(dep_mod::Dagger.RemainderAliasing{<:MPIMemorySpace}, to_space::MP
mpi_device_sync(to_space.innerSpace)
stage_release!(kind, stage_buf)

# Ensure that the data is visible
Core.Intrinsics.atomic_fence(:release)
# Publish the scattered data with a fence across supported Julia versions.
Base.Threads.atomic_fence()
end
end

Expand Down
Loading