Thanks for the info. It works now with dynamic allocation.
Just a question out of interest: Isnt it more than 2MB?
Type: Posts; User: mpi_beginner
Thanks for the info. It works now with dynamic allocation.
Just a question out of interest: Isnt it more than 2MB?
Hi,
I was trying to execute the following code which was given in an instruction.
However, the program crashes every time I try to execute it.
#include <stdio.h>
#include <stdlib.h>
Sorry about that.
Those are the error message that I get when I try to run the code:
*** An error occurred in MPI_Recv
*** on communicator MPI_COMM_WORLD
*** MPI_ERR_TRUNCATE: message...
when i run the code i get errors with the recv functions. I am not sure if i am using them in the correct way.
the function header for the methods are:
int MPI Send(void *buf, int count,...
Basically, let's say if I have 5 "slaves" and numbers from 1-20.
The master will send 5 chunks to each slave.
E.g. the first slave will get the numbers 1,2,3,4, the second slave the numbers 5,6,7,8...
Hi,
i am trying to implement a program using (open) mpi that sends groups of numbers to each process which calculate the sum and return it to the master which in turn calculates to the total sum....