<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
No such situation exists.  there is always a rendernode.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Alex</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ²Ü×ÓÁú <gainerying@163.com><br>
<b>Sent:</b> Wednesday, March 6, 2024 12:25 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Yat Sin, David <David.YatSin@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com><br>
<b>Subject:</b> Re:RE: Why has to offer "/dev/drv/render128" fd when running ROCm demo?</font>
<div> </div>
</div>
<div>
<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>
<div style="zoom:1"></div>
<div id="x_divNeteaseMailCard"></div>
<p style="margin:0"><br>
</p>
<p>At 2024-03-06 04:43:30, "Kuehling, Felix" <Felix.Kuehling@amd.com> wrote:</p>
<blockquote id="x_isReplyContent" style="padding-left:1ex; margin:0px 0px 0px 0.8ex; border-left:#ccc 1px solid">
<div><style>
<!--
-->
</style>
<div lang="EN-US" style="word-wrap:break-word">
<p align="Left" style="font-family:Arial; font-size:10pt; color:#0000FF; margin:5pt; font-style:normal; font-weight:normal; text-decoration:none">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">I already answered this question in a reply to another email that was addressed to me:</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p class="x_MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">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.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p class="x_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 amd-gfx@lists.freedesktop.org, instead of writing separately to
 different maintainers.</span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">Regards,<br>
  Felix</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_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 <Alexander.Deucher@amd.com>
<br>
<b>Sent:</b> Tuesday, March 5, 2024 3:17 PM<br>
<b>To:</b> </span><span lang="ZH-CN" style="font-size:11.0pt">²Ü×ÓÁú</span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> <gainerying@163.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; Yat Sin, David <David.YatSin@amd.com><br>
<b>Subject:</b> Re: Why has to offer "/dev/drv/render128" fd when running ROCm demo?</span></p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p style="margin:5.0pt"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:blue">[AMD Official Use Only - General]</span></p>
<p class="x_MsoNormal"> </p>
<div>
<div>
<p class="x_MsoNormal"><span style="font-family:"Aptos",sans-serif; color:black">+ Felix, David to comment.</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_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 lang="ZH-CN" style="font-size:11.0pt; color:black">²Ü×ÓÁú</span><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> <</span><a href="mailto:gainerying@163.com"><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"><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>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black">Hi alexander.:</span></p>
<div>
<div>
<p class="x_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. </span></p>
</div>
<div>
<p class="x_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.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_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?</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black">thanks for your kindly help!</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black">BRs</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black">zlcao.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; font-family:"Arial",sans-serif; color:black"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>