Skip to content

fix pack/unpack #5

@jeffhammond

Description

@jeffhammond

MPI pack and unpack functions are not count-safe because they use int to express a number of bytes.

ROMIO uses these functions, so I guess @roblatham00 would like to see this fixed.

Pack

int MPI_Pack(const void *inbuf,
             int incount,
             MPI_Datatype datatype,
             void *outbuf,
             int outsize,
             int *position,
             MPI_Comm comm)

Unpack

int MPI_Unpack(const void *inbuf,
             int insize,
             int *position,
             void *outbuf,
             int outcount,
             MPI_Datatype datatype,
             MPI_Comm comm)

Metadata

Metadata

Assignees

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