Skip to content

Commit

Permalink
fixes Huge overhead of IPM nerscadmin#29
Browse files Browse the repository at this point in the history
  • Loading branch information
Pak Lui committed Apr 8, 2022
1 parent 02f0cdc commit 68ada46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/mod_mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ extern MPI_Group ipm_world_group;

#define IPM_MPI_MAP_RANK(rank_out_, rank_in_, comm_) \
do { \
int comm_cmp_; \
PMPI_Comm_compare(MPI_COMM_WORLD, comm_, &comm_cmp_); \
if (comm_cmp_ == MPI_IDENT || rank_in_ == MPI_ANY_SOURCE) { \
if (comm_ == MPI_COMM_WORLD || rank_in_ == MPI_ANY_SOURCE) { \
rank_out_=rank_in_; \
} else { \
MPI_Group group_; \
Expand Down

0 comments on commit 68ada46

Please sign in to comment.