mkl_set_cpu_frequency

Sets CPU frequency value in GHz.

Syntax

Fortran:

call mkl_set_cpu_frequency( freq )

C:

mkl_set_cpu_frequency( &freq );

Include Files

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.

Input Parameters

Name

Type

Description

freq

FORTRAN: DOUBLE PRECISION

C: double

CPU frequency value in GHz

Description

The mkl_set_cpu_frequency function sets the CPU frequency in GHz, used then by second /dsecnd functions while converting CPU clocks into seconds. Setting the exact CPU frequency is useful to bypass obtaining a frequency by mkl_get_cpu_frequency.

Initially, CPU frequency value is unset. The CPU frequency value can be set only by mkl_set_cpu_frequency call, or during the first call of mkl_get_cpu_frequency, if mkl_set_cpu_frequency has not been called before. Calling mkl_set_cpu_frequency with a special parameter freq = -1.0 forces the CPU frequency value be unset.

Note that the CPU frequency of your machine is not actually changed when the mkl_set_cpu_frequency subroutine is called.

Note iconNote

setcpufrequency is an obsolete name for the mkl_set_cpu_frequency function that is referenced in the library for back compatibility purposes but is deprecated and subject to removal in subsequent releases.

See Also

Submit feedback on this help topic

Copyright © 1994 - 2010, Intel Corporation. All rights reserved.