From: Rick K. <rk...@nc...> - 2008-01-25 15:27:20
|
Sanjay, Good to hear you are making progress. This latest issue you report is somewhat common, but should be easy to fix. The error message "hardware event not available" is pretty self-explanatory: it means that one or more of the events listed in the configuration file that psrun is using are not defined for your CPU. As PAPI evolves and improves, its standard, or "preset", events can change over time such that new ones may be added or existing ones removed. To address this in your installation, you should edit the default configuration file. This is an XML document that is listed by running the command "psrun -i". There should be a message in the output similar to this: Standard configuration file directory for psrun on this computer: /usr/local/share/perfsuite/xml/pshwpc Default configuration file for this computer: papi3_p4.xml ...which means that /usr/local/share/perfsuite/xml/pshwpc/papi3_p4.xml is the XML document that lists the events psrun is to count. You will have to edit this file and delete or comment out one or more events that are not available on your system/installation. The command "psinv -p" provides a list of events that *are* available on your system and can be helpful in this instance. Rick On Fri, 25 Jan 2008, Sanjay H A wrote: > Hello SirAccording to your direction, I downloaded papi.tar.gz from CVS directory.And I installed PAPI, this time while configuring, there is no warning.Installation went fine.Then I tested example programs given in PAPI repository.ALL are executed, without error.Then I tested PAPI_ipc.c from outside the test-suite, by compiling dynamicaly"cc -o PAPI_ipc -L/usr/local/papi/lib -lpapi -I/usr/local/papi/include PAPI_ipc.c " and it executed well.Then I reinstalled perfsuite, with new version of PAPI.now If I run "/usr/local/perfsuite/bin/psrun gunzip demo.c"It gives"libpsrun fatal error: hardware event not available"The perfctr version is : perfctr-2.6.x ( which comes with papi-3.5.0)System Info: CentOS release 4.3 CPU : AuthenticAMD cpu family : 15 model : 67 model name : Dual-Core AMD Opteron(tm) Processor 1214perfex -i gives : PerfCtr Info: abi_version 0x05010501 driver_version 2.6.25 DEBUG cpu_type 15 (AMD K8 Revision C) cpu_features 0x7 (! > rdpmc,rdtsc,pcint) cpu_khz 2211393 tsc_to_cpu_mult 1 cpu_nrctrs 4 cpus [0,1], total: 2 cpus_forbidden [], total: 0ThanxRegardsSanjay > > > > |