Skip to content

Commit 9f4a732

Browse files
authored
Merge pull request #2256 from CliMA/gb/force_synchronize
Sync CUDA streams before MPI calls
2 parents 0a4384a + 6b27f67 commit 9f4a732

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ ClimaCore.jl Release Notes
44
main
55
-------
66

7+
8+
v0.14.29
9+
-------
10+
11+
- Fix empty interpolation with certain versions of CUDA+MPI
12+
[2256](https://github.com/CliMA/ClimaCore.jl/pull/2256).
13+
14+
715
v0.14.28
816
-------
917

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaCore"
22
uuid = "d414da3d-4745-48bb-8d80-42e94e092884"
33
authors = ["CliMA Contributors <clima-software@caltech.edu>"]
4-
version = "0.14.28"
4+
version = "0.14.29"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/Remapping/Remapping.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ..DataLayouts,
1515
..Fields,
1616
..Hypsography
1717
import ClimaCore.Utilities: half
18+
import ClimaCore.Spaces: cuda_synchronize
1819

1920
using ..RecursiveApply
2021

src/Remapping/distributed_remapping.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ function _collect_interpolated_values!(
751751
index_field_end::Int;
752752
only_one_field,
753753
)
754+
cuda_synchronize(ClimaComms.device(remapper.comms_ctx)) # Sync streams before MPI calls
754755
if only_one_field
755756
ClimaComms.reduce!(
756757
remapper.comms_ctx,

0 commit comments

Comments
 (0)