What I'm asking is if I have something like this:
int main(int argc, char *argv[]) //<---input from command line
{
Do I need to use MPI_Bcast in order to send that data to all of the processes, or do all of the processes get the command line input data anyway?
If you use MPI_Init(&argc,&argv) this solves you problem :)
No need to BCast anything ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With