Skip to content

Commit f796943

Browse files
authored
Support MPI_WEIGHTS_EMPTY for MPItrampoline (#598)
1 parent 112c723 commit f796943

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/consts/microsoftmpi.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ const MPI_Win_errhandler_fn = MPI_Win_errhandler_function
218218
@const_ref MPI_ARGV_NULL Ptr{Cvoid} C_NULL
219219
@const_ref MPI_ARGVS_NULL Ptr{Cvoid} C_NULL
220220

221-
@const_ref MPI_UNWEIGHTED Ptr{Cvoid} 1
222-
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cvoid} 2
221+
@const_ref MPI_UNWEIGHTED Ptr{Cint} 1
222+
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} 2
223223
@const_ref MPI_BOTTOM Ptr{Cvoid} 0
224224
@const_ref MPI_IN_PLACE Ptr{Cvoid} -1
225225

src/consts/mpich.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ const MPI_Win_errhandler_fn = MPI_Win_errhandler_function
224224
@const_ref MPI_ARGV_NULL Ptr{Cvoid} C_NULL
225225
@const_ref MPI_ARGVS_NULL Ptr{Cvoid} C_NULL
226226

227-
@const_ref MPI_UNWEIGHTED Ptr{Cvoid} cglobal((:MPI_UNWEIGHTED, libmpi), Ptr{Cvoid})
228-
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cvoid} cglobal((:MPI_WEIGHTS_EMPTY, libmpi), Ptr{Cvoid})
227+
@const_ref MPI_UNWEIGHTED Ptr{Cint} cglobal((:MPI_UNWEIGHTED, libmpi), Ptr{Cint})
228+
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} cglobal((:MPI_WEIGHTS_EMPTY, libmpi), Ptr{Cint})
229229
@const_ref MPI_BOTTOM Ptr{Cvoid} C_NULL
230230
@const_ref MPI_IN_PLACE Ptr{Cvoid} -1
231231

src/consts/mpitrampoline.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ const MPI_Win_errhandler_fn = MPI_Win_errhandler_function
201201

202202
@const_ref MPI_ARGV_NULL Ptr{Cchar} unsafe_load(cglobal((:MPICONSTANTS_ARGV_NULL, libmpiconstants), Ptr{Ptr{Cchar}}))
203203
@const_ref MPI_ARGVS_NULL Ptr{Cchar} unsafe_load(cglobal((:MPICONSTANTS_ARGVS_NULL, libmpiconstants), Ptr{Ptr{Ptr{Cchar}}}))
204-
# MPI_UNWEIGHTED Ptr{Cvoid} unsafe_load(cglobal((:MPICONSTANTS_UNWEIGHTED, libmpiconstants), Ptr{Cint}))
205-
# MPI_WEIGHTS_EMPTY Ptr{Cvoid} unsafe_load(cglobal((:MPICONSTANTS_WEIGHTS_EMPTY, libmpiconstants), Ptr{Cint}))
204+
@const_ref MPI_UNWEIGHTED Ptr{Cint} unsafe_load(cglobal((:MPICONSTANTS_UNWEIGHTED, libmpiconstants), Ptr{Cint}))
205+
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} unsafe_load(cglobal((:MPICONSTANTS_WEIGHTS_EMPTY, libmpiconstants), Ptr{Cint}))
206206
@const_ref MPI_BOTTOM Ptr{Cvoid} unsafe_load(cglobal((:MPICONSTANTS_BOTTOM, libmpiconstants), Ptr{Cvoid}))
207207
@const_ref MPI_IN_PLACE Ptr{Cvoid} unsafe_load(cglobal((:MPICONSTANTS_IN_PLACE, libmpiconstants), Ptr{Cvoid}))
208208

src/consts/mpt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ const MPI_Win_errhandler_fn = MPI_Win_errhandler_function
221221
@const_ref MPI_ARGV_NULL Ptr{Cvoid} C_NULL
222222
@const_ref MPI_ARGVS_NULL Ptr{Cvoid} C_NULL
223223

224-
@const_ref MPI_UNWEIGHTED Ptr{Cvoid} cglobal((:MPI_UNWEIGHTED, libmpi), Ptr{Cvoid})
225-
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cvoid} cglobal((:MPI_WEIGHTS_EMPTY, libmpi), Ptr{Cvoid})
224+
@const_ref MPI_UNWEIGHTED Ptr{Cint} cglobal((:MPI_UNWEIGHTED, libmpi), Ptr{Cint})
225+
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} cglobal((:MPI_WEIGHTS_EMPTY, libmpi), Ptr{Cint})
226226
@const_ref MPI_BOTTOM Ptr{Cvoid} C_NULL
227227
@const_ref MPI_IN_PLACE Ptr{Cvoid} cglobal((:mpi_sgi_inplace, libmpi))
228228

src/consts/openmpi.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ const MPI_Win_errhandler_fn = MPI_Win_errhandler_function
242242
@const_ref MPI_ARGV_NULL Ptr{Cvoid} C_NULL
243243
@const_ref MPI_ARGVS_NULL Ptr{Cvoid} C_NULL
244244

245-
@const_ref MPI_UNWEIGHTED Ptr{Cvoid} 2
246-
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cvoid} 3
245+
@const_ref MPI_UNWEIGHTED Ptr{Cint} 2
246+
@const_ref MPI_WEIGHTS_EMPTY Ptr{Cint} 3
247247
@const_ref MPI_BOTTOM Ptr{Cvoid} 0
248248
@const_ref MPI_IN_PLACE Ptr{Cvoid} 1
249249

0 commit comments

Comments
 (0)