Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Friedrich_G_
Beginner
61 Views

PCM and CMake

Hi All,

I am trying to measure memory traffic in my code, which I am building using cmake.

When I compiled my test case I used:

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


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.

Nonetheless I receive the error:

 undefined reference to `PCM::getInstance()' and so on....

Could somebody give me an example cmake file or other suggestions on what I am doing incorrectly...

Thanks,

Friedrich Grabner

Tags (1)
0 Kudos
1 Reply
Roman_D_Intel
Employee
61 Views

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.

Thanks,

Roman

Reply