<?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: fftw3xf_intel conflicts with other libs in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869241#M8308</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Damien,&lt;BR /&gt;&lt;BR /&gt;I think you just need more libraries in step 5 (the second step 5 :)). To verify if this is the case, please try adding the following set of libraries there:&lt;BR /&gt;mkl_intel_c.lib&lt;BR /&gt;mkl_sequential.lib&lt;BR /&gt;mkl_core.lib&lt;BR /&gt;&lt;BR /&gt;Please note that this will give you the sequential performance.&lt;BR /&gt;In general, to find out which libraries are required, please refer to our link line advisor:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;-Vladimir&lt;BR /&gt;</description>
    <pubDate>Sat, 05 Dec 2009 13:04:02 GMT</pubDate>
    <dc:creator>Vladimir_Petrov__Int</dc:creator>
    <dc:date>2009-12-05T13:04:02Z</dc:date>
    <item>
      <title>fftw3xf_intel conflicts with other libs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869240#M8307</link>
      <description>Hi,&lt;BR /&gt;I'm trying to build a Fortran program which uses the FFTW routines from MKL. I'm under Windows XP32, Visual Studio 2008, Intel Fortran Compiler 11.1&amp;#0;51. &lt;BR /&gt;&lt;BR /&gt;I created a solution similar to the one sent by attachment (fftw_problem.zip) by Gennady Fedorov (Intel) in his reply to the following thread :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=65448" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=65448&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Since his solution is made for a 64-bit architecture, I adapted the solution for an IA-32 platform by following the steps summarized below:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;1) The same Fortran file is used&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; implicit none&lt;BR /&gt;!include "fftw3.f"&lt;BR /&gt; INCLUDE 'fftw3.f'&lt;BR /&gt; INCLUDE 'mkl_fftw_examples.fi'&lt;BR /&gt; &lt;BR /&gt;!!&lt;BR /&gt;!! &lt;BR /&gt;!!&lt;BR /&gt;&lt;BR /&gt; integer n&lt;BR /&gt; parameter (n=16)&lt;BR /&gt;&lt;BR /&gt; integer*8 plan, iplan&lt;BR /&gt;&lt;BR /&gt; double complex in, out&lt;BR /&gt; dimension in(N), out(N)&lt;BR /&gt;&lt;BR /&gt; integer i&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; print *,"n = ",n&lt;BR /&gt; print *,"input = "&lt;BR /&gt; do i=1,n&lt;BR /&gt; in(i) = (1.0, 0.0)&lt;BR /&gt; print *,in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; print *,"fftw_fwd = ",fftw_forward&lt;BR /&gt; print *,"fftw_bkwd = ",fftw_backward&lt;BR /&gt; print *,"fftw_estimate = ",fftw_estimate&lt;BR /&gt;&lt;BR /&gt;!call dfftw_plan_dft_1d(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call DFFTW_PLAN_DFT_1D(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call dfftw_plan_dft_1d(iplan,n,out,in,fftw_backward,FFTW_ESTIMATE)&lt;BR /&gt;&lt;BR /&gt; print *,"address of fwd plan = ",plan&lt;BR /&gt; print *,"address of bckwd plan = ",iplan&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(plan)&lt;BR /&gt;&lt;BR /&gt; print *, 'output after forward fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, out(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(iplan)&lt;BR /&gt;&lt;BR /&gt; print *, 'after inverse fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_destroy_plan(plan)&lt;BR /&gt; call dfftw_destroy_plan(iplan)&lt;BR /&gt; &lt;BR /&gt; end&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;2)&lt;/B&gt; I created the &lt;B&gt;fftw3xf_intel.lib&lt;/B&gt; with the command &lt;B&gt;nmake lib32&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;3)&lt;/B&gt; I created the project in VS2008 with the main Fortran file and the file &lt;B&gt;mkl_fftw_examples.fi&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;4)&lt;/B&gt; I added the following paths in the tab &lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;Fortran -&amp;gt; General -&amp;gt; Additional Include Directories&lt;/B&gt; : C:ProgramFilesIntelCompiler11.1&amp;#0;51mklinclude;C:ProgramFilesIntelCompiler11.1&amp;#0;51mklincludefftw;C: ProgramFilesIntelCompiler11.1&amp;#0;51libia32&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5) I added the path of the &lt;B&gt;fftw3xf_intel.lib&lt;/B&gt; in the tab &lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;Linker -&amp;gt; General -&amp;gt; Additional Library Directories&lt;/B&gt; : C:ProgramFilesIntelCompiler11.1&amp;#0;51mklia32lib&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5) I added &lt;B&gt;fftw3xf_intel.lib&lt;/B&gt; in the tab &lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;Linker -&amp;gt; Input -&amp;gt; Additional Dependencies&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to build i get the following errors:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------ Build started: Project: fftw3_windows, Configuration: Debug Win32 ------&lt;BR /&gt;Linking...&lt;BR /&gt;LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiCreateDescriptor_d_md referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiCreateDescriptor_d_1d referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiErrorClass referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiSetValue referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _MKL_Domain_Get_Max_Threads referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _MKL_Domain_Set_Num_Threads referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiCommitDescriptor referenced in function _fftw_plan_guru64_dft&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiComputeForward referenced in function _execute_fi&lt;BR /&gt;fftw3xf_intel.lib(fftw_plan_guru64_dft.obj) : error LNK2019: unresolved external symbol _DftiComputeBackward referenced in function _execute_bi&lt;BR /&gt;fftw3xf_intel.lib(fftw_version.obj) : error LNK2019: unresolved external symbol _DftiFreeDescriptor referenced in function _delete_plan&lt;BR /&gt;fftw3xf_intel.lib(fftw_malloc.obj) : error LNK2019: unresolved external symbol _MKL_malloc referenced in function _fftw_malloc&lt;BR /&gt;fftw3xf_intel.lib(fftw_free.obj) : error LNK2019: unresolved external symbol _MKL_free referenced in function _fftw_free&lt;BR /&gt;Debugfftw3_windows.exe : fatal error LNK1120: 12 unresolved externals&lt;BR /&gt;&lt;BR /&gt;Build log written to  "file://C:Intel_fftw3fftw3_windowsDebugBuildLog.htm"&lt;BR /&gt;fftw3_windows - 13 error(s), 1 warning(s)&lt;BR /&gt;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could someone please help me? I already thank you very much fo your kind support.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Damien&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2009 22:47:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869240#M8307</guid>
      <dc:creator>Damien_Desmidts</dc:creator>
      <dc:date>2009-12-04T22:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: fftw3xf_intel conflicts with other libs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869241#M8308</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Damien,&lt;BR /&gt;&lt;BR /&gt;I think you just need more libraries in step 5 (the second step 5 :)). To verify if this is the case, please try adding the following set of libraries there:&lt;BR /&gt;mkl_intel_c.lib&lt;BR /&gt;mkl_sequential.lib&lt;BR /&gt;mkl_core.lib&lt;BR /&gt;&lt;BR /&gt;Please note that this will give you the sequential performance.&lt;BR /&gt;In general, to find out which libraries are required, please refer to our link line advisor:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;-Vladimir&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Dec 2009 13:04:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869241#M8308</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2009-12-05T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: fftw3xf_intel conflicts with other libs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869242#M8309</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/93654"&gt;Vladimir Petrov (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; Damien,&lt;BR /&gt;&lt;BR /&gt;I think you just need more libraries in step 5 (the second step 5 :)). To verify if this is the case, please try adding the following set of libraries there:&lt;BR /&gt;mkl_intel_c.lib&lt;BR /&gt;mkl_sequential.lib&lt;BR /&gt;mkl_core.lib&lt;BR /&gt;&lt;BR /&gt;Please note that this will give you the sequential performance.&lt;BR /&gt;In general, to find out which libraries are required, please refer to our link line advisor:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;-Vladimir&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Dear Vladimir,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your support; now it builds perfectly! &lt;BR /&gt;&lt;BR /&gt;I tried to use the same project but without using MKL libraries and rather using import libraries created from precompiled DLL's on FFTW's site by means of the &lt;BR /&gt;&lt;BR /&gt;lib /def:libfftw3-3.def&lt;BR /&gt;lib /def:libfftw3f-3.def&lt;BR /&gt;lib /def:libfftw3l-3.def&lt;BR /&gt;&lt;BR /&gt;commands. &lt;BR /&gt;&lt;BR /&gt;However Intel Fortran fails to link it correctly and sends the following message :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------ Build started: Project: fftw, Configuration: Debug Win32 ------&lt;BR /&gt;Linking...&lt;BR /&gt;fftw3_test.obj : error LNK2019: unresolved external symbol _DFFTW_PLAN_DFT_1D referenced in function _MAIN__&lt;BR /&gt;fftw3_test.obj : error LNK2019: unresolved external symbol _DFFTW_EXECUTE referenced in function _MAIN__&lt;BR /&gt;fftw3_test.obj : error LNK2019: unresolved external symbol _DFFTW_DESTROY_PLAN referenced in function _MAIN__&lt;BR /&gt;Debugfftw.exe : fatal error LNK1120: 3 unresolved externals&lt;BR /&gt;&lt;BR /&gt;Build log written to  "file://C:fortranfftw3_VS2008fftw_fortranfftwfftwDebugBuildLog.htm"&lt;BR /&gt;fftw - 4 error(s), 0 warning(s)&lt;BR /&gt;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The same build error hapens if I use instead the libfftw.lib and fft3w.h generated when building fftw3 for VS2008 by means of Project Files downloaded from &lt;A href="http://www.fftw.org/install/windows.html" target="_blank"&gt;http://www.fftw.org/install/windows.html&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I guess some libraries are missing but which one should I add if I don't use the additional mkl_*.lib's from above? I don't think the precompiled DLL's or the libraries built with theProject Files from FFTW's webpage require the C++ Intel libraries or C++ Intel environment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you have any idea about the missing stuff?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Damien&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2009 17:34:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869242#M8309</guid>
      <dc:creator>Damien_Desmidts</dc:creator>
      <dc:date>2009-12-08T17:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: fftw3xf_intel conflicts with other libs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869243#M8310</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi Damien,&lt;BR /&gt;&lt;BR /&gt;It would be helpful if you posted the link line that produced the linker errors you mentioned, even though it is not related to MKL. Looks like fftw3-f.lib (or whatever the import library name is) is missing from the link line.&lt;BR /&gt;&lt;BR /&gt;By the way, in the release of MKL you use the library mkl_intel_c.libshould contain fftw3 Fortran wrappers (the symbols like _DFFTW_PLAN_DFT_1D), so that you don't need to build fftw3xf_intel.lib.&lt;BR /&gt;&lt;BR /&gt;Dima&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Dec 2009 05:47:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fftw3xf-intel-conflicts-with-other-libs/m-p/869243#M8310</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2009-12-11T05:47:22Z</dc:date>
    </item>
  </channel>
</rss>

