0

Im having a hard time with this, I need to use a linked list with MPI to do some common operations over the list (sorting, deleting elements, etc). Anyway, most people I asked for this told me to use an array of struct instead of a linked list, so I did something like this.

struct{
    int proc; //process is in charge
    int info; //Information
};

struct list[100];

So, I want to send it to all process and work with it, anyway, im familiar with pthread but MPI is like another level to me, all I need basically is to share the whole list with all process and keep the changes in the list in all process, but Im not sure how to share the whole array with MPI_BCAST.

I already managed to create the list in the process MASTER, so all what I need to do now is share it with the rest of the process

Hristo Iliev
  • 72,659
  • 12
  • 135
  • 186
Sage Harpuia
  • 348
  • 2
  • 13

0 Answers0