Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

installing and using mkl

mielke
Beginner
656 Views
I just installed the evaluation MKL. I'm using IFC 7 and Visual Studio . Net 2002.
I'm trying call scfft1d (fft routine) from my fortran project, and I receive: error LNK2019: unresolved external symbol _scfft1d referenced in function _main.
My project file looks like this:
program mike
variables
external scfft1d
program body
.
.
call scfft1d(...)
end program mike

I assume the compiler is not seeing the mkl library. I've tried to set the library path in the linker, as well as the ifcvars.bat file. Clearly I've not done this correctly. I'm new to the Visual Studio environment, and I'm grateful for any advice to get up and running with mkl.
0 Kudos
2 Replies
kdkeefer
Beginner
656 Views
Mielke,
First, make sure that the MKL include file is listed in the ifc.cfg default option file for IF7. That takes a
-I"path/MKL/include" line in the file. Second, make sure the library files (there are two of three of them for the IA32 version, depending on whether the libs are loaded statically or as DLL's. One is a main driver file and the others kernals for P4's and P3's.) I'm sure there is some way to specify these in ifc.cfg. Since I'm dumb, I just copied the files into the folder with the rest of the IF7 library files. Crude, but effective. Good luck.
Keith
0 Kudos
mielke
Beginner
656 Views
Keith,
Your suggestions worked for me, and I'm up and running. Thanks.
0 Kudos
Reply