Skip to content

Instantly share code, notes, and snippets.

@cyring
Created April 12, 2024 10:12
Show Gist options
  • Save cyring/90f779a5b590175584bcaef68e68f115 to your computer and use it in GitHub Desktop.
Save cyring/90f779a5b590175584bcaef68e68f115 to your computer and use it in GitHub Desktop.
PAPI
Performance Application Programming Interface (PAPI)
@cyring
Copy link
Author

cyring commented Apr 12, 2024

$ ./run_tests.sh 
Platform:
Linux RYZEN 6.8.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 11 Apr 2024 01:47:33 +0000 x86_64 GNU/Linux
Date:
Fri Apr 12 12:04:45 PM CEST 2024

Cpuinfo:
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 23
model		: 113
model name	: AMD Ryzen 9 3950X 16-Core Processor
stepping	: 0
microcode	: 0x8701030
cpu MHz		: 1.444
cache size	: 512 KB
physical id	: 0
siblings	: 32
core id		: 0
cpu cores	: 16
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 16
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed smt_rsb srso
bogomips	: 7002.42
TLB size	: 3072 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 43 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]


The following test cases will be run:

validation_tests/cycles_validation validation_tests/flops_validation validation_tests/fp_validation_hl validation_tests/papi_br_cn validation_tests/papi_br_ins validation_tests/papi_br_msp validation_tests/papi_br_ntk validation_tests/papi_br_prc validation_tests/papi_br_tkn validation_tests/papi_br_ucn validation_tests/papi_dp_ops validation_tests/papi_fp_ops validation_tests/papi_hw_int validation_tests/papi_l1_dca validation_tests/papi_l1_dcm validation_tests/papi_l2_dca validation_tests/papi_l2_dcm validation_tests/papi_l2_dcr validation_tests/papi_l2_dcw validation_tests/papi_ld_ins validation_tests/papi_ref_cyc validation_tests/papi_sp_ops validation_tests/papi_sr_ins validation_tests/papi_tot_cyc validation_tests/papi_tot_ins ctests/all_events ctests/all_native_events ctests/attach2 ctests/attach3 ctests/attach_cpu ctests/attach_cpu_sys_validate ctests/attach_cpu_validate ctests/attach_validate ctests/branches ctests/byte_profile ctests/calibrate ctests/case1 ctests/case2 ctests/child_overflow ctests/clockres_pthreads ctests/cmpinfo ctests/code2name ctests/data_range ctests/derived ctests/describe ctests/destroy ctests/disable_component ctests/dmem_info ctests/earprofile ctests/eventname ctests/exec ctests/exec2 ctests/exec_overflow ctests/exeinfo ctests/failed_events ctests/first ctests/fork ctests/fork2 ctests/forkexec ctests/forkexec2 ctests/forkexec3 ctests/forkexec4 ctests/fork_overflow ctests/get_event_component ctests/hwinfo ctests/inherit ctests/johnmay2 ctests/krentel_pthreads ctests/kufrin ctests/locks_pthreads ctests/low-level ctests/max_multiplex ctests/memory ctests/mendes-alt ctests/mpifirst ctests/multiattach ctests/multiattach2 ctests/multiplex1 ctests/multiplex1_pthreads ctests/multiplex2 ctests/multiplex3_pthreads ctests/omp_hl ctests/overflow ctests/overflow2 ctests/overflow3_pthreads ctests/overflow_allcounters ctests/overflow_force_software ctests/overflow_index ctests/overflow_one_and_read ctests/overflow_pthreads ctests/overflow_single_event ctests/overflow_twoevents ctests/p4_lst_ins ctests/profile ctests/profile_force_software ctests/profile_pthreads ctests/profile_twoevents ctests/pthread_hl ctests/pthrtough ctests/realtime ctests/remove_events ctests/reset ctests/reset_multiplex ctests/sdsc2-mpx ctests/sdsc2-mpx-noreset ctests/sdsc4-mpx ctests/sdsc-mpx ctests/second ctests/serial_hl ctests/serial_hl_ll_comb ctests/shlib ctests/sprofile ctests/system_child_overflow ctests/system_overflow ctests/tenth ctests/thrspecific ctests/version ctests/virttime ctests/zero ctests/zero_attach ctests/zero_flip ctests/zero_fork ctests/zero_named ctests/zero_omp ctests/zero_pthreads ctests/zero_shmem ctests/zero_smp components/perf_event/tests/broken_events components/perf_event/tests/nmi_watchdog components/perf_event/tests/perf_event_offcore_response components/perf_event/tests/perf_event_system_wide components/perf_event/tests/perf_event_user_kernel components/perf_event_uncore/tests/perf_event_uncore components/perf_event_uncore/tests/perf_event_uncore_attach components/perf_event_uncore/tests/perf_event_uncore_multiple components/perf_event_uncore/tests/perf_event_amd_northbridge components/perf_event_uncore/tests/perf_event_uncore_cbox components/sysdetect/tests/query_device_simple components/sysdetect/tests/query_device_mpi


