Skip to content

Commit

Permalink
fix splitcomm
Browse files Browse the repository at this point in the history
  • Loading branch information
AStupidBear committed Aug 4, 2022
1 parent 76b1df9 commit c036e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GCMAES"
uuid = "4aa9d100-eb0f-11e8-15f1-25748831eb3b"
authors = ["Yao Lu <[email protected]>"]
version = "0.1.28"
version = "0.1.29"

[deps]
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Expand Down
2 changes: 1 addition & 1 deletion src/mpi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end

function splitcomm(comm, n)
wsize, rank = worldsize(comm), myrank(comm)
if wsize > n
if wsize >= n
glbl = MPI.Comm_split(comm, rank % n, rank)
lcl = MPI.Comm_split(comm, rank ÷ n, rank)
else
Expand Down

2 comments on commit c036e66

@AStupidBear
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/65610

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.29 -m "<description of version>" c036e66a68e3f7c4f1a6ef4ab27d8d91507ed73b
git push origin v0.1.29

Please sign in to comment.