Skip to content

Commit

Permalink
ch3: allow potential 64-bit matching optimization
Browse files Browse the repository at this point in the history
Optimize struct MPIDI_Message_match_parts to be 64-bit according to the
design goal noted in the comment.
  • Loading branch information
hzhou committed Dec 4, 2024
1 parent f4fe8d3 commit 0237c48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mpid/ch3/include/mpidpre.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ typedef unsigned long MPID_Seqnum_t;

#include "mpichconf.h"

#if CH3_RANK_BITS == 16
#if CH3_RANK_BITS == 16 && !defined(HAVE_EXTENDED_CONTEXT_BITS)
typedef int16_t MPIDI_Rank_t;
#elif CH3_RANK_BITS == 32
typedef int16_t MPIDI_Context_id_t;
#else
typedef int32_t MPIDI_Rank_t;
typedef int32_t MPIDI_Context_id_t;
#endif /* CH3_RANK_BITS */

/* For the typical communication system for which the ch3 channel is
Expand Down Expand Up @@ -106,7 +108,7 @@ typedef int32_t MPIDI_Rank_t;
typedef struct MPIDI_Message_match_parts {
int32_t tag;
MPIDI_Rank_t rank;
int context_id;
MPIDI_Context_id_t context_id;
} MPIDI_Message_match_parts_t;
typedef union {
MPIDI_Message_match_parts_t parts;
Expand Down

0 comments on commit 0237c48

Please sign in to comment.