Intel® oneAPI Math Kernel Library Developer Reference - C

mkl_get_cpu_frequency

Returns the current CPU frequency value in GHz.

Syntax

doublemkl_get_cpu_frequency(void);

Include Files

Description

The function mkl_get_cpu_frequency returns the current CPU frequency in GHz.

Note

The returned value may vary from run to run if power management or Intel® Turbo Boost Technology is enabled.

Return Values

Name

Type

Description

freq

double

Current CPU frequency value in GHz