Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 3/22/2024
Public
Document Table of Contents

mkl_get_cpu_frequency

Returns the current CPU frequency value in GHz.

Syntax

doublemkl_get_cpu_frequency(void);

Include Files

  • mkl.h

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