The following test cases will NOT be run:
ftests/Makefile.recipies ftests/Makefile ftests/Makefile.target.in ctests/Makefile.recipies ctests/Makefile ctests/Makefile.target.in ctests/Make-export components/infiniband/tests/Makefile components/cuda/tests/Makefile components/Makefile_comp_tests components/net/tests/Makefile components/lustre/tests/Makefile components/perf_event/tests/Makefile components/nvml/tests/Makefile components/perf_event_uncore/tests/Makefile components/rapl/tests/Makefile components/bcs/tests/Makefile components/sde/tests/Makefile components/sde/tests/README.txt components/intel_gpu/tests/readme.txt testlib/Makefile testlib/Makefile.target.in validation_tests/memleak_check ctests/cpi.pbs ctests/burn ctests/attach_target ctests/pthrtough2 ctests/timer_overflow ctests/omptough ctests/serial_hl_ll_comb2 ctests/mpi_hl ctests/mpi_omp_hl components/appio/tests/iozone/Gnuplot.txt components/appio/tests/iozone/Generate_Graphs components/appio/tests/iozone/report.pl components/appio/tests/iozone/iozone_visualizer.pl components/appio/tests/iozone/gengnuplot.sh components/appio/tests/iozone/gnu3d.dem

Running Tests


Running Event Validation Tests

Running validation_tests/cycles_validation:                
WARNING Line # 150 Warning: Cycles validation
                                                           PASSED with WARNING
Running validation_tests/flops_validation:                 PASSED
Running validation_tests/fp_validation_hl:                 PASSED
Running validation_tests/papi_br_cn:                       SKIPPED
Running validation_tests/papi_br_ins:                      PASSED
Running validation_tests/papi_br_msp:                      PASSED
Running validation_tests/papi_br_ntk:                      SKIPPED
Running validation_tests/papi_br_prc:                      SKIPPED
Running validation_tests/papi_br_tkn:                      
WARNING Line # 193 Warning: Using TOTAL BRANCHES as base rather than CONDITIONAL BRANCHES

                                                           PASSED with WARNING
Running validation_tests/papi_br_ucn:                      SKIPPED
Running validation_tests/papi_dp_ops:                      SKIPPED
Running validation_tests/papi_fp_ops:                      PASSED
Running validation_tests/papi_hw_int:                      SKIPPED
Running validation_tests/papi_l1_dca:                      PASSED
Running validation_tests/papi_l1_dcm:                      SKIPPED
Running validation_tests/papi_l2_dca:                      SKIPPED
Running validation_tests/papi_l2_dcm:                      
WARNING Line # 206 Warning: Error too high
                                                           PASSED with WARNING
Running validation_tests/papi_l2_dcr:                      
WARNING Line # 188 Warning: Error too high
                                                           PASSED with WARNING
Running validation_tests/papi_l2_dcw:                      SKIPPED
Running validation_tests/papi_ld_ins:                      SKIPPED
Running validation_tests/papi_ref_cyc:                     SKIPPED
Running validation_tests/papi_sp_ops:                      SKIPPED
Running validation_tests/papi_sr_ins:                      SKIPPED
Running validation_tests/papi_tot_cyc:                     PASSED
Running validation_tests/papi_tot_ins:                     PASSED

Running C Tests

