Hi,
I am getting the following error when trying to use Intel PCM. This is in a program where I am trying to use the API in cpucounters.h to measure bandwidth.PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\testBw\\x64\\Release> .\\testBW.exe Num cores: 4 Num sockets: 1 Threads per core: 2 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 Can not access CPUs Model Specific Registers (MSRs). You must have signed msr.sys driver in your current directory and have administrator rights to run this program. Access to Intel Performance Counter Monitor has denied (no MSR or PCI CFG space access). PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\testBw\\x64\\Release>
Also I am encountering the following error:
I could compile and run PCM.exe earlier. When I tried it again today, I am getting the following errors: PS C:\\Users\\pdenthum\\Documents\\Visual Studio 2010\\Projects\\IntelPerformanceCounterMonitorV1.7\\pranith> .\\pcm.exe 1 -nc -ns Intel Performance Counter Monitor Copyright (c) 2009-2011 Intel Corporation Starting MSR service failed with error 2 Trying to load winring0.dll/winring0.sys driver... Using winring0.dll/winring0.sys driver. Num cores: 4 Num sockets: 1 Threads per core: 2 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: 2500000000 Hz Error in Windows function 'CreateSemaphore': 5 Access to Intel Performance Counter Monitor has denied (Unknown error).
I could see that the error code 5 isERROR_ACCESS_DENIED. I think this error is caused by an orphan semaphore. If I change the name of the semaphore, I am able to access the performance counters again.
Please help me resolve these errors.
Thanks,
Pranith



