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

How to compile a mkl code under windows 10?

cean
New Contributor II
1,327 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
1,276 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-options.html


Best Regards,

Shanmukh.SS


View solution in original post

0 Kudos
3 Replies
ShanmukhS_Intel
Moderator
1,277 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-options.html


Best Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
1,218 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


0 Kudos
ShanmukhS_Intel
Moderator
1,171 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


0 Kudos
Reply