MPI convolutions

Header file for MPI based convolutions.

Author

Venkata Mukund Kashyap Yedunuthala

Date

23 January 2024

Functions

void setup_convolution_new(Kernels &kernels, unsigned int &rows, unsigned int &cols, int *&valueArray, int *&resultArray)

Performs convolution of a given array with a given kernel in parallel using MPI.

Performs MPI scatter and gather operations. Additional information regarding halo, i.e. rows present above and below a portion of input array are also communicated.

Parameters:
  • kernelsKernels struct object containing all the information.

  • rows – Number of rows present in input array.

  • cols – Number of columns present in input array.

  • valueArray – Input array.

  • resultArray – Output array.