<?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 Jon, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056053#M24137</link>
    <description>&lt;P&gt;Jon,&lt;/P&gt;

&lt;P&gt;Here's the relevant code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;...
#define READ_CPU_FREQ

#ifdef READ_CPU_FREQ
int *pMhz;
int iCpuMhz;
#endif
...
#ifdef READ_CPU_FREQ
    // read the processor speed
    ippStatus = ippGetCpuFreqMhz(pMhz);
    iCpuMhz = *pMhz;
#endif
...&lt;/PRE&gt;

&lt;P&gt;The fault occurs on the function call; if I comment it out, it doesn't occur.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Grant&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2015 14:40:44 GMT</pubDate>
    <dc:creator>Grant_S_2</dc:creator>
    <dc:date>2015-08-19T14:40:44Z</dc:date>
    <item>
      <title>ippGetCpuFreqMhz segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056050#M24134</link>
      <description>&lt;P&gt;I get a segmentation fault when I call ippGetCpuFreqMhz().&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Ubuntu 12.04 LTS&lt;/P&gt;

&lt;P&gt;Intel® Core™ i7-4610M CPU @ 3.00GHz × 4&lt;/P&gt;

&lt;P&gt;static libraries&lt;/P&gt;

&lt;P&gt;Netbeans IDE 7.4&lt;/P&gt;

&lt;P&gt;gcc -o dist/Debug/GNU-Linux-x86/timingtestipp build/Debug/GNU-Linux-x86/src/CicDownSamp.o build/Debug/GNU-Linux-x86/src/TimingTestIpp.o -L../lib -L/opt/intel/ipp/lib/intel64 -lsidekiq__x86_64 /opt/intel/ipp/lib/intel64/libippcc.a /opt/intel/ipp/lib/intel64/libippch.a /opt/intel/ipp/lib/intel64/libippcore.a /opt/intel/ipp/lib/intel64/libippcv.a /opt/intel/ipp/lib/intel64/libippdc.a /opt/intel/ipp/lib/intel64/libippi.a /opt/intel/ipp/lib/intel64/libipps.a /opt/intel/ipp/lib/intel64/libippvm.a -lpthread -lm -lrt -ldl&lt;/P&gt;

&lt;P&gt;Let me know if you need more.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Grant Schmick&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 20:13:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056050#M24134</guid>
      <dc:creator>Grant_S_2</dc:creator>
      <dc:date>2015-08-18T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Also:  IPP_VERSION_STR "8.2.2</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056051#M24135</link>
      <description>&lt;P&gt;Also:&amp;nbsp; IPP_VERSION_STR "8.2.2"&lt;/P&gt;

&lt;P&gt;Language: C&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 20:28:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056051#M24135</guid>
      <dc:creator>Grant_S_2</dc:creator>
      <dc:date>2015-08-18T20:28:19Z</dc:date>
    </item>
    <item>
      <title>Hi Grant,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056052#M24136</link>
      <description>&lt;P&gt;Hi Grant,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can I see how you declare a variable for and call ippGetCpuFreqMhz() in your code?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;- Jon&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 03:10:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056052#M24136</guid>
      <dc:creator>Jonghak_K_Intel</dc:creator>
      <dc:date>2015-08-19T03:10:55Z</dc:date>
    </item>
    <item>
      <title>Jon,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056053#M24137</link>
      <description>&lt;P&gt;Jon,&lt;/P&gt;

&lt;P&gt;Here's the relevant code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;...
#define READ_CPU_FREQ

#ifdef READ_CPU_FREQ
int *pMhz;
int iCpuMhz;
#endif
...
#ifdef READ_CPU_FREQ
    // read the processor speed
    ippStatus = ippGetCpuFreqMhz(pMhz);
    iCpuMhz = *pMhz;
#endif
...&lt;/PRE&gt;

&lt;P&gt;The fault occurs on the function call; if I comment it out, it doesn't occur.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Grant&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:40:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056053#M24137</guid>
      <dc:creator>Grant_S_2</dc:creator>
      <dc:date>2015-08-19T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Hi Grant,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056054#M24138</link>
      <description>&lt;P&gt;Hi Grant,&lt;/P&gt;

&lt;P&gt;pMhz is not initialized in your case, correct code is below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;int *pMhz;&lt;BR /&gt;
	&amp;nbsp;int iCpuMhz;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;pMhz = &amp;amp;iCpuMhz;&lt;BR /&gt;
	&amp;nbsp;ippStatus = ippGetCpuFreqMhz(pMhz);&lt;/P&gt;

&lt;P&gt;or simpler one:&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;int iCpuMhz;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;ippStatus = ippGetCpuFreqMhz(&amp;amp;iCpuMhz);&lt;/P&gt;

&lt;P&gt;regards, Igor&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:48:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippGetCpuFreqMhz-segmentation-fault/m-p/1056054#M24138</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2015-08-19T14:48:07Z</dc:date>
    </item>
  </channel>
</rss>

