Problems with papi preset events

466 views
Skip to first unread message

Nilton Luiz Queiroz Junior

unread,
Jan 25, 2018, 11:57:54 AM1/25/18
to ptools-...@icl.utk.edu
Hi,
I have installed papi and i when i finished the install procedure i type papi_avail and there are no events available
every line is like these ones:
    Name        Code    Avail Deriv Description (Note)
PAPI_L1_DCM  0x80000000  No    No   Level 1 data cache misses
PAPI_L1_ICM  0x80000001  No    No   Level 1 instruction cache misses
PAPI_L2_DCM  0x80000002  No    No   Level 2 data cache misses

so i decided to try another time do the ./configure and make in the src directory, but this time, before to do the make install i ran make test, and my output was:

cd testlib;  make
make[1]: Entering directory '/home/nilton/Downloads/papi-5.6.0/src/testlib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/nilton/Downloads/papi-5.6.0/src/testlib'
cd validation_tests; make
make[1]: Entering directory '/home/nilton/Downloads/papi-5.6.0/src/validation_tests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/nilton/Downloads/papi-5.6.0/src/validation_tests'
cd ctests; make
make[1]: Entering directory '/home/nilton/Downloads/papi-5.6.0/src/ctests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/nilton/Downloads/papi-5.6.0/src/ctests'
ctests/zero
Trouble adding PAPI_TOT_CYC
SKIPPED

so, what it can be?

Thanks for support and sorry for my terrible english.

Nilton

Nilton Luiz Queiroz Junior

unread,
Jan 25, 2018, 11:57:54 AM1/25/18
to ptools-...@icl.utk.edu
oh, i forgot to say, but my processor is a core i5 6200U and the papi version is 5.6.0.0

Atenciosamente,
Nilton

John Henry

unread,
Jan 25, 2018, 12:27:25 PM1/25/18
to Nilton Luiz Queiroz Junior, ptools-perfapi
Hello Nilton,

I'm very sorry that you are having issues building/running PAPI.
I am assuming you followed the instructions in INSTALL.TXT that is found in the papi folder when you download and extract PAPI from the tar.gz.
We have another site that has further hints depending upon your hardware, CPU, configuration, etc.
For example, take a look at:
If you look down the list on the left, you will see a link for building and linking that provides more help.
One item it points out is that if you are building PAPI from source, you would want to ensure that you have set the environment variable LD_LIBRARY_PATH to point to items within the PAPI folders.
e.g.
export PAPIDIR=/home/$USER/icl/papi/papi 
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PAPIDIR}/src:${PAPIDIR}/src/libpfm4/lib

Your settings for /home and other parts should match what you have on your computer.
For me PAPIDIR is set to
export PAPIDIR=/home/$USER/icl/papi/
where /papi is the folder where PAPI is installed, e.g. contains the ChangeLog files, the README, the src folder, etc.

The next thing, is the configure. PAPI will figure a lot out on it's own, but if you want to include support for different components that are on your computer, you would want to enable the PAPI component in the configure line, e.g. the cuda component, we can go into that later if you need more help.

Let me know if any of the above helps,

Best Regards,
John Henry



--
You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfapi+unsubscribe@icl.utk.edu.
To post to this group, send email to ptools-...@icl.utk.edu.
Visit this group at https://groups.google.com/a/icl.utk.edu/group/ptools-perfapi/.



--
John Henry, Research Leader 1
Innovative Computing Laboratory - University of Tennessee

Vince Weaver

unread,
Jan 25, 2018, 3:23:54 PM1/25/18
to Nilton Luiz Queiroz Junior, ptools-...@icl.utk.edu
On Thu, 25 Jan 2018, Nilton Luiz Queiroz Junior wrote:

> oh, i forgot to say, but my processor is a core i5 6200U and the papi
> version is 5.6.0.0

try running "papi_component_avail". It should say why things aren't
working.

Vince

Philip Mucci

unread,
Jan 26, 2018, 4:49:16 AM1/26/18
to Vince Weaver, Nilton Luiz Queiroz Junior, ptools-...@icl.utk.edu
Hi,

Have you checked the value of /proc/sys/kernel/ perf_event_paranoid? I’ll bet it’s set to 2.

Phil
> --
> You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu.

Michael Knobloch

unread,
Jan 26, 2018, 2:52:17 PM1/26/18
to Nilton Luiz Queiroz Junior, ptools-...@icl.utk.edu
Nilton,

I ran into a similar issue - the problem was that a recent Ubuntu update
changed the value of /proc/sys/kernel/perf_event_paranoid from 1 to 3,
which prevents non-root users from accessing perf events.

Follow these steps to change that

https://superuser.com/questions/980632/run-perf-without-root-rights

HTH,

