Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28446 Discussions

mixed C++ fortran progamming using mkl

iginopitacco
Beginner
363 Views
This message has been moved to the Intel Math Kenel Library forum which launched on Dec. 18, 2003.
0 Kudos
1 Reply
ys3
Beginner
363 Views
Dear Customer,

I talked this issue with MKL engineering team, here is the response:

The user needs to control the interfaces from his program. He cannot mix and match into the library.

Mkl_s has both decorated and undecorated names in it. So, for instance, in the case of dgemm, there is both _DGEMM and _DGEMM@60. In mkl_c.lib there is also DGEMM. But the first is CVF default (nearly stdcall) and the second is cdecl. First of all there would be multiple defines. Second, you can't call cdecl from stdcall or the other way around.

The default interface with the Intel compiler is cdecl, so he can call the functions from Intel C, Intel Fortran and MSVC in mkl_c. Then he would use mkl_c_dll.lib.

If you have any further questions regarding this issue, please contact us for MKL support via Intel Premier Support at https://premier.intel.com

Thanks,
Ying S
Intel Customer Support
For MKL on-line help, please visit <>
For general support information: <>
0 Kudos
Reply