<?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 Thanks for your reply. in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030164#M4269</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;

&lt;P&gt;I have to check with the administrator of the machine I am working on :)&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2015 10:42:59 GMT</pubDate>
    <dc:creator>Jeremie_Lagraviere</dc:creator>
    <dc:date>2015-03-04T10:42:59Z</dc:date>
    <item>
      <title>Intel PCM, error with very basic code.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030162#M4267</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I have a very basic code using IntelPCM:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int main(void)
{
        int N = 99999999;
        PCM * m = PCM::getInstance();
        if (m-&amp;gt;program() != PCM::Success)
        {
                cout &amp;lt;&amp;lt; "Intel PCM does not Work";
                exit(0);
        }

        SystemCounterState before_sstate = getSystemCounterState();

        eratosthenesBlockwise(N, 100, 1);

        SystemCounterState after_sstate = getSystemCounterState();

        cout &amp;lt;&amp;lt; "Instructions per clock:" &amp;lt;&amp;lt; getIPC(before_sstate,after_sstate) &amp;lt;&amp;lt; endl;
        cout &amp;lt;&amp;lt; "L3 cache hit ratio:" &amp;lt;&amp;lt; getL3CacheHitRatio(before_sstate,after_sstate) &amp;lt;&amp;lt; endl;
        cout &amp;lt;&amp;lt; "Bytes read:" &amp;lt;&amp;lt; getBytesReadFromMC(before_sstate,after_sstate) &amp;lt;&amp;lt; endl;

        //printf("%d", eratosthenesBlockwise(N, 100, true));
        printf("done !");
        exit(0);
}
&lt;/PRE&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;I compile the code with this command line:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;g++ -I/home/xxxx/pgashpc/EnergyManagement/IntelPCM/ sievePCM.cpp -L/home/xxxx/pgashpc/EnergyManagement/IntelPCM/intelpcm.so -lintelpcm -fopenmp -o test1PCM
&lt;/PRE&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;And I get no warnings or errors from the compiler.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;When I run this code I get this message:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;Number of physical cores: 16&lt;BR /&gt;
		Number of logical cores: 32&lt;BR /&gt;
		Number of online logical cores: 32&lt;BR /&gt;
		Threads (logical cores) per physical core: 2&lt;BR /&gt;
		Num sockets: 2&lt;BR /&gt;
		Physical cores per socket: 8&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: 2000000000 Hz&lt;BR /&gt;
		Package thermal spec power: 95 Watt; Package minimum power: 64 Watt; Package maximum power: 150 Watt;&amp;nbsp;&lt;BR /&gt;
		ERROR: QPI LL monitoring device (0:127:8:2) is missing. The QPI statistics will be incomplete or missing.&lt;BR /&gt;
		ERROR: QPI LL monitoring device (0:127:9:2) is missing. The QPI statistics will be incomplete or missing.&lt;BR /&gt;
		Socket 0: 1 memory controllers detected with total number of 4 channels. 0 QPI ports detected.&lt;BR /&gt;
		ERROR: QPI LL monitoring device (0:255:8:2) is missing. The QPI statistics will be incomplete or missing.&lt;BR /&gt;
		ERROR: QPI LL monitoring device (0:255:9:2) is missing. The QPI statistics will be incomplete or missing.&lt;BR /&gt;
		Socket 1: 1 memory controllers detected with total number of 4 channels. 0 QPI ports detected.&lt;BR /&gt;
		WARNING: Core 12 IA32_PERFEVTSEL0_ADDR are not zeroed 1114414&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This error seems quite common:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.google.no/search?q=The+QPI+statistics+will+be+incomplete+or+missing&amp;amp;oq=The+QPI+statistics+will+be+incomplete+or+missing&amp;amp;aqs=chrome..69i57j69i64l2.576j0j7&amp;amp;client=ubuntu&amp;amp;sourceid=chrome&amp;amp;es_sm=93&amp;amp;ie=UTF-8" target="_blank"&gt;https://www.google.no/search?q=The+QPI+statistics+will+be+incomplete+or+missing&amp;amp;oq=The+QPI+statistics+will+be+incomplete+or+missing&amp;amp;aqs=chrome..69i57j69i64l2.576j0j7&amp;amp;client=ubuntu&amp;amp;sourceid=chrome&amp;amp;es_sm=93&amp;amp;ie=UTF-8&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/default/files/managed/de/f7/pcm-output.txt" target="_blank"&gt;https://software.intel.com/sites/default/files/managed/de/f7/pcm-output.txt&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Although, I do not know how to solve this issue.&lt;/P&gt;

&lt;P&gt;Any help is welcome :)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;EDIT: I forgot to say that I am doing all of these operation as root.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:36:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030162#M4267</guid>
      <dc:creator>Jeremie_Lagraviere</dc:creator>
      <dc:date>2015-03-02T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Hi Jeremie,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030163#M4268</link>
      <description>&lt;P&gt;Hi Jeremie,&lt;/P&gt;

&lt;P&gt;it appears that the BIOS for your mainboard has disabled access to the QPI counters which is not uncommon. Please check your BIOS settings for an option to enable these counters. If you can't find this option, you will have to talk to the mainboard manufacturer and ask them if it is possible to expose the QPI counters in the future.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Otto&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 13:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030163#M4268</guid>
      <dc:creator>Otto_B_Intel</dc:creator>
      <dc:date>2015-03-02T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Thanks for your reply.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030164#M4269</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;

&lt;P&gt;I have to check with the administrator of the machine I am working on :)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 10:42:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030164#M4269</guid>
      <dc:creator>Jeremie_Lagraviere</dc:creator>
      <dc:date>2015-03-04T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Just FYI:</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030165#M4270</link>
      <description>&lt;P&gt;Just FYI:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;If you are running on HP hardware, it seems they've added it starting around mid-2013 to their BIOS:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Advanced Options / Advanced Performance Tuning Options - Intel Performance Counter Monitor (PCM)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;NOTE: This feature is supported only on Gen8 servers.&lt;BR /&gt;
		When enabled, this option allows you to view and use certain performance counters in the&lt;BR /&gt;
		processor, such as the Performance Counter Monitor (PCM).&lt;BR /&gt;
		Options include:&lt;BR /&gt;
		• Enabled&lt;BR /&gt;
		• Disabled (default)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;For the I31 BIOS specifically:&amp;nbsp;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;Version:2013.09.08 (A) (13 Aug 2013)&lt;BR /&gt;
		Enhancements&lt;BR /&gt;
		(...)&lt;BR /&gt;
		Added support for the Intel Performance Counter Monitor Utility (iPCM). This feature can be enabled in the ROM Based Setup Utility (RBSU) Advanced Performance Tuning Options menu. This option is disabled by default and must be enabled to utilize the Intel PCM.&lt;BR /&gt;
		(...)&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I hope it saves someone a bit of their day.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Valentin&lt;/P&gt;

&lt;P&gt;P.S.&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;For I32, it was added in the &lt;/SPAN&gt;2013.06.30 BIOS, P70 was 2013.09.08&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 12:26:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Intel-PCM-error-with-very-basic-code/m-p/1030165#M4270</guid>
      <dc:creator>Valentin_Bondzio</dc:creator>
      <dc:date>2015-07-07T12:26:12Z</dc:date>
    </item>
  </channel>
</rss>

