Skip to content

Commit

Permalink
Fix SMSG_TRY_SEND macro definition to avoid compilation errors
Browse files Browse the repository at this point in the history
The compilation errors are seen for builds where CMK_WITH_STATS
is true (as in non-production debug builds). The errors seen were:

machine.C(1533): error: unrecognized token
              SMSG_SENT_DONE(creation_time,tag)
              ^

machine.C(1533): error: expected an expression
              SMSG_SENT_DONE(creation_time,tag)
              ^

machine.C(1533): error: expected a ";"
              SMSG_SENT_DONE(creation_time,tag)
              ^

Change-Id: If66314c753d3aae3ba384442e71c020a1521781b
  • Loading branch information
Nitin Bhat committed Feb 19, 2019
1 parent afe5c8a commit b23a0d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/arch/gni/machine.C
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,8 @@ static void init_comm_stats(void)
else if( tag == ACK_TAG) comm_stats.try_ack_count++; \
else if( tag == BIG_MSG_TAG) comm_stats.try_big_msg_ack_count++; \
else if( tag == PUT_DONE_TAG ) comm_stats.try_put_done_count++; \
comm_stats.try_smsg_count++; \ }
comm_stats.try_smsg_count++; \
}

#define RDMA_TRY_SEND(type) if (print_stats && !stats_off) {IS_PUT(type)?comm_stats.try_rdma_put_count++:comm_stats.try_rdma_get_count++;}

Expand Down

0 comments on commit b23a0d2

Please sign in to comment.