<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NUMA effects with OpenCL in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940682#M1763</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;Recently I am working on the OpenCL and using a dual sockets machine from Intel (X5650). I wonder how I can control the NUMA effects with OpenCL? Do I have any API for it? or it can be handled by the run-time and this factor is hidden by the run-time?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jianbin&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2013 23:06:59 GMT</pubDate>
    <dc:creator>Jianbin_F_</dc:creator>
    <dc:date>2013-12-17T23:06:59Z</dc:date>
    <item>
      <title>NUMA effects with OpenCL</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940682#M1763</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;Recently I am working on the OpenCL and using a dual sockets machine from Intel (X5650). I wonder how I can control the NUMA effects with OpenCL? Do I have any API for it? or it can be handled by the run-time and this factor is hidden by the run-time?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jianbin&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 23:06:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940682#M1763</guid>
      <dc:creator>Jianbin_F_</dc:creator>
      <dc:date>2013-12-17T23:06:59Z</dc:date>
    </item>
    <item>
      <title>Hello Jianbin,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940683#M1764</link>
      <description>&lt;P&gt;Hello Jianbin,&lt;/P&gt;

&lt;P&gt;You can try the following:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Allocate memory yourself, using something like libnuma to ensure it's all allocated on a single socket.&lt;BR /&gt;
		Make sure to align the memory to the size of the OpenCL data type you intend to use.&lt;/LI&gt;
	&lt;LI&gt;Create memory objects using CL_MEM_USE_HOST_PTR to wrap these allocations.&lt;/LI&gt;
	&lt;LI&gt;Use clCreateSubdevices to create sub-devices representing the different NUMA nodes. The current version of the SDK doesn't support partitioning by CL_DEVICE_AFFINITY_DOMAIN_NUMA, but you can use the Intel extension CL_DEVICE_PARTITION_BY_NAMES_INTEL to define which cores to assign to which sub-devices, yourself. Read more about it here: &lt;A href="http://www.khronos.org/registry/cl/extensions/intel/cl_intel_device_partition_by_names.txt" target="_blank"&gt;http://www.khronos.org/registry/cl/extensions/intel/cl_intel_device_partition_by_names.txt&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;That should allow you to enqueue kernels on a single socket using the appropriate sub-device ID, and you can ensure each kernel operates on memory objects allocated on physical pages from that node.&lt;/P&gt;

&lt;P&gt;As an aside, the reason there isn't a more straightforward way to go about things is that our testing showing a relatively low return on investment - the performance impact was negligible thanks to the Intel Quick Path Interconnect technology.&lt;/P&gt;

&lt;P&gt;If you try this and find a case where this has a significant impact, please let us know.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Doron&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2013 08:28:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940683#M1764</guid>
      <dc:creator>Doron_S_Intel</dc:creator>
      <dc:date>2013-12-24T08:28:40Z</dc:date>
    </item>
    <item>
      <title>Quote:Doron Singer (Intel)</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940684#M1765</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Doron Singer (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If you try this and find a case where this has a significant impact, please let us know.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Reductions!&amp;nbsp; As I reported here: &lt;A href="http://software.intel.com/en-us/forums/topic/508377" target="_blank"&gt;http://software.intel.com/en-us/forums/topic/508377&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I haven't tested it on other bandwidth bound applications, but I think it's generally applicable.&amp;nbsp; Thank you, Doron.&lt;/P&gt;

&lt;P&gt;-James&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2014 03:36:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/NUMA-effects-with-OpenCL/m-p/940684#M1765</guid>
      <dc:creator>James_R_</dc:creator>
      <dc:date>2014-03-29T03:36:57Z</dc:date>
    </item>
  </channel>
</rss>

