<?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 Right, please keep the mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143294#M26463</link>
    <description>&lt;P&gt;Right, please&amp;nbsp;keep the mkl_dfti.f90 was compiles separately.&amp;nbsp; For example, &amp;nbsp;the quick-and-dirty solution&amp;nbsp;may to&amp;nbsp;remove the INCLUDE 'mkl_dfti.f90' line from your source code, &amp;nbsp;to copy the mkl_dfti.f90 file to the source directory and add it in the your current Project.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 02:22:28 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2018-02-26T02:22:28Z</dc:date>
    <item>
      <title>'mkl_dfti.f90' module error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143292#M26461</link>
      <description>&lt;P&gt;I am trying to use intel mkl dft routines under windows/visual studio.&lt;BR /&gt;
	Running intel mkl DGEMM routine presents no problem (hence automatic linking via seems to work). My problem is when I include 'mkl_dfti.f90', in order to "use mkl_dfti" . That produces the error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;..\mkl_dfti.f90(27): error #6218: This statement is positioned incorrectly and/or has syntax errors.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and that points to the first line with code in mkl_dfti.f90&lt;/P&gt;

&lt;P&gt;MODULE MKL_DFT_TYPE&lt;/P&gt;

&lt;P&gt;Here is my full code:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;  module mymodule
  use iso_c_binding
  INCLUDE 'mkl_dfti.f90'
  Use MKL_DFTI
  implicit none
  type(DFTI_DESCRIPTOR),POINTER :: My_Desc_Handle

  contains

  subroutine prepareMKLfft(nfft)
  integer(C_INT),intent(in)                 ::  nfft
  integer,parameter                         ::  fftdimension = 1
  Integer                                   :: Status
  Status = DftiCreateDescriptor( My_Desc_Handle, DFTI_DOUBLE, DFTI_COMPLEX, fftdimension, nfft )
  Status = DftiSetValue( My_Desc_Handle, DFTI_PLACEMENT, DFTI_NOT_INPLACE)
  Status = DftiCommitDescriptor( My_Desc_Handle )
  end subroutine prepareMKLfft

  subroutine finishMKLfft()
  Integer                                   :: Status
  Status = DftiFreeDescriptor(My_Desc1_Handle)
  end subroutine finishMKLfft

  subroutine fft(X_in,X_out,nfft)
  ! From: &lt;A href="https://software.intel.com/en-us/mkl-developer-reference-fortran-fft-code-examples" target="_blank"&gt;https://software.intel.com/en-us/mkl-developer-reference-fortran-fft-code-examples&lt;/A&gt;
  integer(C_INT),intent(in)                 ::  nfft
  complex(C_DOUBLE_COMPLEX),intent(in)      ::  X_in(:)
  complex(C_DOUBLE_COMPLEX),intent(out)     ::  X_out(:)
  Integer                                   :: Status
  Status = DftiComputeForward( My_Desc1_Handle, X_in, X_out )
  end subroutine fft

  subroutine ifft(X_in,X_out,nfft)
  integer(C_INT),intent(in)                 ::  nfft
  complex(C_DOUBLE_COMPLEX),intent(in)      ::  X_in(:)
  complex(C_DOUBLE_COMPLEX),intent(out)     ::  X_out(:)
  Integer                                   :: Status
  Status = DftiComputeBackward( My_Desc1_Handle, X_in, X_out )
  end subroutine fft

  end module mymodule&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Does anyone know the answer to this? Help is very much appreciated.&lt;/P&gt;

&lt;P&gt;(windows 7, visual studio 2013, intel parallel studio xe &lt;SPAN style="font-size: 13.008px;"&gt;2016&amp;nbsp;&lt;/SPAN&gt;cluster edition update 3)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 06:24:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143292#M26461</guid>
      <dc:creator>Erik_T_1</dc:creator>
      <dc:date>2018-02-23T06:24:59Z</dc:date>
    </item>
    <item>
      <title>The file mkl_dfti.f90 starts</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143293#M26462</link>
      <description>&lt;P&gt;The file mkl_dfti.f90 starts with "MODULE.." as the first non-comment line and ends with "END Module". It contains the source code of one or more modules, and is to be compiled before, and separately from, any other source file that USEs it. It is not suitable for INCLUDE inside any other program unit.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In other words, compile mkl_dfti.f90 separately, and remove the INCLUDE 'mkl_dfti.f90' line from your source code.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 20:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143293#M26462</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-02-24T20:28:00Z</dc:date>
    </item>
    <item>
      <title>Right, please keep the mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143294#M26463</link>
      <description>&lt;P&gt;Right, please&amp;nbsp;keep the mkl_dfti.f90 was compiles separately.&amp;nbsp; For example, &amp;nbsp;the quick-and-dirty solution&amp;nbsp;may to&amp;nbsp;remove the INCLUDE 'mkl_dfti.f90' line from your source code, &amp;nbsp;to copy the mkl_dfti.f90 file to the source directory and add it in the your current Project.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 02:22:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143294#M26463</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-02-26T02:22:28Z</dc:date>
    </item>
    <item>
      <title>Thank you very much Ying!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143295#M26464</link>
      <description>&lt;P&gt;Thank you very much Ying! That did it.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 07:22:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-dfti-f90-module-error/m-p/1143295#M26464</guid>
      <dc:creator>Erik_T_1</dc:creator>
      <dc:date>2018-02-26T07:22:59Z</dc:date>
    </item>
  </channel>
</rss>

