<?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 I understand that it seems in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/How-vtune-compute-bandwith/m-p/1053488#M4958</link>
    <description>&lt;P&gt;I understand that it seems there are some problems. I think maybe the DATA_SIZE has been changed after adding prefetching. When adding prefetching, the cache may have more effective data, and the data locality is improved. So although no prefetch case need multiple loading from memory, the prefetch case can find some reusing data. So the improvement of data locality &amp;nbsp;leads to better performance, and at the same time the memory bandwidth is not increased significantly.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2015 20:06:42 GMT</pubDate>
    <dc:creator>HUIZHAN_Y_</dc:creator>
    <dc:date>2015-06-25T20:06:42Z</dc:date>
    <item>
      <title>How vtune compute bandwith?</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-vtune-compute-bandwith/m-p/1053487#M4957</link>
      <description>&lt;P&gt;Hi, I am analyzing a simulated cannealling program from parsec. The program often access elem data randomly, so it have poor performance. I add a prefetching instruction for elem, and I am glad to see the time of parallel region with multiple threads has been reduced from 31 second to 15 second. Indeed it is a good result. I just prefetch the data in advance one iteration, and I wish get more performance improvement. But after adjusting the prefetching parameter, I cannot get much better result. So I doubt the prefetching has used up all bandwidth when&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;prefetching the data in advance one iteration. So I check the bandwidth with vtune bandwidth analysis after the prefetching, and I found that the bandwidth only was increased a few from 3.004GB/s to 3.268 (for a single package). I feel the result is not right. Since adding prefetching do not add loaded data size, the time is reduced to a half from 31s to 15s, the bandwidth should be equal to &amp;nbsp;DATA_SIZE/TIME, so the bandwidth should be doubled. Anyone has some ideas about the result. Or know how to compute bandwidth by vtune?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;I do an experiment with the following program:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;
	#include &amp;lt;unistd.h&amp;gt;&lt;BR /&gt;
	#define SIZE 100*1024*1024&lt;BR /&gt;
	double a[SIZE];&lt;BR /&gt;
	double b[SIZE];&lt;BR /&gt;
	double c[SIZE];&lt;BR /&gt;
	int&lt;BR /&gt;
	main()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; int i;&lt;BR /&gt;
	&amp;nbsp; for (i=0; i&amp;lt; SIZE; i++) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;a&lt;I&gt; = 0.;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;I&gt; = 0.;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;c&lt;I&gt; = 0.;&lt;BR /&gt;
	&amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; sleep(2);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;// continuing access&lt;BR /&gt;
	&amp;nbsp; for (i=0; i&amp;lt; SIZE; i++) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; a&lt;I&gt; = b&lt;I&gt; + c&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; sleep(2);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;//stride access&lt;BR /&gt;
	&amp;nbsp; for (i=0; i&amp;lt; SIZE; i+=8) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; a&lt;I&gt; = b&lt;I&gt; + c&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; sleep(2);&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;Vtune shows that &lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;the bandwidth for&amp;nbsp;&lt;/SPAN&gt;the part with&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;continuing access is 4.16GB/s, and the running time is 0.7s, I compute the bandwidth is 4.46GB/s(100MB*4*8/0.7). The stride acces is 8.3GB/s, the running time is 0.4s, &amp;nbsp;I compute the bandwidth is 7.8GB/s(100MB*4*8/0.4). &amp;nbsp;It seems that my computation method is almost right.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:22:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-vtune-compute-bandwith/m-p/1053487#M4957</guid>
      <dc:creator>HUIZHAN_Y_</dc:creator>
      <dc:date>2015-06-25T13:22:47Z</dc:date>
    </item>
    <item>
      <title>I understand that it seems</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/How-vtune-compute-bandwith/m-p/1053488#M4958</link>
      <description>&lt;P&gt;I understand that it seems there are some problems. I think maybe the DATA_SIZE has been changed after adding prefetching. When adding prefetching, the cache may have more effective data, and the data locality is improved. So although no prefetch case need multiple loading from memory, the prefetch case can find some reusing data. So the improvement of data locality &amp;nbsp;leads to better performance, and at the same time the memory bandwidth is not increased significantly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 20:06:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/How-vtune-compute-bandwith/m-p/1053488#M4958</guid>
      <dc:creator>HUIZHAN_Y_</dc:creator>
      <dc:date>2015-06-25T20:06:42Z</dc:date>
    </item>
  </channel>
</rss>

