<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Linking MKL in Visual Studio in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905905#M11634</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
To make "mkl_dfti" module availableyou can add INCLUDE "mkl_dfti.f90" statement in your source.&lt;BR /&gt;&lt;BR /&gt;MKL include and library directories should be set automatically in build environment ("Tools-&amp;gt;Options-&amp;gt;Intel Visual Fortran-&amp;gt;Compilers" page, "Includes" and "Libraries" fields). You can see actual build environmentin the generated "BuildLog.htm" file if "Tools-&amp;gt;Options-&amp;gt;Intel Visual Fortran-&amp;gt;General-&amp;gt;Show environment in log" is set.&lt;BR /&gt;&lt;BR /&gt;If you set "Fortran-&amp;gt;Libraries-&amp;gt;Use Intel Math Kernel Library" to appropriate value, list of MKL libraries is automatically passed to the linker. &lt;BR /&gt;&lt;BR /&gt;Setting "Linker-&amp;gt;Optimization-&amp;gt;Interprocedural Optimization" to "No" value reduces linking time.</description>
    <pubDate>Thu, 29 Oct 2009 08:26:40 GMT</pubDate>
    <dc:creator>Vadim_M_Intel</dc:creator>
    <dc:date>2009-10-29T08:26:40Z</dc:date>
    <item>
      <title>Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905900#M11629</link>
      <description>Hi,&lt;BR /&gt;can you please resolve my problem in using MKL for the first time. I am a newbie and lost.&lt;BR /&gt;&lt;BR /&gt;I am trying to use the FFT transform in fortran, building in Visual Studio under Vistax64. The code is taken from the MKL manual, with adding one "use" statement in the beginning (does not help):&lt;BR /&gt;&lt;BR /&gt;!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;Use MKL_DFTI&lt;BR /&gt;Complex :: X_in(32)&lt;BR /&gt;Complex :: X_out(32)&lt;BR /&gt;type(DFTI_DESCRIPTOR), POINTER :: My_Desc1_Handle, My_Desc2_Handle&lt;BR /&gt;Integer :: Status&lt;BR /&gt;&lt;BR /&gt;X_in = 1.&lt;BR /&gt;&lt;BR /&gt;Status = DftiCreateDescriptor( My_Desc1_Handle, DFTI_SINGLE,DFTI_COMPLEX, 1, 32 )&lt;BR /&gt;Status = DftiSetValue( My_Desc1_Handle, DFTI_PLACEMENT, DFTI_NOT_INPLACE)&lt;BR /&gt;Status = DftiCommitDescriptor( My_Desc1_Handle )&lt;BR /&gt;Status = DftiComputeForward( My_Desc1_Handle, X_in, X_out )&lt;BR /&gt;Status = DftiFreeDescriptor(My_Desc1_Handle)&lt;BR /&gt;&lt;BR /&gt;stop&lt;BR /&gt;end&lt;BR /&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;The linker does not recognise the FFT subroutines:&lt;BR /&gt;&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol dfti_commit_descriptor_external referenced in function MAIN__	&lt;BR /&gt;Error	2	 error LNK2019: unresolved external symbol dfti_set_value_intval referenced in function MAIN__	&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol dfti_commit_descriptor_external referenced in function MAIN__	&lt;BR /&gt;Error	4	 error LNK2019: unresolved external symbol dfti_compute_forward_cc referenced in function MAIN__	&lt;BR /&gt;Error	5	 error LNK2019: unresolved external symbol dfti_free_descriptor_external referenced in function MAIN__	&lt;BR /&gt;Error	6	 error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup	LIBCMT.lib(wincrt0.obj)	&lt;BR /&gt;Error	7	 fatal error LNK1120: 6 unresolved externals	x64\Release\DiffuseConvolutions-IF.exe	&lt;BR /&gt;&lt;BR /&gt;The following does not help: (all actions according to advice @ various internet cites)&lt;BR /&gt; - inserting the file mkl_dfti.f90 into either the resource or the header files of the project;&lt;BR /&gt; - Project-&amp;gt;Properties -&amp;gt; :&lt;BR /&gt; Fortran -&amp;gt; General -&amp;gt; Additional Include Directories -&amp;gt; C:\Program Files (x86)\Intel\Compiler\11.1\046\mkl\include&lt;BR /&gt; Linker -&amp;gt; General -&amp;gt; Additional include directories -&amp;gt; C:\Program Files (x86)\Intel\Compiler\11.1\046\mkl\ia32\lib&lt;BR /&gt;Linker -&amp;gt; Input -&amp;gt; Additional dependencies -&amp;gt; mkl_cdft_core.lib or whatever other lib files I try&lt;BR /&gt;&lt;BR /&gt;How to make it work??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unrelated question. The MKL manual gives subroutines FFT subroutines working with real and complex data, but does not mention working with double-precision. Is that done by the same subroutines?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;evgeny&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Oct 2009 21:08:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905900#M11629</guid>
      <dc:creator>evgeny_shapirogmail_</dc:creator>
      <dc:date>2009-10-21T21:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905901#M11630</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;evgeny,&lt;BR /&gt;it seems to me you can try to add mkl_dfti.f90 file ( MKLROOTinclude ) into your project.&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2009 18:22:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905901#M11630</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-10-22T18:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905902#M11631</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;evgeny,&lt;BR /&gt;it seems to me you can try to add mkl_dfti.f90 file ( MKLROOTinclude ) into your project.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I went through this same thing, and adding the mkl_dfti.f90 file to my project worked. It does seem like a not-very-elegant thing to have to do, however.&lt;BR /&gt;&lt;BR /&gt;Although the compile works, linking for me takes several minutes as soon as I call the "DftiCreateDescriptor" function/subroutine. Have you or anyone else found this also? I've just started a discussion thread on this one in the MKL forum. I've had one going for about a month on the Ifort Forum called "Linking takes too long".&lt;BR /&gt;&lt;BR /&gt;Evan&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Oct 2009 18:58:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905902#M11631</guid>
      <dc:creator>evankw21</dc:creator>
      <dc:date>2009-10-28T18:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905903#M11632</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi Evan,&lt;BR /&gt;&lt;BR /&gt;This was probably not what you wantedwhen youadded ia32 to the list of library directories for your x64 project. Try em64tlib instead.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Dima</description>
      <pubDate>Thu, 29 Oct 2009 05:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905903#M11632</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2009-10-29T05:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905904#M11633</link>
      <description>&lt;BR /&gt;Evgeny,&lt;BR /&gt;&lt;BR /&gt;As for your question:&lt;BR /&gt; "The MKL manual gives subroutines FFT subroutines working with real and complex data, but does not mentionworking with double-precision. Is that done by the same subroutines?"&lt;BR /&gt;&lt;BR /&gt;In order to create DFTI descriptor for double-precision data you need DFTI_DOUBLE.&lt;BR /&gt;For example:&lt;BR /&gt; Status = DftiCreateDescriptor( My_Desc1_Handle, DFTI_DOUBLE, DFTI_COMPLEX, 1, 32 )&lt;BR /&gt;and use the same DFTI compute functions as for single precision&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;-- Victor&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Oct 2009 06:52:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905904#M11633</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2009-10-29T06:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Linking MKL in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905905#M11634</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
To make "mkl_dfti" module availableyou can add INCLUDE "mkl_dfti.f90" statement in your source.&lt;BR /&gt;&lt;BR /&gt;MKL include and library directories should be set automatically in build environment ("Tools-&amp;gt;Options-&amp;gt;Intel Visual Fortran-&amp;gt;Compilers" page, "Includes" and "Libraries" fields). You can see actual build environmentin the generated "BuildLog.htm" file if "Tools-&amp;gt;Options-&amp;gt;Intel Visual Fortran-&amp;gt;General-&amp;gt;Show environment in log" is set.&lt;BR /&gt;&lt;BR /&gt;If you set "Fortran-&amp;gt;Libraries-&amp;gt;Use Intel Math Kernel Library" to appropriate value, list of MKL libraries is automatically passed to the linker. &lt;BR /&gt;&lt;BR /&gt;Setting "Linker-&amp;gt;Optimization-&amp;gt;Interprocedural Optimization" to "No" value reduces linking time.</description>
      <pubDate>Thu, 29 Oct 2009 08:26:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-MKL-in-Visual-Studio/m-p/905905#M11634</guid>
      <dc:creator>Vadim_M_Intel</dc:creator>
      <dc:date>2009-10-29T08:26:40Z</dc:date>
    </item>
  </channel>
</rss>

