PAPIF man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

PAPIF(3)			     PAPI			      PAPIF(3)

NAME
       PAPIF - Performance Application Programming Interface (Fortran)

SYNOPSIS
       #include fpapi.h
       call PAPIF_function_name(arg1,arg2,...,check")

DESCRIPTION
       Fortran	Calling	 Interface The PAPI library comes with a specific For‐
       tran library interface.	The  Fortran  interface	 covers	 the  complete
       library	with a few minor exceptions. Functions returning C pointers to
       structures, such as PAPI_get_opt(3) and	PAPI_get_executable_info(3)  ,
       are  either  not	 implemented  in the Fortran interface, or implemented
       with different calling semantics.

       Semantics for specific functions in the	Fortran	 interface  are	 docu‐
       mented  on  the	equivalent  C man page. For example, the semantics and
       functionality of PAPIF_accum are covered in the PAPI_accum(3) man page.

       For most architectures the following relation holds between the pseudo-
       types listed and Fortran variable types.

       ┌───────────────┬──────────────────────────────┬───────────────────────┐
       │ Pseuodo-type  │	 Fortran type	      │	     Description      │
       │C_INT	       │ INTEGER		      │ Default Integer type  │
       │C_FLOAT	       │ REAL			      │ Default Real type     │
       │C_LONG_LONG    │ INTEGER*8		      │ Extended size integer │
       │C_STRING       │ CHARACTER*(PAPI_MAX_STR_LEN) │ Fortran string	      │
       │C_INT FUNCTION │ EXTERNAL INTEGER FUNCTION    │ Fortran	     function │
       │	       │			      │ returning     integer │
       │	       │			      │ result		      │
       │C_INT(*)       │ Array of corresponding type  │ C_TYPE(*)  refers  to │
       │C_FLOAT(*)     │			      │ an array of the	 cor‐ │
       │C_LONG_LONG(*) │			      │ responding     Fortan │
       │	       │			      │ type.  The length  of │
       │	       │			      │ the  array  needed is │
       │	       │			      │ context dependent. It │
       │	       │			      │ may	 be	 e.g. │
       │	       │			      │ PAPI_MAX_HWCTRS	   or │
       │	       │			      │ PAPIF_num_counters.   │
       └───────────────┴──────────────────────────────┴───────────────────────┘

       Array  arguments	 must  be  of  sufficent size to hold the input/output
       from/to the subroutine for predictable behavior. The  array  length  is
       indicated either by the accompanying argument or by internal PAPI defi‐
       nitions. For details on this see the corresponding C routine.

       Subroutines accepting C_STRING as an argument are on  most  implementa‐
       tions  capable  of  reading  the character string length as provided by
       Fortran. In these implementations the  string  is  truncated  or	 space
       padded  as necessary. For other implementations the length of the char‐
       acter array is assumed to be of sufficient size.	 No  character	string
       longer than PAPI_MAX_STR_LEN is returned by the PAPIF interface.

RETURN VALUES
       The return code of the corresponding C routine is returned in the argu‐
       ment check in the Fortran interface.

SEE ALSO
	The PAPI Interface: PAPI(3)

PAPI Programmer's Reference	September, 2004			      PAPIF(3)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net