mpi - Scattering an array of repeated numbers on different processors -
How can I disperse an array of numbers repeatedly on different processors in MPI, to ensure that It does happen that two repetitive numbers are not on the same processor.
For example if I have an array
a = [0, 1, 2, 2, 3, 4, 4, 5, 6, 8, 8 , 10, 10, 9, 2, 2] and I want to redefine it on any processor like the same processor on 4 processor
[0 1 2 4] at pd0, [2 3 4 5] at pd1, [2 6 8 10] at pd2, [10 9 8 8] <3><3 on pd 3>Any idea how this can be done? thank you in advanced.
You need to use It enables you to split a buffer (array) size of N size N * M , where N The number of MPI processes in your execution.
Comments
Post a Comment