cb-geo / mpm

CB-Geo High-Performance Material Point Method
https://www.cb-geo.com/research/mpm
Other
245 stars 82 forks source link

When statuses are not needed, use MPI_STATUS_IGNORE. #644

Closed capellil closed 4 years ago

capellil commented 4 years ago

Certain file such as https://github.com/cb-geo/mpm/blob/develop/include/graph.tcc use MPI_Recv (line 160) with a status that is never checked. To that end, MPI operations that require a status (such as receptions or non-blocking waits / tests) can be passed MPI_STATUS_IGNORE when the user does not have a use for the MPI_Status obtained. Using the MPI_STATUS_IGNORE allows MPI to not fill an MPI_Status and therefore saves MPI some time. (See https://rookiehpc.com/mpi/docs/mpi_status_ignore.php)