Go to the source code of this file.
◆ PAPI_EVENTS_IN_DERIVED_EVENT
| #define PAPI_EVENTS_IN_DERIVED_EVENT 8 /* to satisfy papi_preset.h */ |
◆ deftype_t
| Enumerator |
|---|
| CDEFINE | |
| F77DEFINE | |
| F90DEFINE | |
Definition at line 191 of file genpapifdef.c.
◆ createDef()
Definition at line 231 of file genpapifdef.c.
241 for (
i = 0;
i < j;
i++ )
static void define_val(const char *val_string, int val, enum deftype_t deftype)
◆ define_val()
| static void define_val |
( |
const char * |
val_string, |
|
|
int |
val, |
|
|
enum deftype_t |
deftype |
|
) |
| |
|
static |
Definition at line 196 of file genpapifdef.c.
210 if ( ( (
unsigned )
val ) == 0x80000000 ) {
211 sprintf( value,
"((-2147483647) - 1)" );
213 sprintf( value,
"%d",
val );
218 printf(
"#define %-18s %s\n", val_string, value );
221 printf(
" INTEGER %-18s\n PARAMETER (%s=%s)\n", val_string,
225 printf(
" INTEGER, PARAMETER :: %-18s = %s\n", val_string, value );
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 247 of file genpapifdef.c.
253 if ( strcmp( argv[1],
"-f77" ) == 0 ) {
256 }
else if ( strcmp( argv[1],
"-f90" ) == 0 ) {
259 }
else if ( strcmp( argv[1],
"-c" ) == 0 ) {
263 fprintf( stderr,
"Usage: %s [ -c | -f77 | -f90 ]\n", argv[0] );
270 (
"%c\n%c This file contains defines required by the PAPI Fortran interface.\n",
272 printf(
"%c It is automagically generated by genpapifdef.c\n",
274 printf(
"%c DO NOT modify its contents and expect the changes to stick.\n",
276 printf(
"%c Changes MUST be made in genpapifdef.c instead.\n%c\n\n",
283 printf(
"\n%c\n%c PAPI preset event values.\n%c\n\n",
comment_char,
static void define_val(const char *val_string, int val, enum deftype_t deftype)
#define PAPI_MAX_PRESET_EVENTS
static void createDef(char *title, const hwi_describe_t *descr, int size, enum deftype_t deftype)
hwi_presets_t _papi_hwi_presets[PAPI_MAX_PRESET_EVENTS]
const hwi_describe_t _papi_def[]
◆ _papi_def
◆ comment_char