Returns CPU frequency value in GHz.
Fortran:
freq = mkl_get_cpu_frequency()
C:
freq = mkl_get_cpu_frequency();
The FORTRAN 77 interface is specified in the mkl_service.fi include file and the C interface is specified in the mkl_service.h include file.
Name |
Type |
Description |
---|---|---|
freq |
FORTRAN: DOUBLE PRECISION C: double |
CPU frequency value in GHz |
The function mkl_get_cpu_frequency returns the CPU frequency in GHz. This value is used by second /dsecnd functions while converting CPU clocks into seconds.
Obtaining a frequency may take some time when second /dsecnd/mkl_get_cpu_frequency is called for the first time. To avoid it, call mkl_set_cpu_frequency before setting the exact CPU frequency if it is known in advance.
getcpufrequency is an obsolete name for the mkl_get_cpu_frequency function that is referenced in the library for back compatibility purposes but is deprecated and subject to removal in subsequent releases.
Copyright © 1994 - 2010, Intel Corporation. All rights reserved.