Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

problem with MKL service functions

stansy
Beginner
410 Views
MKL_Get_Max_Cpu_Frequency() and MKL_Get_Clocks_Frequency() can not compile using the Intel Compser XE 2011 (not included in mkl_service.h). The problem does not occur for other service functions including MKL_Get_Cpu_Frequency (). Both functions can be compiled only using VS C++.

I do not understand why

Regards,
Stan
0 Kudos
2 Replies
barragan_villanueva_
Valued Contributor I
410 Views
Stan,

You wrote: "can not compile using the Intel Composer XE 2011 (not included in mkl_service.h)"

Pleasebe surethat MKL environment for Composer XE 2011 was set correctly using mklvars*

In mkl_service.h they are defined as follows (please check):

_Mkl_Api(double,MKL_Get_Max_Cpu_Frequency,(void)) /* get max CPU frequency in GHz */
#define mkl_get_max_cpu_frequency MKL_Get_Max_Cpu_Frequency

_Mkl_Api(double,MKL_Get_Clocks_Frequency,(void)) /* get clocks frequency in GHz */
#define mkl_get_clocks_frequency MKL_Get_Clocks_Frequency

BTW, what API do you use and for what architecture?
I mean, cdecl/stdcall IA32 or Intel64.

0 Kudos
stansy
Beginner
410 Views
Hi

Many thanks Victor for your note. Theyhelped me find the right solution.

My VS2010 uses two mkl_service.hin directories: (1) ../ComposerXE-2011/mkl/include/ and (2)../ComposerXE-2001 SP1/mkl/include/.
In my environment settings first is used for Intel compiler and mkl_service.h does not contain max_cpu and clock_freq functions.

I used Intel64 and ia64 API.

Regards,
Stan
0 Kudos
Reply