For Assignment 1, you may need to scatter data of different lengths into different processes. So you may need more flexible scatter and gather functions. You could refer to the two links below for the advanced usage of MPI_Scatter, MPI_Scatterv, MPI_Gather, and MPI_Gatherv.
https://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node72.html (Links to an external site.)
Copyright By PowCoder代写 加微信 powcoder
https://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node70.html
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com