Blame man/man3/PAPI_get_hardware_info.3
|
Packit |
577717 |
.TH "PAPI_get_hardware_info" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
|
|
Packit |
577717 |
.ad l
|
|
Packit |
577717 |
.nh
|
|
Packit |
577717 |
.SH NAME
|
|
Packit |
577717 |
PAPI_get_hardware_info \-
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
get information about the system hardware
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.SH SYNOPSIS
|
|
Packit |
577717 |
.br
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.SH "Detailed Description"
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.nf
|
|
Packit |
577717 |
In C, this function returns a pointer to a structure containing information about the hardware on which the program runs.
|
|
Packit |
577717 |
In Fortran, the values of the structure are returned explicitly.
|
|
Packit |
577717 |
|
|
Packit |
577717 |
@retval PAPI_EINVAL
|
|
Packit |
577717 |
One or more of the arguments is invalid.
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.fi
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.nf
|
|
Packit |
577717 |
@note The C structure contains detailed information about cache and TLB sizes.
|
|
Packit |
577717 |
This information is not available from Fortran.
|
|
Packit |
577717 |
|
|
Packit |
577717 |
@par Examples:
|
|
Packit |
577717 |
.fi
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.nf
|
|
Packit |
577717 |
const PAPI_hw_info_t *hwinfo = NULL;
|
|
Packit |
577717 |
if (PAPI_library_init(PAPI_VER_CURRENT) != PAPI_VER_CURRENT)
|
|
Packit |
577717 |
exit(1);
|
|
Packit |
577717 |
if ((hwinfo = PAPI_get_hardware_info()) == NULL)
|
|
Packit |
577717 |
exit(1);
|
|
Packit |
577717 |
printf("%d CPUs at %f Mhz\&.\en",hwinfo->totalcpus,hwinfo->mhz);
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.fi
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
\fBSee Also:\fP
|
|
Packit |
577717 |
.RS 4
|
|
Packit |
577717 |
\fBPAPI_hw_info_t\fP
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
\fBPAPI_get_executable_info\fP, \fBPAPI_get_opt\fP, \fBPAPI_get_dmem_info\fP, \fBPAPI_library_init\fP
|
|
Packit |
577717 |
.RE
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
|
|
Packit |
577717 |
|
|
Packit |
577717 |
.SH "Author"
|
|
Packit |
577717 |
.PP
|
|
Packit |
577717 |
Generated automatically by Doxygen for PAPI from the source code\&.
|