<?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 Anikaushik, in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802217#M723</link>
    <description>&lt;P&gt;&lt;A href="http://software.intel.com/en-us/user/912407"&gt;Anikaushik&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;the memory controller counters are shared by many cores in the system. These cores are issuing memory operations while your thread is not doing anything. Also PCM API calls (like&amp;nbsp;getSystemCounterState) are performing some small number of memory operations themselves (a measurement overhead).&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Roman&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2013 08:21:21 GMT</pubDate>
    <dc:creator>Roman_D_Intel</dc:creator>
    <dc:date>2013-09-30T08:21:21Z</dc:date>
    <item>
      <title>Can't use PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802189#M695</link>
      <description>Hello,&lt;DIV&gt;I'm trying to use Intel Performance Counter Monitor to measure L2 and L3 cache hit ratio in a custom code. I'm trying to follow the example snippet in website, but I obtain the following error when I try to initialize processor counters:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;[bash]Probando Intel PCM

Num (logical) cores: 4
Num sockets: 1
Threads per core: 1
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 4
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2799999993 Hz
LLEGA a crear instancia
WARNING: Core 1 IA32_PERFEVTSEL0_ADDR are not zeroed 1114660
mpedrero@huracan:~/Dropbox/uma/padding/IPC$ 
[/bash] &lt;/DIV&gt;&lt;DIV&gt;And my code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;[bash]#include "cpucounters.h"
#include &lt;STDIO.H&gt;

#define F 10000
#define C 10000

using namespace std;

int
main(){
	cout&amp;lt;&amp;lt;"Probando Intel PCM\n"&amp;lt;&lt;ENDL&gt;program() != PCM::Success) return -1;  
	cout&amp;lt;&amp;lt;"Llega a programar contadores"&amp;lt;&lt;ENDL&gt;&lt;C&gt;;
	
	for(int i=0;i&lt;F&gt;&lt;C&gt; = 1.0;
		}
	}
	
	// End of custom code
	SystemCounterState after_sstate = getSystemCounterState();  
  
	cout &amp;lt;&amp;lt; "RESULTADOS:"&amp;lt;&lt;ENDL&gt;&lt;DIV&gt;The problematic line is:&lt;/DIV&gt;&lt;DIV&gt;[bash]if (m-&amp;gt;program() != PCM::Success) return -1;  [/bash]&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The rest of executables provided in PCM download (like pcm.x, pcm-sensor.x work seamlessy)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Any advice? It's almost copied to this page code:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-performance-counter-monitor/"&gt;http://software.intel.com/en-us/articles/intel-performance-counter-monitor/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;PD: I can't find any documentation for PCM. It's available anywhere?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;PD2: My system is a i7 860 with Ubuntu 10.04 x86_64&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/ENDL&gt;&lt;/C&gt;&lt;/F&gt;&lt;/C&gt;&lt;/ENDL&gt;&lt;/ENDL&gt;&lt;/STDIO.H&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802189#M695</guid>
      <dc:creator>korso</dc:creator>
      <dc:date>2012-06-14T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Can't use PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802190#M696</link>
      <description>Hi Korso,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;what is the value returned bym-&amp;gt;program() ? It contains error code, one of the&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;[cpp]    enum ErrorCode {
        Success = 0,
        MSRAccessDenied = 1,
        PMUBusy = 2,
        UnknownError
    };[/cpp] &lt;DIV&gt;&lt;/DIV&gt;Best regards,&lt;/DIV&gt;&lt;DIV&gt;Roman&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jun 2012 15:34:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802190#M696</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-06-14T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Can't use PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802191#M697</link>
      <description>Hi Roman,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;You had given me the key. I'd obtained a 2 error code, so I rebooted the computer (It's a WS so normally it's on 24/7) and now same code works. Thank you.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Nevertheless, when I executed the program, I obtain "Number of PCM instances" which increases every time I execute the code. I suposse it should be a method or something to destoy the instance. In fact, I'm guessing that probably this problem could be the cause for my former issues. Can you help me with this?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you again.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;PD: There's no documentation available about Intel PCM? Seems a pretty useful library, but with the lack of README of docs is difficult to use it properly.&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2012 10:15:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802191#M697</guid>
      <dc:creator>korso</dc:creator>
      <dc:date>2012-06-15T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Can't use PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802192#M698</link>
      <description>Hi korso,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;good point. We did not have the clean up call in the article example. Call&lt;DIV id="_mcePaste"&gt;m-&amp;gt;cleanup(); on your program exit to destroy the PCM instance properly.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;We are trying to put more of our time to document PCM better. You feedback is very helpful on what we need to improve.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;We have programmer documentation for PCM in doxygen HTML browsable format (the doxygen project file is included into the package) that documents PCM methods including program(...) , cleanup() and others.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Thanks,&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Roman&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2012 11:48:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802192#M698</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-06-15T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Can't use PCM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802193#M699</link>
      <description>Works perfectly, thank you Roman. I've generated doc files, so I'll study them next week.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:11:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802193#M699</guid>
      <dc:creator>korso</dc:creator>
      <dc:date>2012-06-15T12:11:33Z</dc:date>
    </item>
    <item>
      <title>Hi Roman,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802194#M700</link>
      <description>Hi Roman,
