Thomas Haupt
|
Re: MPI and buffer limits
|
Thomas Haupt
04/20/2018 10:19 AM
post118781
|
Re: MPI and buffer limits
Your problem doesn't have anything to do with IPC -- you are just exceeding your maximum stack size (which has a default
of 512kB). In "main.c", lines 24 and 33, you declare local automatic send/receive buffers.
int send_buff[NumberOfWords];
...
int receive_buff[NumberOfWords];
The program will try to allocate these on the stack, which gives you a much stricter limit in size. Try allocating from
heap instead:
int *send_buff = malloc(NumberOfWords * sizeof(int));
...
int *receive_buff = malloc(NumberOfWords * sizeof(int));
With that change applied, things work nicely for me.
Best regards,
Thomas
|
|
|