Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Variable sized message in MPI

Is there a library call that would allow for sending/receiving of variable sized messages using MPI?

A work around would be to send the data size in the first message and follow it with the actual payload, but I was wondering if there was a convention for combining these two separate messages.

like image 268
Emma Avatar asked Aug 22 '26 12:08

Emma


1 Answers

The count provided to MPI_Recv is only an upper bound. MPI_Get_count can be used to find the exact number of items received.

Kind of like sockets I guess.

like image 112
Emma Avatar answered Aug 24 '26 11:08

Emma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!