<?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 Hi dhyanth, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128946#M25495</link>
    <description>&lt;P&gt;Hi dhyanth,&lt;/P&gt;&lt;P&gt;I am glad that you find it helpful.&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 20:34:51 GMT</pubDate>
    <dc:creator>Khang_N_Intel</dc:creator>
    <dc:date>2019-07-17T20:34:51Z</dc:date>
    <item>
      <title>Transformed Values are not correct - MKL FFT Fortran Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128943#M25492</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I was trying to learn about the MKL's FFT Function and wrote a small 1D program to show the forward transformed values. From my understanding, the arguments for the forward function - mentioned in the comment in&amp;nbsp;the program (italicised and not in bold) - should be right and it should perform fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run this, I get 0 as my transformed value (the array y1). Now I am confused about why that happens and what the error in the code is for me to get this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me to understand the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the program file(test.f90), the executable link file (link1.txt - might have to use chmod 700) and the output text file (text.txt).&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- Adhyanth&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROGRAM test&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;! &amp;nbsp; IMPLICIT NONE&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;USE MKL_DFTI&lt;BR /&gt;&amp;nbsp; &amp;nbsp;REAL(KIND = DFTI_DPKP), DIMENSION(201) :: x,y,z&lt;BR /&gt;&amp;nbsp; &amp;nbsp;COMPLEX(KIND = DFTI_DPKP), DIMENSION(201) ::x1, y1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;INTEGER :: i, status&lt;BR /&gt;&amp;nbsp; &amp;nbsp;TYPE(DFTI_DESCRIPTOR), POINTER :: plan&lt;BR /&gt;&amp;nbsp; &amp;nbsp;plan =&amp;gt; null()&lt;BR /&gt;DO i=1,201&lt;BR /&gt;&amp;nbsp; &amp;nbsp;x(i) = REAL(i-101)/100&lt;BR /&gt;&amp;nbsp; &amp;nbsp;y(i)= 5*SIN(2*x(i))&lt;BR /&gt;END DO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OPEN(9, file='text.txt', form = 'FORMATTED')&lt;BR /&gt;WRITE(9,*) 'Y values'&lt;BR /&gt;WRITE(9,*) y&lt;BR /&gt;status = dfti_create_descriptor_1d(plan, DFTI_DOUBLE, DFTI_COMPLEX, 1, 200)&lt;BR /&gt;status = dfti_commit_descriptor_external(plan)&lt;BR /&gt;DO i=1,201&lt;BR /&gt;status = dfti_compute_forward_dz(plan, y(i), y1(i))&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;!Using the(desc,xreinout,ximinout) argument format&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;ENDDO&lt;BR /&gt;status = dfti_free_descriptor_external(plan)&lt;BR /&gt;WRITE(9,*) 'Y1 Values'&lt;BR /&gt;WRITE(9,*) y1&lt;BR /&gt;WRITE(9,*) 'Y values - After Transform'&lt;BR /&gt;WRITE(9,*) y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;END PROGRAM test&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:41:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128943#M25492</guid>
      <dc:creator>Giri_Ajay__Adhyanth</dc:creator>
      <dc:date>2019-07-16T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Hi Adhyanth,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128944#M25493</link>
      <description>&lt;P&gt;Hi Adhyanth,&lt;/P&gt;&lt;P&gt;You are trying to do the R2C out-of-place transform.&amp;nbsp; However, you are not setting the right parameter values.&lt;/P&gt;&lt;P&gt;DftiSetValue(plan, DFTI_PLACEMENT, DFTI_NOT_INPLACE)&lt;/P&gt;&lt;P&gt;Also, you call the Fortran function directly&lt;/P&gt;&lt;P&gt;dfti_compute_forward_dz(plan, y, y1)&lt;/P&gt;&lt;P&gt;You should call the interface, instead.&lt;/P&gt;&lt;P&gt;Please look at the example basic_dp_real_dft_1d.f90 in the examples folder.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 16:45:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128944#M25493</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2019-07-17T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Hi Khang,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128945#M25494</link>
      <description>&lt;P&gt;Hi Khang,&lt;/P&gt;&lt;P&gt;The code worked now. Thanks a ton!&lt;/P&gt;&lt;P&gt;- Adhyanth&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:57:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128945#M25494</guid>
      <dc:creator>Giri_Ajay__Adhyanth</dc:creator>
      <dc:date>2019-07-17T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Hi dhyanth,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128946#M25495</link>
      <description>&lt;P&gt;Hi dhyanth,&lt;/P&gt;&lt;P&gt;I am glad that you find it helpful.&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 20:34:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128946#M25495</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2019-07-17T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Hi Adhyanth,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128947#M25496</link>
      <description>&lt;P&gt;Hi Adhyanth,&lt;/P&gt;&lt;P&gt;I apologize for typing&amp;nbsp;you name incorrectly.&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 20:37:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128947#M25496</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2019-07-17T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Hey Khang,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128948#M25497</link>
      <description>&lt;P&gt;Hey Khang,&lt;/P&gt;&lt;P&gt;No worries.&lt;/P&gt;&lt;P&gt;- Adhyanth&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:16:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Transformed-Values-are-not-correct-MKL-FFT-Fortran-Linux/m-p/1128948#M25497</guid>
      <dc:creator>Giri_Ajay__Adhyanth</dc:creator>
      <dc:date>2019-07-18T17:16:05Z</dc:date>
    </item>
  </channel>
</rss>

