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

Subject: Trouble Linking MKL with Intel Fortune IFX Compulsory:

Kumkum
Einsteiger
815Aufrufe


Hello,
I am trying to link my Fortran program with Intel Math Kernel Library (MKL) using the new IFX compiler, but I am running into unresolved external errors.
Could someone guide me through the correct steps or share a simple example makefile or Visual Studio project settings for this configuration?
Any troubleshooting tips would also be appreciated. Thanks!

0 Kudos
2 Antworten
Steve_Lionel
Geehrter Beitragender III
788Aufrufe

You will need to show us the complete messages for the unresolved externals, including the name of the missing symbol. You may get more comprehensive help in the MKL forum.

Ron_Green
Moderator
779Aufrufe
Configuring a Visual Studio project to use Intel oneAPI Math Kernel Library (oneMKL) involves adjusting several project settings.
1. Enabling oneMKL:
  • Open your project in Visual Studio.
  • Right-click on your project in Solution Explorer and select Properties.
  • In the Configuration Properties, navigate to Fortran > Libraries (if using Fortran) or C/C++ > Libraries (if using C/C++).
  • Select Use Intel Math Kernel Library and choose the desired oneMKL linking method (e.g., "Parallel" or "Sequential").
2. Adjusting Compiler Options (if using Intel Compiler):
  • If you are using the Intel C++ or Fortran Compiler, ensure it is selected for your project.
  • The /Qmkl option (for C++) or -qmkl option (for Fortran) can be used to automatically link with oneMKL libraries. This option can be specified in the compiler's command line or within the Visual Studio project settings under Configuration Properties > C/C++ > Command Line or Fortran > Command Line.
Antworten