Skip to content

comment on datatypes #72

@wikfeldt

Description

@wikfeldt

from Joachim:

[...] looking into the example 2 of the block Extents and sizes, you directly feed the result of MPI_Get_address into the displacements of MPI_Type_create_struct.

To my understanding MPI_Get_address, returns the address with respect to MPI_BOTTOM, however the displacement needs to be specified with respect to the beginning of the derived data type you want to sent. So you need to subtract a (typically large offset).

For my own MPI course my teaching examples, in which I subtract the offset, work against OpenMPI. Please have a look and I am happy to discuss this - or be corrected in case my reading of the standard is wrong.

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