Converse: Add API to initialize converse message header fields 91/5091/2
authorNitin Bhat <nbhat4@illinois.edu>
Mon, 15 Apr 2019 19:49:29 +0000 (14:49 -0500)
committerNitin Bhat <nbhat4@illinois.edu>
Tue, 16 Apr 2019 14:01:15 +0000 (09:01 -0500)
commit85205161d7d0ec07d30fbe8676b9cfcf04593302
tree50de943c1b9fb9a23f401b5c499296c6ae1064cd
parent115dc1b0f8a63dbd6864bfcd0fc5277ab44882a7
Converse: Add API to initialize converse message header fields

void CmiInitMsgHeader(void *msg, int size) is the newly added method
that allows a user to set the converse message fields to desired
defaults. Currently, only zcMsgType is being set to CMK_REG_NO_ZC_MSG
inside CmiInitMsgHeader. This initialization is performed internally
for all allocations made using CmiAlloc and CmiRdmaAlloc. It needs
to be explicitly called for Charm++/Converse message allocations made
without these calls.

Change-Id: I843dbe5264cfbf6efc755ef781f36974ef533da0
src/conv-core/convcore.C
src/conv-core/converse.h