<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Zicao,<br>
    <br>
    that won't work any more the render Node is mandatory for correct
    ROCm operation by now.<br>
    <br>
    Regards,<br>
    Christian.<br>
    <br>
    <div class="moz-cite-prefix">Am 06.03.24 um 06:25 schrieb 曹子龙:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3fadf81a.7dac.18e123934a3.Coremail.gainerying@163.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div style="margin: 0;">Hi felix:</div>
        <div style="margin: 0;">   Thanks for your kindly help.</div>
        <div style="margin: 0;"><br>
        </div>
        <div style="margin: 0;">i still has a question, if on a
          pure-compute platform, which has no /dev/dri/render node, but
          only with a single /dev/kfd node, how the compue scenario
          works since that wei have no "render" fd exists?<br>
        </div>
        <div style="margin: 0;">is such platfom(without render node)
          exists? </div>
        <div style="margin: 0;"><br>
        </div>
        <div style="margin: 0;"> thanks for your kindly help.!</div>
        <div style="margin: 0;"><br>
        </div>
        <div style="margin: 0;">BRs</div>
        <div style="margin: 0;">zlcao.</div>
        <p style="margin: 0;"><br>
        </p>
        <p style="margin: 0;"><br>
        </p>
        <p style="margin: 0;"><br>
        </p>
        <p style="margin: 0;"><br>
        </p>
        <p>At 2024-03-06 04:43:30, "Kuehling, Felix"
          <a class="moz-txt-link-rfc2396E" href="mailto:Felix.Kuehling@amd.com"><Felix.Kuehling@amd.com></a> wrote:</p>
        <blockquote id="isReplyContent"
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
          <div xmlns:v="urn:schemas-microsoft-com:vml"
            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">
            <style></style>
            <div link="#0563C1" vlink="#954F72"
              style="word-wrap:break-word" lang="EN-US">
              <p
style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;"
                align="Left">
                [AMD Official Use Only - General]<br>
              </p>
              <br>
              <div>
                <div class="WordSection1">
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I
                      already answered this question in a reply to
                      another email that was addressed to me:<o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
                  <p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">The
                      render nodes are used for CPU mapping of VRAM with
                      mmap calls and an offset that identifies the BO.
                      The render node also creates the GPU virtual
                      address space that is used by KFD to create the
                      GPU memory mappings. Applications that use both
                      graphics and compute can share the same GPU
                      virtual address space in this way.<o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Zlcao,
                      in the future, this type of question may be better
                      addressed to a mailing list such as
                      <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>, instead of writing
                      separately to different maintainers.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Regards,<br>
                        Felix<o:p></o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
                  <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
                  <div>
                    <div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
                      <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                          Deucher, Alexander
                          <a class="moz-txt-link-rfc2396E" href="mailto:Alexander.Deucher@amd.com"><Alexander.Deucher@amd.com></a>
                          <br>
                          <b>Sent:</b> Tuesday, March 5, 2024 3:17 PM<br>
                          <b>To:</b> </span><span
                          style="font-size:11.0pt" lang="ZH-CN">曹子龙</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                          <a class="moz-txt-link-rfc2396E" href="mailto:gainerying@163.com"><gainerying@163.com></a>; Kuehling, Felix
                          <a class="moz-txt-link-rfc2396E" href="mailto:Felix.Kuehling@amd.com"><Felix.Kuehling@amd.com></a>; Yat Sin, David
                          <a class="moz-txt-link-rfc2396E" href="mailto:David.YatSin@amd.com"><David.YatSin@amd.com></a><br>
                          <b>Subject:</b> Re: Why has to offer
                          "/dev/drv/render128" fd when running ROCm
                          demo?<o:p></o:p></span></p>
                    </div>
                  </div>
                  <p class="MsoNormal"><o:p> </o:p></p>
                  <p style="margin:5.0pt"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">[AMD
                      Official Use Only - General]<o:p></o:p></span></p>
                  <p class="MsoNormal"><o:p> </o:p></p>
                  <div>
                    <div>
                      <p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif;color:black">+ Felix,
                          David to comment.<o:p></o:p></span></p>
                    </div>
                    <div class="MsoNormal" style="text-align:center"
                      align="center">
                      <hr width="98%" size="2" align="center">
                    </div>
                    <div id="divRplyFwdMsg">
                      <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
                        </span><span
                          style="font-size:11.0pt;color:black"
                          lang="ZH-CN">曹子龙</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
                          <</span><a href="mailto:gainerying@163.com"
                          moz-do-not-send="true"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">gainerying@163.com</span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">><br>
                          <b>Sent:</b> Tuesday, March 5, 2024 8:46 AM<br>
                          <b>To:</b> Deucher, Alexander <</span><a
                          href="mailto:Alexander.Deucher@amd.com"
                          moz-do-not-send="true"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Alexander.Deucher@amd.com</span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">><br>
                          <b>Subject:</b> Why has to offer
                          "/dev/drv/render128" fd when running ROCm
                          demo?</span>
                        <o:p></o:p></p>
                      <div>
                        <p class="MsoNormal"> <o:p></o:p></p>
                      </div>
                    </div>
                    <div>
                      <div>
                        <p><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Hi
                            alexander.:<o:p></o:p></span></p>
                        <div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> 
                                    sorry for bother. but i really need
                                some help to deal with my puzzle. <o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">i
                                am a freshman to AMD GPU Driver, NOW i
                                am trying to write a simple demo to use
                                "/dev/kfd" and do some  vram alloc/free
                                tests,  but i found you must do the
                                right "AMDKFD_IOC_ACQUIRE_VM" ioctl
                                comamnd before you try GPU to do vram
                                allocation and other things.  from the
                                kfd driver code,the pre-condition to do
                                the right "AMDKFD_IOC_ACQUIRE_VM" is to
                                offer a "/dev/drv/render128" fd  to the
                                parameters.<o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">so,
                                why need to do this? kfd is used for
                                compute, but "/dev/dri/render128" is
                                specify to gfx usaged, why must open the
                                "/dev/dri/render128" during the KFD
                                compute scenario?<o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">thanks
                                for your kindly help!<o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">BRs<o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">zlcao.<o:p></o:p></span></p>
                          </div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>