Skip to content

Commit 6d50972

Browse files
authored
Merge pull request #17 from JuliaTrustworthyAI/16-serializationdeserialization-causes-issue-with-mpijl
attempting simple fix
2 parents 156d666 + 376ec2f commit 6d50972

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## Version [1.1.2] - 2024-11-18
8+
9+
### Changed
10+
11+
- Updated MPI functionality to avoid issue related to deserialization. [#16]
12+
713
## Version [1.1.1] - 2024-11-13
814

915
### Changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TaijaParallel"
22
uuid = "bf1c2c22-5e42-4e78-8b6b-92e6c673eeb0"
33
authors = ["Patrick Altmeyer <[email protected]>"]
4-
version = "1.1.1"
4+
version = "1.1.2"
55

66
[deps]
77
CounterfactualExplanations = "2f13d31b-18db-44c1-bc43-ebaf2cff0be0"

ext/MPIExt/evaluate.jl

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ function TaijaBase.parallelize(
8484
MPI.Barrier(parallelizer.comm)
8585
end
8686

87+
# Collect all chunks in rank 0:
88+
MPI.Barrier(parallelizer.comm)
89+
8790
# Load output from rank 0:
8891
if parallelizer.rank == 0
8992
outputs = []

ext/MPIExt/generate_counterfactual.jl

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ function TaijaBase.parallelize(
8484
MPI.Barrier(parallelizer.comm)
8585
end
8686

87+
# Collect all chunks in rank 0:
88+
MPI.Barrier(parallelizer.comm)
89+
8790
# Load output from rank 0:
8891
if parallelizer.rank == 0
8992
outputs = []

0 commit comments

Comments
 (0)