
Go to the source code of this file.
Functions | |
Functions: User-defined datatypes and packing | |
| int | MPI_Type_size (MPI_Datatype datatype, int *size) |
| Returns the total size, in bytes, of the entries in the type signature associated with datatype. | |
| int | MPI_Type_size_c (MPI_Datatype datatype, MPI_Count *size) |
| int | MPI_Type_size_x (MPI_Datatype datatype, MPI_Count *size) |
| int | MPI_Type_get_extent (MPI_Datatype datatype, MPI_Aint *lb, MPI_Aint *extent) |
| Returns the lower bound and the extent of datatype. | |
| int | MPI_Type_get_extent_c (MPI_Datatype datatype, MPI_Count *lb, MPI_Count *extent) |
| int | MPI_Type_get_extent_x (MPI_Datatype datatype, MPI_Count *lb, MPI_Count *extent) |
| int | MPI_Type_extent (MPI_Datatype datatype, MPI_Aint *extent) __attribute__((deprecated)) |
| Returns the extent of the datatype. | |
| int | MPI_Type_get_true_extent (MPI_Datatype datatype, MPI_Aint *true_lb, MPI_Aint *true_extent) |
| int | MPI_Type_get_true_extent_c (MPI_Datatype datatype, MPI_Count *true_lb, MPI_Count *true_extent) |
| int | MPI_Type_get_true_extent_x (MPI_Datatype datatype, MPI_Count *true_lb, MPI_Count *true_extent) |
| int | MPI_Type_lb (MPI_Datatype datatype, MPI_Aint *lb) __attribute__((deprecated)) |
| Returns the lower bound of the datatype. | |
| int | MPI_Type_ub (MPI_Datatype datatype, MPI_Aint *displacement) __attribute__((deprecated)) |
| Returns the upper bound of a datatype. | |
| int | MPI_Type_create_resized (MPI_Datatype oldtype, MPI_Aint lb, MPI_Aint extent, MPI_Datatype *newtype) |
| Returns in newtype a new datatype that is identical to oldtype, except that the lower bound of this new datatype is set to be lb, and its upper bound is set to lb + extent. | |
| int | MPI_Type_create_resized_c (MPI_Datatype oldtype, MPI_Count lb, MPI_Count extent, MPI_Datatype *newtype) |
| int | MPI_Type_dup (MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_commit (MPI_Datatype *datatype) |
| Commits the datatype. | |
| int | MPI_Type_free (MPI_Datatype *datatype) |
| Marks the datatype object associated with datatype for deallocation. | |
| int | MPI_Type_contiguous (int count, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| Constructs a typemap consisting of the replication of a datatype into contiguous locations. | |
| int | MPI_Type_contiguous_c (MPI_Count count, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_vector (int count, int blocklength, int stride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| Constructs a typemap consisting of the replication of a datatype into location that consist of equally spaced blocks. | |
| int | MPI_Type_vector_c (MPI_Count count, MPI_Count blocklength, MPI_Count stride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_hvector (int count, int blocklength, MPI_Aint stride, MPI_Datatype oldtype, MPI_Datatype *newtype) __attribute__((deprecated)) |
| Constructs a typemap consisting of the replication of a datatype into location that consist of equally spaced blocks, assumes that the stride between successive blocks is a multiple of the oldtype extent. | |
| int | MPI_Type_indexed (int count, const int array_of_blocklengths[], const int array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| Constructs a typemap consisting of the replication of a datatype into a sequence of blocks, each block is a concatenation of the old datatype. | |
| int | MPI_Type_indexed_c (MPI_Count count, const MPI_Count array_of_blocklengths[], const MPI_Count array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_hindexed (int count, int array_of_blocklengths[], MPI_Aint array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) __attribute__((deprecated)) |
| Constructs a typemap consisting of the replication of a datatype into a sequence of blocks, each block is a concatenation of the old datatype; block displacements are specified in bytes, rather than in multiples of the old datatype extent. | |
| int | MPI_Type_struct (int count, int *array_of_blocklengths, MPI_Aint *array_of_displacements, MPI_Datatype *array_of_types, MPI_Datatype *newtype) __attribute__((deprecated)) |
| Constructs a typemap consisting of the replication of different datatypes, with different block sizes. | |
| int | MPI_Type_create_hindexed (int count, const int array_of_blocklengths[], const MPI_Aint array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_hindexed_c (MPI_Count count, const MPI_Count array_of_blocklengths[], const MPI_Count array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_hvector (int count, int blocklength, MPI_Aint hstride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_hvector_c (MPI_Count count, MPI_Count blocklength, MPI_Count hstride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_indexed_block (int count, int blocklength, const int array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_indexed_block_c (MPI_Count count, MPI_Count blocklength, const MPI_Count array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_hindexed_block (int count, int blocklength, const MPI_Aint array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_hindexed_block_c (MPI_Count count, MPI_Count blocklength, const MPI_Count array_of_displacements[], MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_subarray (int ndims, const int array_of_sizes[], const int array_of_subsizes[], const int array_of_starts[], int order, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_subarray_c (int ndims, const MPI_Count array_of_sizes[], const MPI_Count array_of_subsizes[], const MPI_Count array_of_starts[], int order, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_darray (int size, int rank, int ndims, const int array_of_gsizes[], const int array_of_distribs[], const int array_of_dargs[], const int array_of_psizes[], int order, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_darray_c (int size, int rank, int ndims, const MPI_Count array_of_gsizes[], const MPI_Count array_of_distribs[], const MPI_Count array_of_dargs[], const MPI_Count array_of_psizes[], int order, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_create_struct (int count, int array_of_blocklengths[], MPI_Aint array_of_displacements[], MPI_Datatype array_of_types[], MPI_Datatype *newtype) |
| int | MPI_Type_create_struct_c (MPI_Count count, MPI_Count array_of_blocklengths[], MPI_Count array_of_displacements[], MPI_Datatype array_of_types[], MPI_Datatype *newtype) |
| int | MPI_Type_get_envelope (MPI_Datatype datatype, int *num_integers, int *num_addresses, int *num_datatypes, int *combiner) |
| int | MPI_Type_get_envelope_c (MPI_Datatype datatype, MPI_Count *num_integers, MPI_Count *num_addresses, MPI_Count *num_large_counts, MPI_Count *num_datatypes, int *combiner) |
| int | MPI_Type_get_contents (MPI_Datatype datatype, int max_integers, int max_addresses, int max_datatypes, int array_of_integers[], MPI_Aint array_of_addresses[], MPI_Datatype array_of_datatypes[]) |
| int | MPI_Type_get_contents_c (MPI_Datatype datatype, MPI_Count max_integers, MPI_Count max_addresses, MPI_Count max_large_counts, MPI_Count max_datatypes, int array_of_integers[], MPI_Aint array_of_addresses[], MPI_Count array_of_large_counts[], MPI_Datatype array_of_datatypes[]) |
| int | MPI_Type_set_name (MPI_Datatype datatype, char *type_name) |
| int | MPI_Type_get_name (MPI_Datatype datatype, char *type_name, int *resultlen) |
| int | MPI_Type_create_keyval (MPI_Type_copy_attr_function *copy_fn, MPI_Type_delete_attr_function *delete_fn, int *keyval, void *extra_state) |
| int | MPI_Type_free_keyval (int *keyval) |
| int | MPI_Type_delete_attr (MPI_Datatype datatype, int keyval) |
| int | MPI_Type_set_attr (MPI_Datatype datatype, int datatype_keyval, void *attribute_val) |
| int | MPI_Type_get_attr (MPI_Datatype datatype, int datatype_keyval, void *attribute_val, int *flag) |
| int | MPI_Pack (const void *inbuf, int incount, MPI_Datatype datatype, void *outbuf, int outsize, int *position, MPI_Comm comm) |
| Packs a message specified by inbuf, incount, datatype, comm into the buffer space specified by outbuf and outsize. | |
| int | MPI_Pack_c (const void *inbuf, MPI_Count incount, MPI_Datatype datatype, void *outbuf, MPI_Count outsize, MPI_Count *position, MPI_Comm comm) |
| int | MPI_Unpack (const void *inbuf, int insize, int *position, void *outbuf, int outcount, MPI_Datatype datatype, MPI_Comm comm) |
| Unpacks a message into the receive buffer specified by outbuf, outcount, datatype from the buffer space specified by inbuf and insize. | |
| int | MPI_Unpack_c (const void *inbuf, MPI_Count insize, MPI_Count *position, void *outbuf, MPI_Count outcount, MPI_Datatype datatype, MPI_Comm comm) |
| int | MPI_Pack_size (int incount, MPI_Datatype datatype, MPI_Comm comm, int *size) |
| Returns the upper bound on the amount of space needed to pack a message. | |
| int | MPI_Pack_size_c (MPI_Count incount, MPI_Datatype datatype, MPI_Comm comm, MPI_Count *size) |
| int | MPI_Pack_external (const char datarep[], const void *inbuf, int incount, MPI_Datatype datatype, void *outbuf, MPI_Aint outsize, MPI_Aint *position) |
| int | MPI_Pack_external_c (const char datarep[], const void *inbuf, MPI_Count incount, MPI_Datatype datatype, void *outbuf, MPI_Count outsize, MPI_Count *position) |
| int | MPI_Unpack_external (const char datarep[], const void *inbuf, MPI_Aint insize, MPI_Aint *position, void *outbuf, int outcount, MPI_Datatype datatype) |
| int | MPI_Unpack_external_c (const char datarep[], const void *inbuf, MPI_Count insize, MPI_Count *position, void *outbuf, MPI_Count outcount, MPI_Datatype datatype) |
| int | MPI_Pack_external_size (const char datarep[], int incount, MPI_Datatype datatype, MPI_Aint *size) |
| int | MPI_Pack_external_size_c (const char datarep[], MPI_Count incount, MPI_Datatype datatype, MPI_Count *size) |
Function Documentation
◆ MPI_Pack()
| int MPI_Pack | ( | const void * | inbuf, |
| int | incount, | ||
| MPI_Datatype | datatype, | ||
| void * | outbuf, | ||
| int | outsize, | ||
| int * | position, | ||
| MPI_Comm | comm | ||
| ) |
Packs a message specified by inbuf, incount, datatype, comm into the buffer space specified by outbuf and outsize.
The input buffer can be any communication buffer allowed in MPI_SEND. The output buffer is a contiguous storage area containing outsize bytes, starting at the address outbuf.
- Parameters
-
inbuf initial address of send buffer incount number of elements in send buffer datatype datatype of each send buffer element outbuf outsize position comm communicator
- Returns
- MPI status
◆ MPI_Pack_c()
| int MPI_Pack_c | ( | const void * | inbuf, |
| MPI_Count | incount, | ||
| MPI_Datatype | datatype, | ||
| void * | outbuf, | ||
| MPI_Count | outsize, | ||
| MPI_Count * | position, | ||
| MPI_Comm | comm | ||
| ) |
◆ MPI_Pack_external()
| int MPI_Pack_external | ( | const char | datarep[], |
| const void * | inbuf, | ||
| int | incount, | ||
| MPI_Datatype | datatype, | ||
| void * | outbuf, | ||
| MPI_Aint | outsize, | ||
| MPI_Aint * | position | ||
| ) |
◆ MPI_Pack_external_c()
| int MPI_Pack_external_c | ( | const char | datarep[], |
| const void * | inbuf, | ||
| MPI_Count | incount, | ||
| MPI_Datatype | datatype, | ||
| void * | outbuf, | ||
| MPI_Count | outsize, | ||
| MPI_Count * | position | ||
| ) |
◆ MPI_Pack_external_size()
| int MPI_Pack_external_size | ( | const char | datarep[], |
| int | incount, | ||
| MPI_Datatype | datatype, | ||
| MPI_Aint * | size | ||
| ) |
◆ MPI_Pack_external_size_c()
| int MPI_Pack_external_size_c | ( | const char | datarep[], |
| MPI_Count | incount, | ||
| MPI_Datatype | datatype, | ||
| MPI_Count * | size | ||
| ) |
◆ MPI_Pack_size()
| int MPI_Pack_size | ( | int | incount, |
| MPI_Datatype | datatype, | ||
| MPI_Comm | comm, | ||
| int * | size | ||
| ) |
Returns the upper bound on the amount of space needed to pack a message.
- Parameters
-
incount count argument to packing call datatype datatype argument to packing call comm communicator argument to packing call size upper bound on size of packed message, in bytes
- Returns
- MPI status
◆ MPI_Pack_size_c()
| int MPI_Pack_size_c | ( | MPI_Count | incount, |
| MPI_Datatype | datatype, | ||
| MPI_Comm | comm, | ||
| MPI_Count * | size | ||
| ) |
◆ MPI_Type_commit()
| int MPI_Type_commit | ( | MPI_Datatype * | datatype | ) |
Commits the datatype.
- Parameters
-
datatype datatype that is committed
- Returns
- MPI status
◆ MPI_Type_contiguous()
| int MPI_Type_contiguous | ( | int | count, |
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of a datatype into contiguous locations.
- Parameters
-
count replication count oldtype old datatype newtype new datatype
- Returns
- MPI status
◆ MPI_Type_contiguous_c()
| int MPI_Type_contiguous_c | ( | MPI_Count | count, |
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_darray()
| int MPI_Type_create_darray | ( | int | size, |
| int | rank, | ||
| int | ndims, | ||
| const int | array_of_gsizes[], | ||
| const int | array_of_distribs[], | ||
| const int | array_of_dargs[], | ||
| const int | array_of_psizes[], | ||
| int | order, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_darray_c()
| int MPI_Type_create_darray_c | ( | int | size, |
| int | rank, | ||
| int | ndims, | ||
| const MPI_Count | array_of_gsizes[], | ||
| const MPI_Count | array_of_distribs[], | ||
| const MPI_Count | array_of_dargs[], | ||
| const MPI_Count | array_of_psizes[], | ||
| int | order, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hindexed()
| int MPI_Type_create_hindexed | ( | int | count, |
| const int | array_of_blocklengths[], | ||
| const MPI_Aint | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hindexed_block()
| int MPI_Type_create_hindexed_block | ( | int | count, |
| int | blocklength, | ||
| const MPI_Aint | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hindexed_block_c()
| int MPI_Type_create_hindexed_block_c | ( | MPI_Count | count, |
| MPI_Count | blocklength, | ||
| const MPI_Count | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hindexed_c()
| int MPI_Type_create_hindexed_c | ( | MPI_Count | count, |
| const MPI_Count | array_of_blocklengths[], | ||
| const MPI_Count | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hvector()
| int MPI_Type_create_hvector | ( | int | count, |
| int | blocklength, | ||
| MPI_Aint | hstride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_hvector_c()
| int MPI_Type_create_hvector_c | ( | MPI_Count | count, |
| MPI_Count | blocklength, | ||
| MPI_Count | hstride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_indexed_block()
| int MPI_Type_create_indexed_block | ( | int | count, |
| int | blocklength, | ||
| const int | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_indexed_block_c()
| int MPI_Type_create_indexed_block_c | ( | MPI_Count | count, |
| MPI_Count | blocklength, | ||
| const MPI_Count | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_keyval()
| int MPI_Type_create_keyval | ( | MPI_Type_copy_attr_function * | copy_fn, |
| MPI_Type_delete_attr_function * | delete_fn, | ||
| int * | keyval, | ||
| void * | extra_state | ||
| ) |
◆ MPI_Type_create_resized()
| int MPI_Type_create_resized | ( | MPI_Datatype | oldtype, |
| MPI_Aint | lb, | ||
| MPI_Aint | extent, | ||
| MPI_Datatype * | newtype | ||
| ) |
Returns in newtype a new datatype that is identical to oldtype, except that the lower bound of this new datatype is set to be lb, and its upper bound is set to lb + extent.
- Parameters
-
oldtype input datatype lb new lower bound of datatype extent new extent of datatype newtype output datatype
- Returns
- MPI status
◆ MPI_Type_create_resized_c()
| int MPI_Type_create_resized_c | ( | MPI_Datatype | oldtype, |
| MPI_Count | lb, | ||
| MPI_Count | extent, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_struct()
| int MPI_Type_create_struct | ( | int | count, |
| int | array_of_blocklengths[], | ||
| MPI_Aint | array_of_displacements[], | ||
| MPI_Datatype | array_of_types[], | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_struct_c()
| int MPI_Type_create_struct_c | ( | MPI_Count | count, |
| MPI_Count | array_of_blocklengths[], | ||
| MPI_Count | array_of_displacements[], | ||
| MPI_Datatype | array_of_types[], | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_subarray()
| int MPI_Type_create_subarray | ( | int | ndims, |
| const int | array_of_sizes[], | ||
| const int | array_of_subsizes[], | ||
| const int | array_of_starts[], | ||
| int | order, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_create_subarray_c()
| int MPI_Type_create_subarray_c | ( | int | ndims, |
| const MPI_Count | array_of_sizes[], | ||
| const MPI_Count | array_of_subsizes[], | ||
| const MPI_Count | array_of_starts[], | ||
| int | order, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_delete_attr()
| int MPI_Type_delete_attr | ( | MPI_Datatype | datatype, |
| int | keyval | ||
| ) |
◆ MPI_Type_dup()
| int MPI_Type_dup | ( | MPI_Datatype | oldtype, |
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_extent()
| int MPI_Type_extent | ( | MPI_Datatype | datatype, |
| MPI_Aint * | extent | ||
| ) |
Returns the extent of the datatype.
- Parameters
-
datatype datatype extent extent of datatype
- Returns
- MPI status
◆ MPI_Type_free()
| int MPI_Type_free | ( | MPI_Datatype * | datatype | ) |
Marks the datatype object associated with datatype for deallocation.
- Parameters
-
datatype datatype that is freed
- Returns
- MPI status
◆ MPI_Type_free_keyval()
| int MPI_Type_free_keyval | ( | int * | keyval | ) |
◆ MPI_Type_get_attr()
| int MPI_Type_get_attr | ( | MPI_Datatype | datatype, |
| int | datatype_keyval, | ||
| void * | attribute_val, | ||
| int * | flag | ||
| ) |
◆ MPI_Type_get_contents()
| int MPI_Type_get_contents | ( | MPI_Datatype | datatype, |
| int | max_integers, | ||
| int | max_addresses, | ||
| int | max_datatypes, | ||
| int | array_of_integers[], | ||
| MPI_Aint | array_of_addresses[], | ||
| MPI_Datatype | array_of_datatypes[] | ||
| ) |
◆ MPI_Type_get_contents_c()
| int MPI_Type_get_contents_c | ( | MPI_Datatype | datatype, |
| MPI_Count | max_integers, | ||
| MPI_Count | max_addresses, | ||
| MPI_Count | max_large_counts, | ||
| MPI_Count | max_datatypes, | ||
| int | array_of_integers[], | ||
| MPI_Aint | array_of_addresses[], | ||
| MPI_Count | array_of_large_counts[], | ||
| MPI_Datatype | array_of_datatypes[] | ||
| ) |
◆ MPI_Type_get_envelope()
| int MPI_Type_get_envelope | ( | MPI_Datatype | datatype, |
| int * | num_integers, | ||
| int * | num_addresses, | ||
| int * | num_datatypes, | ||
| int * | combiner | ||
| ) |
◆ MPI_Type_get_envelope_c()
| int MPI_Type_get_envelope_c | ( | MPI_Datatype | datatype, |
| MPI_Count * | num_integers, | ||
| MPI_Count * | num_addresses, | ||
| MPI_Count * | num_large_counts, | ||
| MPI_Count * | num_datatypes, | ||
| int * | combiner | ||
| ) |
◆ MPI_Type_get_extent()
| int MPI_Type_get_extent | ( | MPI_Datatype | datatype, |
| MPI_Aint * | lb, | ||
| MPI_Aint * | extent | ||
| ) |
Returns the lower bound and the extent of datatype.
- Parameters
-
datatype datatype lb lower bound of datatype extent extent of datatype
- Returns
- MPI status
◆ MPI_Type_get_extent_c()
| int MPI_Type_get_extent_c | ( | MPI_Datatype | datatype, |
| MPI_Count * | lb, | ||
| MPI_Count * | extent | ||
| ) |
◆ MPI_Type_get_extent_x()
| int MPI_Type_get_extent_x | ( | MPI_Datatype | datatype, |
| MPI_Count * | lb, | ||
| MPI_Count * | extent | ||
| ) |
◆ MPI_Type_get_name()
| int MPI_Type_get_name | ( | MPI_Datatype | datatype, |
| char * | type_name, | ||
| int * | resultlen | ||
| ) |
◆ MPI_Type_get_true_extent()
| int MPI_Type_get_true_extent | ( | MPI_Datatype | datatype, |
| MPI_Aint * | true_lb, | ||
| MPI_Aint * | true_extent | ||
| ) |
◆ MPI_Type_get_true_extent_c()
| int MPI_Type_get_true_extent_c | ( | MPI_Datatype | datatype, |
| MPI_Count * | true_lb, | ||
| MPI_Count * | true_extent | ||
| ) |
◆ MPI_Type_get_true_extent_x()
| int MPI_Type_get_true_extent_x | ( | MPI_Datatype | datatype, |
| MPI_Count * | true_lb, | ||
| MPI_Count * | true_extent | ||
| ) |
◆ MPI_Type_hindexed()
| int MPI_Type_hindexed | ( | int | count, |
| int | array_of_blocklengths[], | ||
| MPI_Aint | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of a datatype into a sequence of blocks, each block is a concatenation of the old datatype; block displacements are specified in bytes, rather than in multiples of the old datatype extent.
- Parameters
-
count number of blocks – also number of entries in array_of_displacements and array_of_blocklengths array_of_blocklengths number of elements per block array_of_displacements byte displacement of each block oldtype old datatype newtype new datatype
- Returns
- MPI status
◆ MPI_Type_hvector()
| int MPI_Type_hvector | ( | int | count, |
| int | blocklength, | ||
| MPI_Aint | stride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of a datatype into location that consist of equally spaced blocks, assumes that the stride between successive blocks is a multiple of the oldtype extent.
- Parameters
-
count number of blocks blocklength number of elements in each block stride number of bytes between start of each block oldtype old datatype newtype new datatype
- Returns
- MPI status
◆ MPI_Type_indexed()
| int MPI_Type_indexed | ( | int | count, |
| const int | array_of_blocklengths[], | ||
| const int | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of a datatype into a sequence of blocks, each block is a concatenation of the old datatype.
- Parameters
-
count number of blocks – also number of entries in array_of_displacements and array_of_blocklengths array_of_blocklengths number of elements per block array_of_displacements displacement for each block, in multiples of oldtype extent oldtype old datatype newtype new datatype
- Returns
- MPI status
◆ MPI_Type_indexed_c()
| int MPI_Type_indexed_c | ( | MPI_Count | count, |
| const MPI_Count | array_of_blocklengths[], | ||
| const MPI_Count | array_of_displacements[], | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Type_lb()
| int MPI_Type_lb | ( | MPI_Datatype | datatype, |
| MPI_Aint * | lb | ||
| ) |
Returns the lower bound of the datatype.
- Parameters
-
datatype datatype lb lower bound of datatype
- Returns
- MPI status
◆ MPI_Type_set_attr()
| int MPI_Type_set_attr | ( | MPI_Datatype | datatype, |
| int | datatype_keyval, | ||
| void * | attribute_val | ||
| ) |
◆ MPI_Type_set_name()
| int MPI_Type_set_name | ( | MPI_Datatype | datatype, |
| char * | type_name | ||
| ) |
◆ MPI_Type_size()
| int MPI_Type_size | ( | MPI_Datatype | datatype, |
| int * | size | ||
| ) |
Returns the total size, in bytes, of the entries in the type signature associated with datatype.
- Parameters
-
datatype datatype size datatype size
- Returns
- MPI status
◆ MPI_Type_size_c()
| int MPI_Type_size_c | ( | MPI_Datatype | datatype, |
| MPI_Count * | size | ||
| ) |
◆ MPI_Type_size_x()
| int MPI_Type_size_x | ( | MPI_Datatype | datatype, |
| MPI_Count * | size | ||
| ) |
◆ MPI_Type_struct()
| int MPI_Type_struct | ( | int | count, |
| int * | array_of_blocklengths, | ||
| MPI_Aint * | array_of_displacements, | ||
| MPI_Datatype * | array_of_types, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of different datatypes, with different block sizes.
- Parameters
-
count number of blocks – also number of entries in arrays array_of_types, array_of_displacements and array_of_blocklengths array_of_blocklengths number of elements in each block array_of_displacements byte displacement of each block array_of_types type of elements in each block newtype new datatype
- Returns
- MPI status
◆ MPI_Type_ub()
| int MPI_Type_ub | ( | MPI_Datatype | datatype, |
| MPI_Aint * | displacement | ||
| ) |
Returns the upper bound of a datatype.
◆ MPI_Type_vector()
| int MPI_Type_vector | ( | int | count, |
| int | blocklength, | ||
| int | stride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Constructs a typemap consisting of the replication of a datatype into location that consist of equally spaced blocks.
- Parameters
-
count number of blocks blocklength number of elements in each block stride number of elements between start of each block oldtype old datatype newtype new datatype
- Returns
- MPI status
◆ MPI_Type_vector_c()
| int MPI_Type_vector_c | ( | MPI_Count | count, |
| MPI_Count | blocklength, | ||
| MPI_Count | stride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
◆ MPI_Unpack()
| int MPI_Unpack | ( | const void * | inbuf, |
| int | insize, | ||
| int * | position, | ||
| void * | outbuf, | ||
| int | outcount, | ||
| MPI_Datatype | datatype, | ||
| MPI_Comm | comm | ||
| ) |
Unpacks a message into the receive buffer specified by outbuf, outcount, datatype from the buffer space specified by inbuf and insize.
The output buffer can be any communication buffer allowed in MPI_RECV. The input buffer is a contiguous storage area containing insize bytes, starting at address inbuf. The input value of position is the position in the input buffer where one wishes the unpacking to begin. The output value of position is incremented by the size of the packed message, so that it can be used as input to a subsequent call to MPI_UNPACK.
- Parameters
-
inbuf initial address of receive buffer insize number of elements in receive buffer position outbuf outcount datatype datatype of each receive buffer element comm communicator
- Returns
- MPI status
◆ MPI_Unpack_c()
| int MPI_Unpack_c | ( | const void * | inbuf, |
| MPI_Count | insize, | ||
| MPI_Count * | position, | ||
| void * | outbuf, | ||
| MPI_Count | outcount, | ||
| MPI_Datatype | datatype, | ||
| MPI_Comm | comm | ||
| ) |
◆ MPI_Unpack_external()
| int MPI_Unpack_external | ( | const char | datarep[], |
| const void * | inbuf, | ||
| MPI_Aint | insize, | ||
| MPI_Aint * | position, | ||
| void * | outbuf, | ||
| int | outcount, | ||
| MPI_Datatype | datatype | ||
| ) |
◆ MPI_Unpack_external_c()
| int MPI_Unpack_external_c | ( | const char | datarep[], |
| const void * | inbuf, | ||
| MPI_Count | insize, | ||
| MPI_Count * | position, | ||
| void * | outbuf, | ||
| MPI_Count | outcount, | ||
| MPI_Datatype | datatype | ||
| ) |