Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6435 Discussions

How to compile a mkl code under windows 10?

cean
New Contributor I
309 Views

Hi,

 

I am trying to compile the code.f90 from here Problems with MKL using new versions of Intel compiler - Intel Community

It Use MKL_DFTI.

First I compiled mkl_dfti.f90 with:

ifort -c d:/oneapi/mkl/latest/include/mkl_dfti.f90

 I got mkl_dfti.mod and mkl_dft_type.mode. Then:

ifort /mkl code.f90

 The error is unknown option '/mkl' and unresolved external symbols.

What I am wrong?

Thanks for help.

cheers

cean

0 Kudos
1 Solution
ShanmukhS_Intel
Moderator
258 Views

Hi,


Thanks for reaching out to us.


We see that you are trying to use /mkl command for which you are facing the error.


Instead of ifort /mkl code.f90, use "ifort /Qmkl code.f90"


Kindly let us know if you still face the issue.


Please refer to below link regarding Qmkl options and link line advisor for your reference.


https://software.intel.com/content/www/us/en/develop/articles/using-mkl-in-intel-compiler-mkl-qmkl-o...


Best Regards,

Shanmukh.SS


View solution in original post

3 Replies
ShanmukhS_Intel
Moderator
259 Views

Hi,


Thanks for reaching out to us.


We see that you are trying to use /mkl command for which you are facing the error.


Instead of ifort /mkl code.f90, use "ifort /Qmkl code.f90"


Kindly let us know if you still face the issue.


Please refer to below link regarding Qmkl options and link line advisor for your reference.


https://software.intel.com/content/www/us/en/develop/articles/using-mkl-in-intel-compiler-mkl-qmkl-o...


Best Regards,

Shanmukh.SS


View solution in original post

ShanmukhS_Intel
Moderator
200 Views

Hi,


Due to technical issues, earlier reply got deleted and we see that you marked it as solution.


Kindly mark it as "Accept as solution" again, so that other users can get help from this.


Best Regards,

Shanmukh.SS


ShanmukhS_Intel
Moderator
153 Views

Hi,


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Best Regards,

Shanmukh.SS


Reply