Can you please share the link to programmer doxygen documentation?
Subrata</description>
      <pubDate>Tue, 02 Oct 2012 21:34:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802194#M700</guid>
      <dc:creator>Subrata_M_</dc:creator>
      <dc:date>2012-10-02T21:34:21Z</dc:date>
    </item>
    <item>
      <title>Subrata,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802195#M701</link>
      <description>Subrata,

we do not host doxygen documentation on a web site. You can easily generate it locally if you just install &lt;A href="http://www.stack.nl/~dimitri/doxygen/index.html"&gt;the doxygen tool&lt;/A&gt;. After you installed it just execute "doxygen" without parameters in the main PCM directory (it contains "Doxyfile" project file). It will generate the html documentation which you can open with your browser.

Best regards,
Roman</description>
      <pubDate>Thu, 04 Oct 2012 12:40:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802195#M701</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2012-10-04T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Hey Korso and Roman, I am new</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802196#M702</link>
      <description>&lt;P&gt;Hey Korso and Roman, I am new to PCM, I also try to use&amp;nbsp;Intel Performance Counter Monitor to measure L2 and L3 cache hit ratio in my custom code. I use exactly the same code and I try to use the command as following to compile the code:&lt;/P&gt;
&lt;P&gt;g++ -O mycode.cpp -o mycode -I ./PCM/ -L ./PCM/cpucounters.o ./PCM/msr.o -lpthread&lt;/P&gt;
&lt;P&gt;However, it still keeps on showing that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;undefined reference to `PCM::getInstance()'&lt;BR /&gt;undefined reference to `PCM::program(PCM::ProgramMode, void*)'&lt;BR /&gt;undefined reference to `getSystemCounterState()'&lt;/P&gt;
&lt;P&gt;I try to -L the other o files. It still doesn't work. Could you guys give me some hints regards how to link the PCM library to my custome code? I didn't find any detail user manual regards how to use PCM in the custom code except &lt;A href="http://software.intel.com/en-us/articles/intel-performance-counter-monitor-a-better-way-to-measure-cpu-utilization" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-performance-counter-monitor-a-better-way-to-measure-cpu-utilization&lt;/A&gt; this page.&amp;nbsp;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 02:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802196#M702</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-05T02:07:00Z</dc:date>
    </item>
    <item>
      <title>Hello Bingyi,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802197#M703</link>
      <description>&lt;P&gt;Hello Bingyi,&lt;/P&gt;
