I have a c function that requires me to pass a comm pointer to the function
I converted the function using Clang.jl showed below
function Comm(comm_handle)
ccall((:Comm, librarypath), Cint, (Ptr{Cvoid}), comm_handle)
end
But I am getting an error if I pass MPI.MPI_COMM_WORLD
to the function
MethodError: no method matching unsafe_convert(::Type{Ptr{Cvoid}}, ::MPI.Comm)
Did I pass the wrong communicator or a wrong type of pointer is declared?