Running ctests/all_events:                                 PASSED
Running ctests/all_native_events:                          PASSED
Running ctests/attach2:                                    PASSED
Running ctests/attach3:                                    PASSED
Running ctests/attach_cpu:                                 PASSED
Running ctests/attach_cpu_sys_validate:                    PASSED
Running ctests/attach_cpu_validate:                        PASSED
Running ctests/attach_validate:                            PTRACE_TRACEME: Success
PASSED
Running ctests/branches:                                   PASSED
Running ctests/byte_profile:                               PASSED
Running ctests/calibrate:                                  PASSED
Running ctests/case1:                                      PASSED
Running ctests/case2:                                      PASSED
Running ctests/child_overflow:                             PASSED
Running ctests/clockres_pthreads:                          PASSED
Running ctests/cmpinfo:                                    PASSED
Running ctests/code2name:                                  PASSED
Running ctests/data_range:                                 SKIPPED
Running ctests/derived:                                    PASSED
Running ctests/describe:                                   PASSED
Running ctests/destroy:                                    PASSED
Running ctests/disable_component:                          PASSED
Running ctests/dmem_info:                                  PASSED
Running ctests/earprofile:                                 SKIPPED
Running ctests/eventname:                                  PASSED
Running ctests/exec:                                       PASSED
Running ctests/exec2:                                      PASSED
Running ctests/exec_overflow:                              PASSED
Running ctests/exeinfo:                                    PASSED
Running ctests/failed_events:                              PASSED
Running ctests/first:                                      PASSED
Running ctests/fork:                                       PASSED
Running ctests/fork2:                                      PASSED
Running ctests/forkexec:                                   PASSED
Running ctests/forkexec2:                                  PASSED
Running ctests/forkexec3:                                  PASSED
Running ctests/forkexec4:                                  PASSED
Running ctests/fork_overflow:                              PASSED
Running ctests/get_event_component:                        PASSED
Running ctests/hwinfo:                                     PASSED
Running ctests/inherit:                                    PASSED
Running ctests/johnmay2:                                   PASSED
Running ctests/krentel_pthreads:                           PASSED
Running ctests/kufrin:                                     PASSED
Running ctests/locks_pthreads:                             PASSED
Running ctests/low-level:                                  PASSED
Running ctests/max_multiplex:                              PASSED
Running ctests/memory:                                     PASSED
Running ctests/mendes-alt:                                 PASSED
Running ctests/mpifirst:                                   PASSED
Running ctests/multiattach:                                PASSED
Running ctests/multiattach2:                               PASSED
Running ctests/multiplex1:                                 PASSED
Running ctests/multiplex1_pthreads:                        PASSED
Running ctests/multiplex2:                                 PASSED
Running ctests/multiplex3_pthreads:                        PASSED
Running ctests/omp_hl:                                     PASSED
Running ctests/overflow:                                   PASSED
Running ctests/overflow2:                                  PASSED
Running ctests/overflow3_pthreads:                         PASSED
Running ctests/overflow_allcounters:                       PASSED
Running ctests/overflow_force_software:                    WARNING: Software Overflow occurring but suspiciously low
PASSED
Running ctests/overflow_index:                             PASSED
Running ctests/overflow_one_and_read:                      PASSED
Running ctests/overflow_pthreads:                          PASSED
Running ctests/overflow_single_event:                      PASSED
Running ctests/overflow_twoevents:                         PASSED
Running ctests/p4_lst_ins:                                 SKIPPED
Running ctests/profile:                                    
WARNING Line # 82 Warning: PAPI_profil PAPI_PROFIL_RANDOM not supported
                                                           PASSED with WARNING
Running ctests/profile_force_software:                     PASSED
Running ctests/profile_pthreads:                           PASSED
Running ctests/profile_twoevents:                          PASSED
Running ctests/pthread_hl:                                 PASSED
Running ctests/pthrtough:                                  PASSED
Running ctests/realtime:                                   PASSED
Running ctests/remove_events:                              PASSED
Running ctests/reset:                                      PASSED
Running ctests/reset_multiplex:                            PASSED
Running ctests/sdsc2-mpx:                                  PASSED
Running ctests/sdsc2-mpx-noreset:                          PASSED
Running ctests/sdsc4-mpx:                                  PASSED
Running ctests/sdsc-mpx:                                   PASSED
Running ctests/second:                                     PASSED
Running ctests/serial_hl:                                  PASSED
Running ctests/serial_hl_ll_comb:                          SKIPPED
Running ctests/shlib:                                      FAILED!!!
Line # 124 Error: dlsym
Some tests require special hardware, permissions, OS, compilers
or library versions. PAPI may still function perfectly on your 
system without the particular feature being tested here.       
Running ctests/sprofile:                                   PASSED
Running ctests/system_child_overflow:                      PASSED
Running ctests/system_overflow:                            PASSED
Running ctests/tenth:                                      SKIPPED
Running ctests/thrspecific:                                PASSED
Running ctests/version:                                    PASSED
Running ctests/virttime:                                   PASSED
Running ctests/zero:                                       PASSED
Running ctests/zero_attach:                                PASSED
Running ctests/zero_flip:                                  PASSED
Running ctests/zero_fork:                                  PASSED
Running ctests/zero_named:                                 PASSED
Running ctests/zero_omp:                                   PASSED
Running ctests/zero_pthreads:                              PASSED
Running ctests/zero_shmem:                                 SKIPPED
Running ctests/zero_smp:                                   PASSED

Running Fortran Tests


Running Component Tests

Running components/perf_event/tests/broken_events:
                                                           SKIPPED
Running components/perf_event/tests/nmi_watchdog:
                                                           PASSED
Running components/perf_event/tests/perf_event_offcore_response:
                                                           SKIPPED
Running components/perf_event/tests/perf_event_system_wide:
                                                           PASSED
Running components/perf_event/tests/perf_event_user_kernel:
                                                           PASSED
Running components/perf_event_uncore/tests/perf_event_uncore:
                                                           SKIPPED
Running components/perf_event_uncore/tests/perf_event_uncore_attach:
                                                           SKIPPED
Running components/perf_event_uncore/tests/perf_event_uncore_multiple:
                                                           SKIPPED
Running components/perf_event_uncore/tests/perf_event_amd_northbridge:
                                                           SKIPPED
Running components/perf_event_uncore/tests/perf_event_uncore_cbox:
                                                           SKIPPED
Running components/sysdetect/tests/query_device_simple:
                                                           PASSED
Running components/sysdetect/tests/query_device_mpi:
                                                           PASSED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment