<?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 PCM and CMake in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/PCM-and-CMake/m-p/1072107#M7009</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to measure memory traffic in my code, which I am building using cmake.&lt;/P&gt;

&lt;P&gt;When I compiled my test case I used:&lt;/P&gt;

&lt;P&gt;icpc -O3 -mkl -std=c++11 -o daxpy/daxpy_test -I/${PCM_ROOT}/ -L/${PCM_ROOT}/cpucounters.o /${PCM_ROOT}/pci.o /${PCM_ROOT}/msr.o /${PCM_ROOT}/client_bw.o /${PCM_ROOT}/cpucounters.o daxpy/daxpy.cpp -lpthread&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	So obviously in my cmake file I need to link the above libraries etc. in my cmake I've got an PCM_INCLUDE_DIRS and PCM_LIBS. Also I have the cpucounters.h linked in the relevant files.&lt;/P&gt;

&lt;P&gt;Nonetheless I receive the error:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;undefined reference to `PCM::getInstance()' and so on....&lt;/P&gt;

&lt;P&gt;Could somebody give me an example cmake file or other suggestions on what I am doing incorrectly...&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Friedrich Grabner&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 17:16:08 GMT</pubDate>
    <dc:creator>Friedrich_G_</dc:creator>
    <dc:date>2016-05-24T17:16:08Z</dc:date>
    <item>
      <title>PCM and CMake</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/PCM-and-CMake/m-p/1072107#M7009</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to measure memory traffic in my code, which I am building using cmake.&lt;/P&gt;

&lt;P&gt;When I compiled my test case I used:&lt;/P&gt;

&lt;P&gt;icpc -O3 -mkl -std=c++11 -o daxpy/daxpy_test -I/${PCM_ROOT}/ -L/${PCM_ROOT}/cpucounters.o /${PCM_ROOT}/pci.o /${PCM_ROOT}/msr.o /${PCM_ROOT}/client_bw.o /${PCM_ROOT}/cpucounters.o daxpy/daxpy.cpp -lpthread&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	So obviously in my cmake file I need to link the above libraries etc. in my cmake I've got an PCM_INCLUDE_DIRS and PCM_LIBS. Also I have the cpucounters.h linked in the relevant files.&lt;/P&gt;

&lt;P&gt;Nonetheless I receive the error:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;undefined reference to `PCM::getInstance()' and so on....&lt;/P&gt;

&lt;P&gt;Could somebody give me an example cmake file or other suggestions on what I am doing incorrectly...&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Friedrich Grabner&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:16:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/PCM-and-CMake/m-p/1072107#M7009</guid>
      <dc:creator>Friedrich_G_</dc:creator>
      <dc:date>2016-05-24T17:16:08Z</dc:date>
    </item>
    <item>
      <title>we are not using CMake but</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/PCM-and-CMake/m-p/1072108#M7010</link>
      <description>&lt;P&gt;we are not using CMake but maybe it will be helpful for you to check the intelpcm.so directory that contains a Makefile to build pcm shared memory library.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 14:28:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/PCM-and-CMake/m-p/1072108#M7010</guid>
      <dc:creator>Roman_D_Intel</dc:creator>
      <dc:date>2016-06-03T14:28:07Z</dc:date>
    </item>
  </channel>
</rss>

