File: papi_version.c

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (36 lines) | stat: -rw-r--r-- 923 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
  * file papi_version.c
  *	@brief papi_version utility.
  * @page papi_version
  *	@section Name
  *	papi_version - provides version information for papi.
  *
  *	@section Synopsis
  *	papi_version
  *
  *	@section Description
  *	papi_version is a PAPI utility program that reports version
  *	information about the current PAPI installation.
  *
  *	@section Bugs
  *	There are no known bugs in this utility.
  *	If you find a bug, it should be reported to the PAPI Mailing List at <ptools-perfapi@icl.utk.edu>.
  */
/* This utility displays the current PAPI version number */

#include <stdlib.h>
#include <stdio.h>
#include "papi.h"

int
main( int argc, char **argv )
{
	(void) argc;
	(void) argv;

	printf( "PAPI Version: %d.%d.%d.%d\n", PAPI_VERSION_MAJOR( PAPI_VERSION ),
			PAPI_VERSION_MINOR( PAPI_VERSION ),
			PAPI_VERSION_REVISION( PAPI_VERSION ),
			PAPI_VERSION_INCREMENT( PAPI_VERSION ) );
	return 0;
}