1 |
PROGRAM TESTPAPIEVENTS |
PROGRAM TESTPAPIEVENTS |
2 |
#include <fpapi.h> |
#include <fpapi.h> |
3 |
INTEGER PAPIF_num_counters |
CHARACTER*13 EventName |
|
EXTERNAL PAPIF_num_counters |
|
|
CHARACTER(13) EventName |
|
4 |
INTEGER nmaxevents |
INTEGER nmaxevents |
5 |
PARAMETER (nmaxevents = 18) |
PARAMETER (nmaxevents = 18) |
6 |
INTEGER EventCode(nmaxevents) |
INTEGER EventCode(nmaxevents) |
23 |
WRITE(*,*) "PAPI Library Version is out of Date" |
WRITE(*,*) "PAPI Library Version is out of Date" |
24 |
CALL ABORT |
CALL ABORT |
25 |
endif |
endif |
26 |
neventsmax = PAPIF_num_counters(check) |
call PAPIF_num_counters(neventsmax) |
27 |
if (neventsmax .GT. nmaxevents) then |
if (neventsmax .GT. nmaxevents) then |
28 |
WRITE(*,*) "Fix the nmaxevents in the code to ", neventsmax |
WRITE(*,*) "Fix the nmaxevents in the code to ", neventsmax |
29 |
CALL ABORT |
CALL ABORT |