Wyatt Spear
unread,Jul 11, 2025, 2:57:52 PMJul 11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ptools-perfapi, Treece Burgess, ptools-perfapi, Vince Weaver, Wyatt Spear
Greetings. So I revisited this recently with the official papi 7.2.0 release and I'm still seeing the issue with this counter in TAU. With multiplexing on, it fails but with multiplexing off it works. Your verify_multiplex example works so whatever is going on it isn't replicating what is happening in TAU.
Relevant papi debug output:
API:papi.c:PAPI_get_event_component:7307:3653948:0 Entry: EventCode: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_component_index:529:3653948:0 ENTER: event_code: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_component_index:560:3653948:0 EXIT: Found cidx: 3 event_index: 33, event_code: 0x40000021
API:papi.c:PAPI_add_event:2384:3653948:0 Entry: EventSet: 3, EventCode: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_add_event:1544:3653948:0 ENTER: ESI: 0xe55190 (3), EventCode: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_component_index:529:3653948:0 ENTER: event_code: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_component_index:560:3653948:0 EXIT: Found cidx: 3 event_index: 33, event_code: 0x40000021
INTERNAL:papi_internal.c:_papi_hwi_add_event:1569:3653948:0 EXIT: Event is not valid for component index 3
API:papi.c:PAPI_add_event:2406:3653948:0 EXIT: return: -1
TAU: Error adding PAPI events: Invalid argument
Papi configuration: ./configure --prefix=/home/users/wspear/bin/tau-pdt/roberta/papi-7.2.0-install-gcc --with-components="appio coretemp infiniband io net" --with-debug=yes
uname -a: Linux roberta 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 1 04:16:12 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
CPU Arch: model name : AMD EPYC 9654 96-Core Processor
GCC: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
If you want to take a look at this on the tau side this runs it from start to finish (with adjustments for your papi location, and your papi lib in LD_LIBRARY_PATH if needed). It will work with TAU_PAPI_MULTIPLEXING removed.:
tar -zxf tau.tgz
cd tau-2.34.1/
./configure -bfd=download -useropt=-g\ -O3\ -DTAU_MAX_METRICS=200 -papi=/home/users/wspear/bin/tau-pdt/roberta/papi-7.2.0-install-gcc/
make clean install -j
export TAU_MAKEFILE=`cat .active_stub`
export PATH=${TAU_MAKEFILE/lib*/bin}:$PATH
cd examples/papi
make
TAU_METRICS=TIME,PAPI_FP_OPS,PAPI_L2_DCM,PAPI_NATIVE_perf::PERF_COUNT_HW_CACHE_L1D:MISS,PAPI_NATIVE_coretemp:::hwmon2:temp3_input TAU_PAPI_MULTIPLEXING=1 PAPI_DEBUG=PAPI_ALL ./simple
Thanks,
Wyatt Spear