Skip to content

Commit 3dde428

Browse files
authored
correct return type for MPI_Init and MPI_Finalize (#306)
1 parent 928d535 commit 3dde428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/environment.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Init()
4646
if REFCOUNT[] != 1
4747
error("MPI REFCOUNT in incorrect state")
4848
end
49-
@mpichk ccall((:MPI_Init, libmpi), Nothing, (Ptr{Cint},Ptr{Cint}), C_NULL, C_NULL)
49+
@mpichk ccall((:MPI_Init, libmpi), Cint, (Ptr{Cint},Ptr{Cint}), C_NULL, C_NULL)
5050
atexit(refcount_dec)
5151

5252
for f in mpi_init_hooks
@@ -93,7 +93,7 @@ function Finalize()
9393
end
9494

9595
function _Finalize()
96-
@mpichk ccall((:MPI_Finalize, libmpi), Nothing, ())
96+
@mpichk ccall((:MPI_Finalize, libmpi), Cint, ())
9797
end
9898

9999
"""

0 commit comments

Comments
 (0)