&lt;P&gt;I'm guessing that you are calling the undefined reference functions with arguments that don't agree with declaration.&lt;/P&gt;
&lt;P&gt;The declaration for getinstance() is:&lt;/P&gt;
&lt;P&gt;static PCM * getInstance();&lt;/P&gt;
&lt;P&gt;Is that how you are calling it?&lt;/P&gt;
&lt;P&gt;What happens when you compile it like:&lt;/P&gt;
&lt;P&gt;g++ -O mycode.cpp ./PCM/cpucounters.cpp ./PCM/msr.cpp -o mycode -I ./PCM/ -lpthread&lt;/P&gt;
&lt;P&gt;The problem might also be the ordering of the object files... if g++ uses a single pass linker... you might need to repeat cpucounters.o like:&lt;/P&gt;
&lt;P&gt;g++ -O mycode.cpp -o mycode -I ./PCM/ -L ./PCM/cpucounters.o ./PCM/msr.o ./PCM/cpucounters.o -lpthread&lt;/P&gt;
&lt;P&gt;but I doubt this is the issue (since msr.cpp doesn't use getInstance()).&lt;/P&gt;
&lt;P&gt;There is also the possibility that c++ name mangling is the issue... perhaps you are enabling mangling in some cases and not in others...&lt;/P&gt;
&lt;P&gt;But to me, this error is almost always a c++ compiling/linking issue, not a problem with PCM.&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 02:36:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802197#M703</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2013-08-05T02:36:25Z</dc:date>
    </item>
    <item>
      <title>Hey Pat,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802198#M704</link>
      <description>&lt;P&gt;Hey Pat,&lt;/P&gt;
&lt;P&gt;Thanks for the fast reply.&amp;nbsp;It works!!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the first solution you mentioned, the command line is as following&lt;/P&gt;
&lt;P&gt;g++ -O mycode.cpp ./PCM/cpucounters.cpp ./PCM/msr.cpp ./PCM/pci.cpp ./PCM/client_bw.cpp -o 8-4 -I ./PCM -lpthread&lt;/P&gt;
&lt;P&gt;It can compile, the warning is as following:&lt;/P&gt;
&lt;P&gt;./IntelPerformanceCounterMonitorV2.5.1/cpucounters.cpp: In function ‘void print_mcfg(const char*)’:&lt;BR /&gt;./IntelPerformanceCounterMonitorV2.5.1/cpucounters.cpp:2606:61: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]&lt;BR /&gt;./IntelPerformanceCounterMonitorV2.5.1/cpucounters.cpp:2615:65: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]&lt;BR /&gt;./IntelPerformanceCounterMonitorV2.5.1/pci.cpp: In constructor ‘PciHandleMM::PciHandleMM(uint32, uint32, uint32, uint32)’:&lt;BR /&gt;./IntelPerformanceCounterMonitorV2.5.1/pci.cpp:610:65: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]&lt;BR /&gt;./IntelPerformanceCounterMonitorV2.5.1/pci.cpp:615:69: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]&lt;/P&gt;
&lt;P&gt;Afterward, I run the code, the results is as belowing:&lt;/P&gt;
&lt;P&gt;Instructions per clock:-1L3 cache hit ratio:0.479371Bytes read:461888&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802198#M704</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-05T03:05:00Z</dc:date>
    </item>
    <item>
      <title>I wonder if you can find</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802199#M705</link>
      <description>&lt;P&gt;I wonder if you can find where PciHandleMM() is defined....&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:24:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802199#M705</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2013-08-05T03:24:06Z</dc:date>
    </item>
    <item>
      <title>The output doesn't seem very</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802200#M706</link>
      <description>&lt;P&gt;The output doesn't seem very reasonable:&lt;/P&gt;
&lt;P&gt;Instructions per clock:-1&lt;BR /&gt;L3 Cache Misses2049425&lt;BR /&gt;L2 Cache Misses3376068&lt;BR /&gt;L3 cache hit ratio:0.392955&lt;BR /&gt;L2 cache hit ratio0&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:51:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802200#M706</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-05T03:51:04Z</dc:date>
    </item>
    <item>
      <title>The output doesn't seem very</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802201#M707</link>
      <description>&lt;P&gt;Is there anything wrong with my code?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:52:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802201#M707</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-05T03:52:10Z</dc:date>
    </item>
    <item>
      <title>Probably. IPC should not be</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802202#M708</link>
      <description>&lt;P&gt;Probably. IPC should not be -1. I would start looking at why IPC is -1. Or, if there are error message before that, fix those message first.&lt;/P&gt;
