<?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: Using intel mkl fft on a cluster in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280796#M31318</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;"&lt;I&gt;I still see some better performance by running on my local desktop (better parallel performance)&lt;/I&gt;"&lt;/P&gt;
&lt;P&gt;Could you please elaborate more on this? Also, provide details of the different CPU/local desktop details that you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; "&lt;I&gt;I'll prepare a small test code to post it here in a few days. &lt;/I&gt;"&lt;/P&gt;
&lt;P&gt;If possible, could you also share the minimal reproducer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Rajesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 08:21:43 GMT</pubDate>
    <dc:creator>MRajesh_intel</dc:creator>
    <dc:date>2021-05-12T08:21:43Z</dc:date>
    <item>
      <title>Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278822#M31273</link>
      <description>&lt;P class="sub_section_element_selectors"&gt;Hi there. Sorry for reposting this, I was advised there is this specific section for MKL.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;I have some questions on linking using the fft mkl libraries on a cluster. I have a code which I have written using the open source FFTW, but now in the cluster I am trying to use the mkl fftw. I've been looking at the examples in the folder dftf, and tried to adapt this into my code.&lt;BR /&gt;&lt;BR /&gt;I would like to clarify some things.&amp;nbsp;&lt;BR /&gt;The first thing is, what is called "hand" in the mkl libraries is what in the classic FFTW is called a plan? is it the same thing?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As I am going to make intensive use of this FFT, I committed the transforms values in some subroutine in the code, and shared the "hand" pointers through a common block to the routine where I actually execute the DftiComputeForward and DftiComputeBackward calls. Is this correct?&lt;BR /&gt;&lt;BR /&gt;Now, the thing is that the FFT calculations doesn't seem to be executed in the optimal time that I obtain when I execute these transforms using the open source FFTW on my computer. I have to say that in my desktop computer I don't have the intel compiler, I use the gfortran compiler, so the comparison is between different systems, and different compilers. It is hard to say on an absolute scale which is working better, but what I do see is that the FFTW scaling goes as expected, like order N times Log_2(N) on my computer, and that is what I am not obtaining when I run the code in the cluster.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I know that the intel compiler should be working better than the open source versions, so I would like to know what could be the root of this lose of performance. It is possible that I am not using the mkl routines properly, I'm just trying to learn how to use them. It is possible that I am not compiling the code in the way I should to get the optimization performance I expected.&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;The way I compiled the code, given that I didn't know how to do it, was looking on how the "examples" provided by intel compiled using the makefile given there. I also tried by including my code in the list file provided with the examples, and then running using the makefile. And it worked, but the thing is if there could be some issue on how these codes are being compiled that is giving me a lose in performance.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Now I'm compiling using something like:&lt;BR /&gt;&lt;BR /&gt;mpiifort -module _results/intel_lp64_parallel_iomp5_libintel64 -I/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/include -fpp -qopenmp \&lt;BR /&gt;mycode.f90 \&lt;BR /&gt;_results/intel_lp64_parallel_iomp5_libintel64/mkl_dfti.o \&lt;BR /&gt;/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_intel_lp64.a -Wl,--start-group /opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_intel_thread.a /opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_core.a -Wl,--end-group \&lt;BR /&gt;-L/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/../compiler/lib/intel64 -liomp5 -lpthread -lm -ldl -o _results/intel_lp64_parallel_iomp5_libintel64/mycode.x&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Is there a way to do it more concisely? I am also using MPI, I don't know if that matters.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:37:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278822#M31273</guid>
      <dc:creator>Telemachus</dc:creator>
      <dc:date>2021-05-04T17:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278833#M31274</link>
      <description>&lt;P&gt;MKL version:&amp;nbsp;intel/mkl/2021.1.1&lt;BR /&gt;OS version:&amp;nbsp;NAME="CentOS Linux"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VERSION="7 (Core)"&lt;BR /&gt;Compiler version:&amp;nbsp;intel/compiler-rt/2021.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mpi/2021.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll prepare a small test code to post it here in a few days. I have to do a few things today, so I'll leave it for tomorrow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:18:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278833#M31274</guid>
      <dc:creator>Telemachus</dc:creator>
      <dc:date>2021-05-04T18:18:05Z</dc:date>
    </item>
    <item>
      <title>Re:Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278975#M31276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting your query. Alternatively you may also refer to the link advisor  tool to see which libraries are recommended for a particular use case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2021 06:10:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1278975#M31276</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-05-05T06:10:46Z</dc:date>
    </item>
    <item>
      <title>Re:Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280435#M31304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please share an update regarding the issue. If your issue is not yet resolved, please share the minimal reproducer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 May 2021 05:57:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280435#M31304</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-05-11T05:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280575#M31310</link>
      <description>&lt;P&gt;Hi. I have partially fixed the problem. I wasn't using correctly the job manager at the cluster, which caused the major part of the issue. However, I am compiling the code with MKL by using the directories that appeared when I run the makefile for the examples provided by intel&amp;nbsp;&lt;SPAN&gt;in the folder dftf, as I explained before. The way I am compiling it is using the command:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;mpiifort -module _results/intel_lp64_parallel_iomp5_libintel64 -I/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/include -fpp -qopenmp \&lt;BR /&gt;mycode.f90 \&lt;BR /&gt;_results/intel_lp64_parallel_iomp5_libintel64/mkl_dfti.o \&lt;BR /&gt;/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_intel_lp64.a -Wl,--start-group /opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_intel_thread.a /opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/lib/intel64/libmkl_core.a -Wl,--end-group \&lt;BR /&gt;-L/opt/ohpc/pub/compiler/intel/compilers_and_libraries_2020.2.254/linux/mkl/2021.1.1/../compiler/lib/intel64 -liomp5 -lpthread -lm -ldl -o _results/intel_lp64_parallel_iomp5_libintel64/mycode.x&lt;BR /&gt;&lt;BR /&gt;I'm not sure this is the best practice, if I should use any other compilation flags, or if there is a better way of doing it. However, if there shouldn't be any detriments in the compilation process, that wouldn't bother me, but I'm still not sure if I am getting the best possible performance. In particular, I still see some better performance by running on my local desktop (better parallel performance), but as I explained before, I am using a different system, with different cpu and the gnu compiler, so it is difficult to trace a parallelism between these comparisons.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:25:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280575#M31310</guid>
      <dc:creator>Telemachus</dc:creator>
      <dc:date>2021-05-11T15:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280796#M31318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;"&lt;I&gt;I still see some better performance by running on my local desktop (better parallel performance)&lt;/I&gt;"&lt;/P&gt;
&lt;P&gt;Could you please elaborate more on this? Also, provide details of the different CPU/local desktop details that you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; "&lt;I&gt;I'll prepare a small test code to post it here in a few days. &lt;/I&gt;"&lt;/P&gt;
&lt;P&gt;If possible, could you also share the minimal reproducer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Rajesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 08:21:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1280796#M31318</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-05-12T08:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1281271#M31328</link>
      <description>&lt;P&gt;Hi. I think everything is working fine now, I wasn't giving proper use of the job manager. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 20:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1281271#M31328</guid>
      <dc:creator>Telemachus</dc:creator>
      <dc:date>2021-05-13T20:54:49Z</dc:date>
    </item>
    <item>
      <title>Re:Using intel mkl fft on a cluster</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1281823#M31332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; Thanks for the confirmation!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good day.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 May 2021 04:49:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-intel-mkl-fft-on-a-cluster/m-p/1281823#M31332</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-05-17T04:49:32Z</dc:date>
    </item>
  </channel>
</rss>

