FAQMultipleCounters

From TAU Wiki

Jump to: navigation, search

Question

How do I instrument Tau with multiple hardware counter (included PAPI counters)?

Answer

Just configure TAU with -MULTIPLECOUNTERS:

% configure -papi=<dir> -MULTIPLECOUNTERS -pdt=<dir> ... [[options]]
% make clean install

and use

% setenv TAU_MAKEFILE <taudir>/<arch>/lib/Makefile.tau[[options]]

use tau_cxx.sh, tau_f90.sh, tau_cc.sh as your compiler to build the executable, while running specify the list of your events in the COUNTER1-25 environment variables. e.g.,:

% setenv COUNTER1 GET_TIME_OF_DAY
% setenv COUNTER2 PAPI_FP_INS
% setenv COUNTER3 PAPI_L1_DCM
to use native events (see papi_native_avail utility) you can use
% setenv COUNTER<n> PAPI_NATIVE_<native_event_name>

To find out which PAPI counter your hardware might support see Finding compatible PAPI counters.

Personal tools