&lt;P&gt;I assume PCM compiled correctly doesn't report IPC = -1. So I would look for what you are doing differently than what 'unchanged PCM' does. I'm sorry but I don't have time to debug your code.&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:56:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802202#M708</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2013-08-05T03:56:05Z</dc:date>
    </item>
    <item>
      <title>Bingyi, I'm unable to</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802203#M709</link>
      <description>&lt;P&gt;Bingyi, I'm unable to download your code snippet. Can you post it again?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 05:14:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802203#M709</guid>
      <dc:creator>Rolf_Andersson</dc:creator>
      <dc:date>2013-08-05T05:14:56Z</dc:date>
    </item>
    <item>
      <title>Sure, Rolf, the code is as</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802204#M710</link>
      <description>&lt;P&gt;Sure, Rolf, the code is as following:&lt;/P&gt;
&lt;P&gt;#include "/local/homes/bingyiloc/IntelPerformanceCounterMonitorV2.5.1/cpucounters.h"&lt;/P&gt;
&lt;P&gt;#define F 200&lt;/P&gt;
&lt;P&gt;#define C 200&lt;BR /&gt;using namespace std;&lt;BR /&gt;int&lt;/P&gt;
&lt;P&gt;main(){&lt;BR /&gt; PCM *m = PCM::getInstance();&lt;BR /&gt; SystemCounterState before_sstate = getSystemCounterState();&lt;BR /&gt; // Begin of custom code&lt;BR /&gt; cout&amp;lt;&amp;lt;"bingyi's code is working"&amp;lt;&amp;lt;endl;&lt;BR /&gt; double matrix&lt;F&gt;&lt;C&gt;;&lt;BR /&gt; for(int i=0;i&amp;lt;100;i++){&lt;BR /&gt; for(int j=0;j&amp;lt;100;j++){&lt;BR /&gt; matrix&lt;F&gt;&lt;C&gt; = 1.0;&lt;BR /&gt; }&lt;/C&gt;&lt;/F&gt;&lt;/C&gt;&lt;/F&gt;&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt; cout&amp;lt;&amp;lt;"bingyi's code is finished!!"&amp;lt;&amp;lt;endl;&lt;BR /&gt; // End of custom code&lt;BR /&gt; SystemCounterState after_sstate = getSystemCounterState();&lt;BR /&gt; cout &amp;lt;&amp;lt; "Instructions per clock:" &amp;lt;&amp;lt; getIPC(before_sstate,after_sstate)&amp;lt;&amp;lt;endl;&lt;BR /&gt; cout &amp;lt;&amp;lt;"L3 Cache Misses"&amp;lt;&amp;lt; getL3CacheMisses(before_sstate,after_sstate)&amp;lt;&amp;lt;endl;&lt;BR /&gt; cout &amp;lt;&amp;lt; "L2 Cache Misses"&amp;lt;&amp;lt;getL2CacheMisses(before_sstate,after_sstate)&amp;lt;&amp;lt;endl;&lt;BR /&gt; cout &amp;lt;&amp;lt; "L3 cache hit ratio:" &amp;lt;&amp;lt; getL3CacheHitRatio(before_sstate,after_sstate)&amp;lt;&amp;lt;endl;&lt;BR /&gt; cout &amp;lt;&amp;lt; "L2 cache hit ratio"&amp;lt;&amp;lt;getL2CacheHitRatio(before_sstate, after_sstate)&amp;lt;&amp;lt;endl;&lt;BR /&gt;m-&amp;gt;cleanup();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 18:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802204#M710</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-05T18:00:00Z</dc:date>
    </item>
    <item>
      <title>Please read Roman's reply to</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802205#M711</link>
      <description>&lt;P&gt;Please&amp;nbsp;read Roman's reply to Korso above and follow the already given instructions.&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 18:02:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802205#M711</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2013-08-05T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Bingyi, </title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802206#M712</link>
      <description>&lt;P&gt;Bingyi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems you are missing a call to the program method. May I suggest that you add:&lt;/P&gt;
&lt;P&gt;[cpp]m-&amp;gt;program (PCM::DEFAULT_EVENTS, NULL);[/cpp]&lt;/P&gt;
&lt;P&gt;after&lt;/P&gt;
&lt;P&gt;[cpp]PCM* m = PCM::getInstance ();[/cpp]&lt;/P&gt;
&lt;P&gt;I got the following result on my machine:&lt;/P&gt;
&lt;P&gt;[plain]bingyi's code is working&lt;BR /&gt;bingyi's code is finished!!&lt;BR /&gt;Instructions per clock:0.584452&lt;BR /&gt;L3 Cache Misses: 6893&lt;BR /&gt;L2 Cache Misses: 11591&lt;BR /&gt;L3 cache hit ratio: 0.405314&lt;BR /&gt;L2 cache hit ratio: 0.409767&lt;BR /&gt;Cleaning up[/plain]&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Rolf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 22:20:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802206#M712</guid>
      <dc:creator>Rolf_Andersson</dc:creator>
      <dc:date>2013-08-05T22:20:45Z</dc:date>
    </item>
    <item>
      <title>just wrote a post that got</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802207#M713</link>
      <description>&lt;P&gt;just wrote a post that got queued for review for some reason;&lt;BR /&gt;to add to that post, it seems that your matrix access is out of bounds (using F and C, instead of i and j)&lt;/P&gt;
&lt;P&gt;I'll repost my previous comment if it gets lost.&lt;/P&gt;
&lt;P&gt;/Rolf&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 22:26:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802207#M713</guid>
      <dc:creator>Rolf_Andersson</dc:creator>
      <dc:date>2013-08-05T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Hey Rolf, </title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802208#M714</link>
      <description>&lt;P&gt;Hey Rolf,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much for your reply!! I appreciate it very much!!&lt;/P&gt;
&lt;P&gt;I add the the code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;m-&amp;gt;program (PCM::DEFAULT_EVENTS, NULL);&lt;/P&gt;
&lt;P&gt;However the output turns out to be:&lt;/P&gt;
&lt;P&gt;Num logical cores: 24&lt;BR /&gt;Num sockets: 2&lt;BR /&gt;Threads per core: 2&lt;BR /&gt;Core PMU (perfmon) version: 3&lt;BR /&gt;Number of core PMU generic (programmable) counters: 4&lt;BR /&gt;Width of generic (programmable) counters: 48 bits&lt;BR /&gt;Number of core PMU fixed counters: 3&lt;BR /&gt;Width of fixed counters: 48 bits&lt;BR /&gt;Nominal core frequency: 2200000000 Hz&lt;BR /&gt;Package thermal spec power: 95 Watt; Package minimum power: 46 Watt; Package maximum power: 145 Watt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WARNING: Core 0 IA32_PERFEVTSEL0_ADDR are not zeroed 5439548&lt;BR /&gt;bingyi's code is working&lt;BR /&gt;bingyi's code finished!&lt;/P&gt;
&lt;P&gt;Instructions per clock:-1&lt;/P&gt;
&lt;P&gt;L3 Cache Misses4301948&lt;BR /&gt;L2 Cache Misses4301948&lt;BR /&gt;L3 cache hit ratio:0&lt;BR /&gt;L2 cache hit ratio0&lt;BR /&gt;Cleaning up&lt;/P&gt;
&lt;P&gt;It doesn't seem right to me. Is that because of the waring? Should I set&amp;nbsp;IA32_PERFEVTSEL0_ADDR to zero?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 02:59:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Can-t-use-PCM/m-p/802208#M714</guid>
      <dc:creator>Bingyi_C_</dc:creator>
      <dc:date>2013-08-06T02:59:53Z</dc:date>
    </item>
  </channel>
</rss>