Michael
> --
> You received this message because you are subscribed to the Google
> Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptools-perfap...@icl.utk.edu
> <mailto:ptools-perfap...@icl.utk.edu>.
> To post to this group, send email to ptools-...@icl.utk.edu
> <mailto:ptools-...@icl.utk.edu>.
--
Michael Knobloch
Juelich Supercomputing Centre
Institute for Advanced Simulation
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49-2461-61-3546
Fax: +49-2461-61-6656
E-mail: m.kno...@fz-juelich.de
WWW: http://www.fz-juelich.de/jsc/


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Michael Knobloch

unread,
Jan 26, 2018, 3:21:12 PM1/26/18
to Nilton Luiz Queiroz Junior, ptools-perfapi
[cc'ed PAPI list again to let everyone know the issue is resolved]

Folks,

since multiple people ran into this issue (in fact I gave the exact same
answer on this list before) would it make sense to document it somehow
in the install instructions of PAPI?

-Michael

On 26.01.2018 21:04, Nilton Luiz Queiroz Junior wrote:
> Thanks Michael,
> I did it and worked.
> I appreciate your help!
>
> Nilton
>
> 2018-01-26 17:52 GMT-02:00 Michael Knobloch <m.kno...@fz-juelich.de
> <mailto:m.kno...@fz-juelich.de>>:
> <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>
> > <mailto:ptools-perfap...@icl.utk.edu
> <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>>.
> > To post to this group, send email to ptools-...@icl.utk.edu <mailto:ptools-...@icl.utk.edu>
> > <mailto:ptools-...@icl.utk.edu
> <https://groups.google.com/a/icl.utk.edu/group/ptools-perfapi/>.
>
> --
> Michael Knobloch
> Juelich Supercomputing Centre
> Institute for Advanced Simulation
> Forschungszentrum Juelich GmbH
> 52425 Juelich, Germany
>
> Phone:  +49-2461-61-3546 <tel:%2B49-2461-61-3546>
> Fax:    +49-2461-61-6656 <tel:%2B49-2461-61-6656>
> E-mail: m.kno...@fz-juelich.de <mailto:m.kno...@fz-juelich.de>

Phil Mucci

unread,
Jan 29, 2018, 4:52:46 AM1/29/18
to Michael Knobloch, Nilton Luiz Queiroz Junior, ptools-perfapi
Hi Michael,

Amazingly enough, you're right. It's not mentioned either in README.md or INSTALL.txt. 

I'll fix.

Phil


On Fri, Jan 26, 2018 at 9:21 PM, Michael Knobloch <m.kno...@fz-juelich.de> wrote:
[cc'ed PAPI list again to let everyone know the issue is resolved]

Folks,

since multiple people ran into this issue (in fact I gave the exact same
answer on this list before) would it make sense to document it somehow
in the install instructions of PAPI?

-Michael

On 26.01.2018 21:04, Nilton Luiz Queiroz Junior wrote:
> Thanks Michael,
> I did it and worked.
> I appreciate your help!
>
> Nilton
>
> 2018-01-26 17:52 GMT-02:00 Michael Knobloch <m.kno...@fz-juelich.de
>     <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>
>     > <mailto:ptools-perfapi+unsub...@icl.utk.edu
>     <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>>.
>     > To post to this group, send email to ptools-...@icl.utk.edu <mailto:ptools-perfapi@icl.utk.edu>
>     > <mailto:ptools-perfapi@icl.utk.edu
>     <mailto:ptools-perfapi@icl.utk.edu>>.

>     > Visit this group at
>     > https://groups.google.com/a/icl.utk.edu/group/ptools-perfapi/
>     <https://groups.google.com/a/icl.utk.edu/group/ptools-perfapi/>.
>
>     --
>     Michael Knobloch
>     Juelich Supercomputing Centre
>     Institute for Advanced Simulation
>     Forschungszentrum Juelich GmbH
>     52425 Juelich, Germany
>
>     Phone:  +49-2461-61-3546 <tel:%2B49-2461-61-3546>
>     Fax:    +49-2461-61-6656 <tel:%2B49-2461-61-6656>
>     WWW:    http://www.fz-juelich.de/jsc/
>
>
>     ------------------------------------------------------------------------------------------------
>     ------------------------------------------------------------------------------------------------
>     Forschungszentrum Juelich GmbH
>     52425 Juelich
>     Sitz der Gesellschaft: Juelich
>     Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
>     Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
>     Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
>     Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
>     Prof. Dr. Sebastian M. Schmidt
>     ------------------------------------------------------------------------------------------------
>     ------------------------------------------------------------------------------------------------
>
>

--
Michael Knobloch
Juelich Supercomputing Centre
Institute for Advanced Simulation
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone:  +49-2461-61-3546
Fax:    +49-2461-61-6656
E-mail: m.kno...@fz-juelich.de
WWW:    http://www.fz-juelich.de/jsc/

--
You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfapi+unsubscribe@icl.utk.edu.
To post to this group, send email to ptools-...@icl.utk.edu.
Visit this group at https://groups.google.com/a/icl.utk.edu/group/ptools-perfapi/.

Reply all
Reply to author
Forward
0 new messages