Skip to content

Receiving partial buffer with mrecv #2

@subodhkalia

Description

@subodhkalia

It's written in the documentation that there are no partial transfers: http://libdill.org/mrecv.html

However, I am receiving 236 bytes while I am expecting 1600000 bytes. The status code is 0 which means that the operation is successful.

Is there any references which I can look into?

I changed msend and mrecv in mod_dill.f90 to real c_double. The double array gets transferred from client to server without any issues but from server to client, the transfer is partial.

integer(c_size_t) function mrecv(s, buf, len, deadline) &
                  bind(c, name='dill_mrecv')
  import :: c_char, c_int, c_int64_t, c_size_t, **c_double**
  integer(c_int), value, intent(in) :: s
  **real(c_double), intent(in out) :: buf(*)**
  integer(c_size_t), value, intent(in) :: len
  integer(c_int64_t), value, intent(in) :: deadline
end function mrecv

integer(c_int) function msend(s, buf, len, deadline) &
               bind(c, name='dill_msend')
  import :: c_char, c_int, c_int64_t, c_size_t, **c_double**
  integer(c_int), value, intent(in) :: s
  **real(c_double), intent(in) :: buf(*)**
  integer(c_size_t), value, intent(in) :: len
  integer(c_int64_t), value, intent(in) :: deadline
end function msend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions