Skip to content
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

WIP: Restructure cluster manager #96

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
69a9914
Implement Comm_dup and Comm_free
eschnett Nov 25, 2015
d5e7419
Implement Testall and Waitany
eschnett Nov 25, 2015
eced9f3
Convert some MPI functions results to Int
eschnett Nov 25, 2015
c9d31da
Reformat / clean up source code
eschnett Nov 25, 2015
ca5aff2
Clean up source code
eschnett Nov 25, 2015
a454737
Clean up Monte Carlo example
eschnett Nov 25, 2015
57226be
Restructure MPI cluster manager
eschnett Nov 25, 2015
a4d454c
Disable Testany, which doesn't work on OS X in MPICH
eschnett Nov 25, 2015
739f84a
Re-enable TestAny; install mpich from source on OS X
eschnett Nov 25, 2015
0b9c910
Add --verbose to `brew --install` to avoid Travis timing out
eschnett Nov 25, 2015
399d99f
Implement Waitsome!, Testsome!
eschnett Nov 25, 2015
03bdbbf
Use Testsome! instead of Testany! in cluster manager
eschnett Nov 25, 2015
9274c1f
Don't build MPICH from source in Travis on OS X
eschnett Nov 25, 2015
59a503f
Correct handling of index arrays
eschnett Nov 25, 2015
80ec5be
Don't need to set finished requests to REQUEST_NULL
eschnett Nov 25, 2015
6bb01e3
Build MPICH and OpenMPI on OS X, replacing output with a progress marker
eschnett Nov 25, 2015
be8e4a6
Clean up index handling
eschnett Nov 25, 2015
440b204
Add MPI functions to CMakeLists.txt
eschnett Nov 25, 2015
eb9d62d
Add MPI_Scatter to CMakeLists.txt
eschnett Nov 25, 2015
9f1103c
Reformat travis-install-mpi.sh
eschnett Nov 25, 2015
f9fc07c
Re-indent auto-generated files
eschnett Nov 26, 2015
192226d
Merge branch 'master' into eschnett/cman
eschnett Nov 26, 2015
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
Next Next commit
Implement Comm_dup and Comm_free
  • Loading branch information
eschnett committed Nov 25, 2015
commit 69a99149f8e21b018e92b636151b6cc8dba0e25b
11 changes: 11 additions & 0 deletions src/mpi-base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ function Finalized()
flag[1] != 0
end

function Comm_dup(comm::Comm)
newcomm = MPI.Comm(0)
ccall((MPI_COMM_DUP,libmpi), Void, (Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
&comm.val, &newcomm.val, &0)
newcomm
end

function Comm_free(comm::Comm)
ccall((MPI_COMM_FREE,libmpi), Void, (Ptr{Cint}, Ptr{Cint}), &comm.val, &0)
end

function Comm_rank(comm::Comm)
rank = Array(Cint, 1)
ccall((MPI_COMM_RANK,libmpi), Void, (Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
Expand Down