Commit 1a4265d0 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

portals4: large threshold comparison



If a message size is <= PTL_LARGE_THRESHOLD, use a single operation.
Previously, this would generate unnecessary 0-byte operations when
messages were exactly the size of the threshold.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 00748472
......@@ -399,7 +399,7 @@ int MPID_nem_ptl_recv_posted(MPIDI_VC_t *vc, MPID_Request *rreq)
MPIDI_Datatype_get_info(rreq->dev.user_count, rreq->dev.datatype, dt_contig, data_sz, dt_ptr, dt_true_lb);
MPIU_DBG_MSG_FMT(CH3_CHANNEL, VERBOSE, (MPIU_DBG_FDEST, "count=%d datatype=%#x contig=%d data_sz=%lu", rreq->dev.user_count, rreq->dev.datatype, dt_contig, data_sz));
if (data_sz < PTL_LARGE_THRESHOLD) {
if (data_sz <= PTL_LARGE_THRESHOLD) {
if (dt_contig) {
/* small contig message */
MPIU_DBG_MSG(CH3_CHANNEL, VERBOSE, "Small contig message");
......
......@@ -202,7 +202,7 @@ static int send_msg(ptl_hdr_data_t ssend_flag, struct MPIDI_VC *vc, const void *
MPIDI_Datatype_get_info(count, datatype, dt_contig, data_sz, dt_ptr, dt_true_lb);
MPIU_DBG_MSG_FMT(CH3_CHANNEL, VERBOSE, (MPIU_DBG_FDEST, "count=%d datatype=%#x contig=%d data_sz=%lu", count, datatype, dt_contig, data_sz));
if (data_sz < PTL_LARGE_THRESHOLD) {
if (data_sz <= PTL_LARGE_THRESHOLD) {
/* Small message. Send all data eagerly */
if (dt_contig) {
MPIU_DBG_MSG(CH3_CHANNEL, VERBOSE, "Small contig message");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment