-
Notifications
You must be signed in to change notification settings - Fork 18
Add DistributedArrays #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arnavk23
wants to merge
16
commits into
JuliaSmoothOptimizers:main
Choose a base branch
from
arnavk23:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
48e1688
Add optional distributed-array helpers and tests (gather_on_root)
arnavk23 a9d6e1e
Format: run JuliaFormatter
arnavk23 3984b53
Format: run JuliaFormatter (stable options)
arnavk23 729e877
Remove JuliaFormatter dependency from Project.toml
arnavk23 e93e645
remove Yggdrasil
arnavk23 2e68631
Update distributed.jl
arnavk23 ca39b42
Remove comments from distributed helpers test file
arnavk23 e12ca38
Simplify distributed helper tests setup
arnavk23 c5715f2
Make DistributedArrays a test extra (not a hard dep); require it in t…
arnavk23 b643a25
removing helper
arnavk23 80d17f4
documentation
arnavk23 b7d09cd
Update MUMPS.jl
arnavk23 7d27597
Update MUMPS.jl
arnavk23 3bd2969
Update Project.toml
arnavk23 63fdae6
poisson_example
arnavk23 e3c99de
Update index.md
arnavk23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| using Test | ||
| using MPI | ||
| using MUMPS | ||
| import DistributedArrays | ||
|
|
||
| comm = MPI.COMM_WORLD | ||
| rank = MPI.Comm_rank(comm) | ||
|
|
||
| @testset "distributed helpers" begin | ||
| localA = reshape(collect(1:12), 3, 4) | ||
| darr = DistributedArrays.distribute(localA) | ||
|
|
||
| if rank == 0 | ||
| g = Array(darr) | ||
| else | ||
| g = nothing | ||
| end | ||
|
|
||
| if rank == 0 | ||
| @test isa(g, Array) | ||
| @test size(g) == size(localA) | ||
| @test all(g .== localA) | ||
| else | ||
| @test g === nothing | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.