Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 601 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 601 Bytes

Modifying extent

When the datatype contains gaps in the beginning or in the end, one might need to modify the extent of the datatype.

Starting from skeleton.c or skeleton.F90, create a vector datatype for sending a column (C) or row (Fortran) of a matrix.

  1. Verify that the datatype works by communicating a single column/row.

  2. Try to send multiple columns / rows. What happens? Can you explain why?

  3. Create a new datatype with resized extent, so that communicating multiple columns / rows succeeds.

  4. Try to scatter columns / rows with MPI_Scatter