<?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 Re: data placement  in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899226#M4135</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331311"&gt;karimfath&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;can i mesure the cost when a thread access data in l2 or ram to a do write or read operation.to evaluate difference between the two operation when data is in l2 and data is in ram in centrino duo system&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;You must make something like this:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; - start 2 threads, bind them to different cores&lt;/P&gt;
&lt;P&gt;- create following object:&lt;/P&gt;
&lt;P&gt;struct X&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;char pad1 [128];&lt;/P&gt;
&lt;P&gt;int data;&lt;/P&gt;
&lt;P&gt;char pad2 [128];&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;X* g_x = new X;&lt;/P&gt;
&lt;P&gt;- create semaphore for communication between threads&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in L2$ and in foreign L1$:&lt;/P&gt;
&lt;P&gt;1. First thread writes to g_x-&amp;gt;data, and signals semaphore&lt;/P&gt;
&lt;P&gt;2. Second thread wakes up and loads g_x-&amp;gt;data&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in RAM, you must flush data from cache with clflush instruction.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2008 09:56:58 GMT</pubDate>
    <dc:creator>Dmitry_Vyukov</dc:creator>
    <dc:date>2008-11-25T09:56:58Z</dc:date>
    <item>
      <title>data placement</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899224#M4133</link>
      <description>&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;can i mesure the cost when a thread access data in l2 or ram to a do write or read operation.to evaluate difference between the two operation when data is in l2 and data is in ram in centrino duo system&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2008 22:15:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899224#M4133</guid>
      <dc:creator>karimfath</dc:creator>
      <dc:date>2008-11-20T22:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: data placement</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899225#M4134</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331311"&gt;karimfath&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;can i mesure the cost when a thread access data in l2 or ram to a do write or read operation.to evaluate difference between the two operation when data is in l2 and data is in ram in centrino duo system&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Have you considered to what extent PTU will help with your investigation?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-performance-tuning-utility-31-update-3" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-performance-tuning-utility-31-update-3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2008 14:46:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899225#M4134</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-11-21T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: data placement</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899226#M4135</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/331311"&gt;karimfath&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;can i mesure the cost when a thread access data in l2 or ram to a do write or read operation.to evaluate difference between the two operation when data is in l2 and data is in ram in centrino duo system&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;You must make something like this:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; - start 2 threads, bind them to different cores&lt;/P&gt;
&lt;P&gt;- create following object:&lt;/P&gt;
&lt;P&gt;struct X&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;char pad1 [128];&lt;/P&gt;
&lt;P&gt;int data;&lt;/P&gt;
&lt;P&gt;char pad2 [128];&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;X* g_x = new X;&lt;/P&gt;
&lt;P&gt;- create semaphore for communication between threads&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in L2$ and in foreign L1$:&lt;/P&gt;
&lt;P&gt;1. First thread writes to g_x-&amp;gt;data, and signals semaphore&lt;/P&gt;
&lt;P&gt;2. Second thread wakes up and loads g_x-&amp;gt;data&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in RAM, you must flush data from cache with clflush instruction.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2008 09:56:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899226#M4135</guid>
      <dc:creator>Dmitry_Vyukov</dc:creator>
      <dc:date>2008-11-25T09:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: data placement</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899227#M4136</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/347331"&gt;Dmitriy V'jukov&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;You must make something like this:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; - start 2 threads, bind them to different cores&lt;/P&gt;
&lt;P&gt;- create following object:&lt;/P&gt;
&lt;P&gt;struct X&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;char pad1 [128];&lt;/P&gt;
&lt;P&gt;int data;&lt;/P&gt;
&lt;P&gt;char pad2 [128];&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;X* g_x = new X;&lt;/P&gt;
&lt;P&gt;- create semaphore for communication between threads&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in L2$ and in foreign L1$:&lt;/P&gt;
&lt;P&gt;1. First thread writes to g_x-&amp;gt;data, and signals semaphore&lt;/P&gt;
&lt;P&gt;2. Second thread wakes up and loads g_x-&amp;gt;data&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In order to measure cost when data is in RAM, you must flush data from cache with clflush instruction.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Nice tip. Does anyone know of a small utility library that packs together small tips like this to do parallel performance measurements, and instrumentation in our own applications? Probably something they have laying around and can be of use to others ;)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2008 23:52:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/data-placement/m-p/899227#M4136</guid>
      <dc:creator>DDd1</dc:creator>
      <dc:date>2008-11-26T23:52:53Z</dc:date>
    </item>
  </channel>
</rss>

