You are correct that they have not been wrapped. I shouldn’t be too difficult to add them, but I don’t know if anyone has the right combination of time and motivation to do so. If you want to add them yourself and submit a pull request, the general procedure is:
- Add the function name to gen_functions.c.
deps/build.jl. This will update the list of function names. The purpose of the
printf statements in
gen_functions.c is to create global constants in Julia (the name following the colon).
- In mpi-base.jl, add a Julia function containing a
ccall, using the global constants created in steps 1 and 2. This function should have exactly the same arguments at the MPI function. Note that MPI.jl uses the Fortran MPI interface, so scalar arguments need an extra
Ref around them.
- If you want, create higher-level functions that call the function written in step 3. For example,
MPI_Dims_create takes an array and an integer argument specifying the array length. You could create a function that takes the array but not the length argument, and call
length on the array.
- Add a test. The test need to be just enough to make sure the arguments are getting passed through the