Skip to content

Latest commit

 

History

History

struct-datatype

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Datatype for a struct / derived type

Implement a custom MPI datatype for a struct (in C) or a derived type (in Fortran).

Starting from a skeleton code for a program that sends an array of structs (derived types in Fortran) between two tasks.

  1. Implement a user-defined datatype that can be used for sending the structured data and verify that the communication is performed successfully. Check the size and true extent of your type.
  2. Implement the same send by sending just a stream of bytes (type MPI_BYTE). Verify correctness and compare the performance of these two approaches.