use of MPI_Scatter if the set is not divisible among processes

前端 未结 1 1916
北恋
北恋 2021-02-20 10:27

I have a program which uses MPI_Scatter() and MPI_Gather(). The program take as input an integer N and return the prime number from 2 to N. I create an array with the number fro

相关标签:
1条回答
  • 2021-02-20 11:10

    If you have to distribute an array of numbers, that can not be equally distributed to all processes, use MPI_Scatterv instead.

    0 讨论(0)
提交回复
热议问题