[mpich-devel] [PATCH] ofi: need to specify ordering for FI_EP_RDM

Kenneth Raffenetti raffenet at mcs.anl.gov
Fri Sep 4 14:48:08 CDT 2015


No worries. I can take it from here. Thanks!

On 09/04/2015 02:37 PM, Jeff Squyres (jsquyres) wrote:
> Well, 1 out of 2 isn't bad... sorry; out of force of habit, I did "git format-patch -s ...".  :-)
>
>
>> On Sep 4, 2015, at 3:34 PM, Jeff Squyres (jsquyres) <jsquyres at cisco.com> wrote:
>>
>> Per https://github.com/ofiwg/libfabric/issues/1217#issuecomment-131264316,
>> you really need to specify FI_ORDER_SAS for both transmit and receive
>> if you want to guarantee ordering on FI_EP_RDM endpoints (and you do;
>> the MPI-style tagging interface doesn't make much sense unless the
>> underlying fabric provider guarnatees ordering).
>>
>> Signed-off-by: Jeff Squyres <jsquyres at cisco.com>
>> ---
>> src/mpid/ch3/channels/nemesis/netmod/ofi/ofi_init.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/src/mpid/ch3/channels/nemesis/netmod/ofi/ofi_init.c b/src/mpid/ch3/channels/nemesis/netmod/ofi/ofi_init.c
>> index 5de47b7..7c445ac 100644
>> --- a/src/mpid/ch3/channels/nemesis/netmod/ofi/ofi_init.c
>> +++ b/src/mpid/ch3/channels/nemesis/netmod/ofi/ofi_init.c
>> @@ -81,6 +81,8 @@ int MPID_nem_ofi_init(MPIDI_PG_t * pg_p, int pg_rank, char **bc_val_p, int *val_
>>      hints->mode             = FI_CONTEXT;
>>      hints->ep_attr->type    = FI_EP_RDM;      /* Reliable datagram         */
>>      hints->caps             = FI_TAGGED;      /* Tag matching interface    */
>> +    hints->tx_attr->msg_order = FI_ORDER_SAS;
>> +    hints->rx_attr->msg_order = FI_ORDER_SAS;
>>
>>      hints->ep_attr->mem_tag_format = MEM_TAG_FORMAT;
>>      MPIU_Assert(pg_p->size < ((1 << MPID_RANK_BITS) - 1));
>> --
>> 2.4.3
>>
>
>


More information about the devel mailing list