<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Jintack,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for pointing this out. The GASNet code was tested for libfabric 1.2, where the framework and providers weren’t doing some checks. It seems to me that there is a bug in that region of the code for GASNET_SEGMENT_FAST || GASNET_SEGMENT_LARGE.
 The newly attached memory does not specify the key – all segments get key 0!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I think we need to revisit that and fix the bug. In the meanwhile, ofi_ep_bind_valid() seems to be correct per the current definition of OFI … there shouldn’t be a need to bind a MR to an EP.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Sayantan.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Libfabric-users <libfabric-users-bounces@lists.openfabrics.org> on behalf of "Lim, Jintack" <jin-tack.lim@hpe.com><br>
<b>Date: </b>Wednesday, July 13, 2016 at 4:36 PM<br>
<b>To: </b>"libfabric-users@lists.openfabrics.org" <libfabric-users@lists.openfabrics.org><br>
<b>Subject: </b>[libfabric-users] Binding EP with memory region with flags?</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><o:p> </o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #B5C4DF 4.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-right:0in" id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE">
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I wonder how to bind EP with memory region with flags such as FI_REMOTE_READ or FI_REMOTE_WRITE?<o:p></o:p></p>
<p class="MsoNormal">I’m working on v1.3.0, and ofi_ep_bind_valid() in src/common.c returns error when binding MR with any flags.
<o:p></o:p></p>
<p class="MsoNormal">Should we check flags for FI_CLASS_MR specifically in ofi_ep_bind_valid()?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Here’s an example of binding EP with MR.<o:p></o:p></p>
<p class="MsoNormal"><a href="https://bitbucket.org/berkeleylab/gasnet/src/6f98691fef36d76fd4d42dc7a20e37a77869b84e/ofi-conduit/gasnet_ofi.c?at=master&fileviewer=file-view-default#gasnet_ofi.c-486">https://bitbucket.org/berkeleylab/gasnet/src/6f98691fef36d76fd4d42dc7a20e37a77869b84e/ofi-conduit/gasnet_ofi.c?at=master&fileviewer=file-view-default#gasnet_ofi.c-486</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Jintack<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
</body>
</html>