<div dir="ltr">Hi,<div><br></div><div>Why only CL_DEVICE_SVM_COARSE_GRAIN_BUFFER is supported? Capabilities flag seem to indicate that the Intel device is capable for fine grain memory.</div><div><br></div><div>At the moment, Is it possible to get support for fine grain memory features on Intel platform, perhaps by switching to different OpenCL SDK? I am running Ubuntu 17.10 and soon going to upgrade to 18.04 LTS.</div><div><br></div><div>Thanks</div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-24 3:23 GMT+02:00 Yang, Rong R <span dir="ltr"><<a href="mailto:rong.r.yang@intel.com" target="_blank">rong.r.yang@intel.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_5390863229424318646WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Beignet only support CL_DEVICE_SVM_COARSE_GRAIN_<wbr>BUFFER svm.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Yang Rong<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_5390863229424318646__MailEndCompose"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></a></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><a name="m_5390863229424318646______replyseparator"></a><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Beignet [mailto:<a href="mailto:beignet-bounces@lists.freedesktop.org" target="_blank">beignet-bounces@lists.<wbr>freedesktop.org</a>]
<b>On Behalf Of </b>Sami Pietilä<br>
<b>Sent:</b> Thursday, February 22, 2018 4:47 PM<br>
<b>To:</b> <a href="mailto:beignet@lists.freedesktop.org" target="_blank">beignet@lists.freedesktop.org</a><br>
<b>Subject:</b> [Beignet] How to allocate SVM<u></u><u></u></span></p>
</div>
</div><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have Skylake (and Broadwell) <span style="font-family:Arial,sans-serif;color:rgb(34,34,34);background:white">CPU</span> and I am running <span style="font-family:Arial,sans-serif;color:rgb(34,34,34);background:white">beignet 1.3 platform.</span> I
have checked that device capabilities has CL_DEVICE_SVM_FINE_GRAIN_<wbr>BUFFER flag.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Following code gives CL_INVALID_VALUE. Even removing <span style="font-family:Arial,sans-serif;color:rgb(34,34,34);background:white">CL_MEM_SVM_ATOMICS does not help. What could be wrong with the code? Additionally, how to the same SVM reservation
by OpenCL C++ bindings (cl2.hpp)?</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">size_t SVM_size = 42; <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">void* p = clSVMAlloc (<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">context(), <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">CL_MEM_READ_WRITE | CL_MEM_SVM_FINE_GRAIN_BUFFER | CL_MEM_SVM_ATOMICS,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">SVM_size,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">0);<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">cl_int err = clEnqueueSVMMap(queue(), CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, p, SVM_size, 0, NULL, NULL);<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br></div></div>