<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanneroujra4b { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #CFD3D7 !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButtonoujra4b:hover, .pfptPrimaryButtonoujra4b:focus {
    background-color: #adb0b4 !important; }
  .pfptPrimaryButtonoujra4b:active {
    background-color: #8c8e91 !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
I think the question on the libfabric list was interpreted as asking if you can use an ibv_mr returned by ibv_reg_mr with multiple NICs rather than I think what you're asking which is "can I register this memory buffer to multiple RDMA</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" lang="en"><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #8c8e91;background-color:#CFD3D7;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>
      <![if ie]><br clear="all"><![endif]>
      <table align="right" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 0px 4px 0px"><tr>
        <td style="direction: ltr">  <a target="_blank" href="https://us-phishalarm-ewt.proofpoint.com/EWT/v1/KGKeukY!vYQd06jpqS2ghfa_cSXkWDM8szHt1cEKGmIE2N6YPgErTbYlS-pCqxCAVVCTlmGtFsjhFtRFiQPjiswAAyYLbIFM-vCTfa2q3AUJNiUO5EJsH0m89JoWYmSOGGK_u841fu5BUg$" style="mso-padding-alt: 7.5px; padding: 7.5px; border-radius: 2px; border: 1.5px solid #666666; "><strong style="font-weight: normal; color: #000000; text-decoration: none; font-family: 'Arial', sans-serif; font-size:14px; line-height: 40px; ">  Report Suspicious  </strong></a>  ‌ </td>
      </tr></table>
    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr" lang="en" id="pfptBanneroujra4b" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #CFD3D7 !important; background-color: #CFD3D7; border-top: 4px solid #8c8e91 !important; border-top: 4px solid #8c8e91;">
    <div id="pfptBanneroujra4b" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBanneroujra4b" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #CFD3D7 !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBanneroujra4b" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #CFD3D7 !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>
    <div id="pfptBanneroujra4b" style="all: unset !important; float: right !important; display: block !important; display: block; margin: 0px 0px 0px 16px !important; text-align: right !important; width: fit-content !important;">
<a id="pfptBanneroujra4b" href="https://us-phishalarm-ewt.proofpoint.com/EWT/v1/KGKeukY!vYQd06jpqS2ghfa_cSXkWDM8szHt1cEKGmIE2N6YPgErTbYlS-pCqxCAVVCTlmGtFsjhFtRFiQPjiswAAyYLbIFM-vCTfa2q3AUJNiUO5EJsH0m89JoWYmSOGGK_u841fu5BUg$"
    style="all: unset !important; display: inline-block !important; text-decoration: none">
    <div class="pfptPrimaryButtonoujra4b" style="display: inline-block !important; display: inline-block; visibility: visible !important; opacity: 1 !important; color: #000000 !important; color: #000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size: 14px !important; font-weight: normal !important; text-decoration: none !important; border-radius: 2px !important; padding: 7.5px 16px !important; margin: 3px 0 3px 16px !important; white-space: nowrap !important; width: fit-content !important;
        border: 1px solid #666666">
        Report Suspicious
    </div>
</a>
    </div>
    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr">I think the question on the libfabric list was interpreted as asking if you can use an ibv_mr returned by ibv_reg_mr with multiple NICs rather than I think what you're asking which is "can I register this memory buffer to multiple RDMA NICs". If I understand this correctly, in the latter case you would have multiple ibv_mr's (one per RDMA NIC) that all point to the same memory address and in the former case you would be attempting to use a single ibv_mr on multiple NICs.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2024 at 12:21 PM Niyaz Murshed via Mvapich-discuss <<a href="mailto:mvapich-discuss@lists.osu.edu">mvapich-discuss@lists.osu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg6259728952793989199">

<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">
ibv_reg_mr takes in PD and buffer. Each PD is associated with a HCA. If we register the buffer with multiple PDs, it can be access by all HCAs? My understanding from another source is that “ibverbs” do not support this. ‘Some providers (e. g. </div>



<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none"></div>













<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_6259728952793989199WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">ibv_reg_mr  takes in PD and buffer. Each PD is associated with a HCA.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">If we register the buffer with multiple PDs, it can be access by all  HCAs?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">My understanding from another source is that “ibverbs” do not support this.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">‘Some providers (e.g. verbs) map domain to a specific nic and thus can't share MR among nics.’<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><a href="https://urldefense.com/v3/__https://lists.openfabrics.org/pipermail/libfabric-users/2024-August/001072.html__;!!KGKeukY!zUrZMd5JRh1pubI8Fuu1XwdWwMy2uLWiA-K4phQvn8l2tX9sKky66SvWrNI6KNax2SuTyiVci0mUwI9et7neP0SHWlrREto$" target="_blank">https://lists.openfabrics.org/pipermail/libfabric-users/2024-August/001072.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_6259728952793989199mail-editor-reference-message-container">
<div>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Subramoni, Hari <<a href="mailto:subramoni.1@osu.edu" target="_blank">subramoni.1@osu.edu</a>><br>
<b>Date: </b>Wednesday, August 21, 2024 at 11:15</span><span style="font-size:12pt;font-family:Arial,sans-serif;color:black"> </span><span style="font-size:12pt;color:black">AM<br>
<b>To: </b>Niyaz Murshed <<a href="mailto:Niyaz.Murshed@arm.com" target="_blank">Niyaz.Murshed@arm.com</a>>, Announcement about MVAPICH (MPI over InfiniBand, RoCE, Omni-Path, Slingshot, iWARP and EFA) Libraries developed at NBCL/OSU <<a href="mailto:mvapich-discuss@lists.osu.edu" target="_blank">mvapich-discuss@lists.osu.edu</a>><br>
<b>Cc: </b>nd <<a href="mailto:nd@arm.com" target="_blank">nd@arm.com</a>>, Subramoni, Hari <<a href="mailto:subramoni.1@osu.edu" target="_blank">subramoni.1@osu.edu</a>><br>
<b>Subject: </b>RE: RDMA memory registration for AllGather<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Hi, Niyaz.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">One buffer can be registered with multiple HCAs. There is no problem with this. You just to call ibv_reg_mr multiple times.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Thx,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Hari.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><u></u><u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Mvapich-discuss <<a href="mailto:mvapich-discuss-bounces@lists.osu.edu" target="_blank">mvapich-discuss-bounces@lists.osu.edu</a>>
<b>On Behalf Of </b>Niyaz Murshed via Mvapich-discuss<br>
<b>Sent:</b> Tuesday, August 20, 2024 3:18 PM<br>
<b>To:</b> Niyaz Murshed via Mvapich-discuss <<a href="mailto:mvapich-discuss@lists.osu.edu" target="_blank">mvapich-discuss@lists.osu.edu</a>><br>
<b>Cc:</b> nd <<a href="mailto:nd@arm.com" target="_blank">nd@arm.com</a>><br>
<b>Subject:</b> [Mvapich-discuss] RDMA memory registration for AllGather</span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:1pt;color:white">Hello all , I am trying to understand how a single memory buffer is registered to multiple rdma verbvs context in case there are data coming in from different interfaces. As I understand, we can
 only register RDMA memory to a single protection</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-size:11pt">Hello all , </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">I am trying to understand how a single memory buffer is registered to multiple rdma verbvs context in case there are data coming in from different interfaces.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">As I understand, we can only register RDMA memory to a single protection domain which is linked to one interface.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Assuming we receive data from 3 ranks on interface1 and 2 ranks from interface 2, how do these interfaces write to same common buffer ?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">How is the same buffer registered to 2 interfaces?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Niyaz</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
Mvapich-discuss mailing list<br>
<a href="mailto:Mvapich-discuss@lists.osu.edu" target="_blank">Mvapich-discuss@lists.osu.edu</a><br>
<a href="https://lists.osu.edu/mailman/listinfo/mvapich-discuss" rel="noreferrer" target="_blank">https://lists.osu.edu/mailman/listinfo/mvapich-discuss</a><br>
</div></blockquote></div>