<?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: MKL FFT in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553807#M35604</link>
    <description>&lt;P&gt;I tried to run this sample on Visual Studio, but failed! The failure situation is as shown below! Could you please help me see how to modify it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_1-1702523488988.png" style="width: 605px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49244i2DB23B282CB53FB3/image-dimensions/605x322/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="605" height="322" role="button" title="Darius_Nicholas_1-1702523488988.png" alt="Darius_Nicholas_1-1702523488988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my include directory and library directory.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_2-1702523571950.png" style="width: 605px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49245iF88EBBC9FE8A7802/image-dimensions/605x263/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="605" height="263" role="button" title="Darius_Nicholas_2-1702523571950.png" alt="Darius_Nicholas_2-1702523571950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can this sample only be run on Visual Studio Code?&lt;/P&gt;&lt;P&gt;OS：Windows 11&lt;/P&gt;&lt;P&gt;MKL version:2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 03:15:03 GMT</pubDate>
    <dc:creator>Darius_Nicholas</dc:creator>
    <dc:date>2023-12-14T03:15:03Z</dc:date>
    <item>
      <title>MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1552520#M35591</link>
      <description>&lt;P&gt;I have used the MKL library to run the FFT algorithm on the CPU. How should I run it on the GPU? I have tried many times and failed. Can you give me an example of running the FFT algorithm on a GPU using the MKL library? Thanks! I use DPC++.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 06:54:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1552520#M35591</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-12-11T06:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553219#M35592</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know the OS details, and Intel MKL version you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know and provide us with the sample reproducer code you are trying to run the FFT algorithm on the CPU?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we tried sample example codes(/dpcpp/dft/source/1dp_complex_1d.cpp) of MKL on a Linux machine, we are able to run the code on CPU as well as GPU, please find the below screenshot and commands for more details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Compilation:  icpx -fsycl -DMKL_ILP64 -DSYCL_DEVICES_gpu -I"${MKLROOT}/include" -I"/home/u 119712/varsha/mkl/dpcpp/common" dp_complex_1d.cpp -fsycl -fsycl-device-code-split=per_kernel ${MKLROOT}/lib/intel64/libmkl_s ycl.a -Wl,-export-dynamic -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_sequentia l.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lsycl -lOpenCL -lpthread -lm -ldl

Running: ./a.out&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1702407647894.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49155i6ED412E3BAF68C1B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1702407647894.png" alt="VarshaS_Intel_0-1702407647894.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_1-1702407703755.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49156iA003E8216A2A6A0D/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_1-1702407703755.png" alt="VarshaS_Intel_1-1702407703755.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use&amp;nbsp;Intel Link Line Advisor for exact compiling and linking the code. Please find the below link for more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 03:34:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553219#M35592</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-12-13T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553338#M35595</link>
      <description>&lt;P&gt;OS:Windows 11&lt;/P&gt;&lt;P&gt;MKL version: OneMKL 2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Sample on CPU:&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;vector&amp;gt;&lt;BR /&gt;#include &amp;lt;chrono&amp;gt;&lt;BR /&gt;#include &amp;lt;mkl.h&amp;gt;&lt;BR /&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;oneapi/mkl/dfti.hpp&amp;gt;&lt;/P&gt;&lt;P&gt;using namespace cl::sycl;&lt;/P&gt;&lt;P&gt;void runFFTOnCPU(const std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt;&amp;amp; input, std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt;&amp;amp; output) {&lt;BR /&gt;// Perform FFT on CPU using MKL&lt;BR /&gt;DFTI_DESCRIPTOR_HANDLE descriptor;&lt;BR /&gt;DftiCreateDescriptor(&amp;amp;descriptor, DFTI_SINGLE, DFTI_COMPLEX, 1, input.size());&lt;BR /&gt;DftiSetValue(descriptor, DFTI_PLACEMENT, DFTI_NOT_INPLACE);&lt;BR /&gt;DftiCommitDescriptor(descriptor);&lt;BR /&gt;const float* input_real = reinterpret_cast&amp;lt;const float*&amp;gt;(input.data()); // Use const_cast instead of reinterpret_cast&lt;BR /&gt;float* output_real = reinterpret_cast&amp;lt;float*&amp;gt;(output.data());&lt;/P&gt;&lt;P&gt;DftiComputeForward(descriptor, const_cast&amp;lt;float*&amp;gt;(input_real), output_real);&lt;/P&gt;&lt;P&gt;DftiFreeDescriptor(&amp;amp;descriptor);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main() {&lt;BR /&gt;const int size = 8192; // Adjust the size as needed&lt;BR /&gt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt; input(size, { 1.0f, 0.0f });&lt;BR /&gt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt; output(size);&lt;/P&gt;&lt;P&gt;// Measure CPU execution time&lt;BR /&gt;auto start_cpu = std::chrono::high_resolution_clock::now();&lt;BR /&gt;runFFTOnCPU(input, output);&lt;BR /&gt;auto end_cpu = std::chrono::high_resolution_clock::now();&lt;BR /&gt;std::chrono::duration&amp;lt;double&amp;gt; cpu_duration = end_cpu - start_cpu;&lt;/P&gt;&lt;P&gt;std::cout &amp;lt;&amp;lt; "CPU FFT Time: " &amp;lt;&amp;lt; cpu_duration.count() &amp;lt;&amp;lt; " seconds" &amp;lt;&amp;lt; std::endl;&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 01:36:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553338#M35595</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-12-13T01:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553807#M35604</link>
      <description>&lt;P&gt;I tried to run this sample on Visual Studio, but failed! The failure situation is as shown below! Could you please help me see how to modify it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_1-1702523488988.png" style="width: 605px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49244i2DB23B282CB53FB3/image-dimensions/605x322/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="605" height="322" role="button" title="Darius_Nicholas_1-1702523488988.png" alt="Darius_Nicholas_1-1702523488988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my include directory and library directory.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darius_Nicholas_2-1702523571950.png" style="width: 605px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/49245iF88EBBC9FE8A7802/image-dimensions/605x263/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="605" height="263" role="button" title="Darius_Nicholas_2-1702523571950.png" alt="Darius_Nicholas_2-1702523571950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can this sample only be run on Visual Studio Code?&lt;/P&gt;&lt;P&gt;OS：Windows 11&lt;/P&gt;&lt;P&gt;MKL version:2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 03:15:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1553807#M35604</guid>
      <dc:creator>Darius_Nicholas</dc:creator>
      <dc:date>2023-12-14T03:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1558111#M35683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we tried using the MKL Sample code "cl_solver_export_c.c" on Visual Studio. Could you please find the attached zip file where we are able to run successfully and could you please let us know if you are getting any errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 08:54:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1558111#M35683</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-12-28T08:54:40Z</dc:date>
    </item>
    <item>
      <title>Re:MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1560726#M35697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. Could you please provide us with an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2024 04:48:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1560726#M35697</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2024-01-08T04:48:46Z</dc:date>
    </item>
    <item>
      <title>Re:MKL FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1562667#M35726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. Could you please provide us with an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Jan 2024 17:31:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-FFT/m-p/1562667#M35726</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2024-01-14T17:31:57Z</dc:date>
    </item>
  </channel>
</rss>

