We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0e740 commit 382a90fCopy full SHA for 382a90f
src/mpid/ch4/netmod/ofi/ofi_comm.c
@@ -191,10 +191,12 @@ int MPIDI_OFI_mpi_comm_free_hook(MPIR_Comm * comm)
191
MPIR_FUNC_ENTER;
192
193
/* If we enabled striping or hashing, decrement the counter. */
194
- MPIDI_OFI_global.num_comms_enabled_striping -=
195
- (MPIDI_OFI_COMM(comm).enable_striping != 0 ? 1 : 0);
196
- MPIDI_OFI_global.num_comms_enabled_hashing -=
197
- (MPIDI_OFI_COMM(comm).enable_hashing != 0 ? 1 : 0);
+ if (MPIDI_OFI_COMM(comm).enable_striping) {
+ MPIDI_OFI_global.num_comms_enabled_striping--;
+ }
+ if (MPIDI_OFI_COMM(comm).enable_hashing) {
198
+ MPIDI_OFI_global.num_comms_enabled_hashing--;
199
200
201
MPL_free(MPIDI_OFI_COMM(comm).pref_nic);
202
0 commit comments