<?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: Intel MKL FFT example 27, 27a gives &amp;quot;Aborted&amp;quot; in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897685#M11029</link>
    <description>Just for your information,&lt;BR /&gt;&lt;BR /&gt;All ofnew FORTRAN examplesand the fixedC examples are integrated into MKL 10.3.1, which release recently. &lt;BR /&gt;&lt;BR /&gt;For who are using Intel Compiler or Composer, please find the MKL Version info from&lt;A href="http://software.intel.com/en-us/articles/which-version-of-the-intel-ipp-intel-mkl-and-intel-tbb-libraries-are-included-in-the-intel-composer-bundles/"&gt;http://software.intel.com/en-us/articles/which-version-of-the-intel-ipp-intel-mkl-and-intel-tbb-libraries-are-included-in-the-intel-composer-bundles/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying H.</description>
    <pubDate>Wed, 19 Jan 2011 01:11:59 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2011-01-19T01:11:59Z</dc:date>
    <item>
      <title>Intel MKL FFT example 27, 27a gives "Aborted"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897681#M11025</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am working on running a set of MKL FFTs in parallel using user threads (using openMP primitives)&lt;BR /&gt;I tried out Example 27 in MKL manual:&lt;BR /&gt;I do a MKL_Set_Num_Threads(1) as suggested in the manual and run 4 OMP threads.&lt;BR /&gt;But I see "Aborted" in the output. This apparently happens after the first thread completes all the statements in the parallel region. It is not clear as to what the reason is.&lt;BR /&gt;I use the following options for compiling:&lt;BR /&gt;icc -Wl,--start-group -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -lpthread test_mkl.c&lt;BR /&gt;&lt;BR /&gt;It will be great if some one can help me with this.&lt;BR /&gt;Following is the code I use:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;MKL_DFTI.H&gt;&lt;BR /&gt;#include &lt;OMP.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;#include &lt;COMPLEX.H&gt;&lt;BR /&gt;#define DEBUG 0&lt;BR /&gt;&lt;BR /&gt;int main (){&lt;BR /&gt; float _Complex x[200][100];&lt;BR /&gt; MKL_LONG len[2];&lt;BR /&gt; int j,k;&lt;BR /&gt; float real, imag=0;&lt;BR /&gt; for (j = 0; j &amp;lt; 200; ++j)&lt;BR /&gt; for(k=0; k&amp;lt;100; ++k)&lt;BR /&gt; {&lt;BR /&gt; real = ((float)((float)rand()/(float)RAND_MAX) );&lt;BR /&gt; imag = ((float)((float)rand()/(float)RAND_MAX) );&lt;BR /&gt; x&lt;J&gt;&lt;K&gt;= real + imag * I;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; len[0]=50; len[1]=100;&lt;BR /&gt; MKL_Set_Num_Threads(1);&lt;BR /&gt;&lt;BR /&gt; int nthreads;&lt;BR /&gt; #pragma omp parallel num_threads(4)&lt;BR /&gt; {&lt;BR /&gt; DFTI_DESCRIPTOR_HANDLE my_desc_handle;&lt;BR /&gt; MKL_LONG myStatus;&lt;BR /&gt; int myID = omp_get_thread_num ();&lt;BR /&gt; printf("\n %d", myID);fflush(stdout);&lt;BR /&gt; myStatus = DftiCreateDescriptor (&amp;amp;my_desc_handle, DFTI_SINGLE,DFTI_COMPLEX, 2, len);&lt;BR /&gt; myStatus = DftiCommitDescriptor (my_desc_handle);&lt;BR /&gt; myStatus = DftiComputeForward (my_desc_handle, &amp;amp;x[myID * len[0] * len[1]]);&lt;BR /&gt; myStatus = DftiFreeDescriptor (&amp;amp;my_desc_handle);&lt;BR /&gt; printf("\n free desc my id: %d ---&amp;gt; my status: %ld", myID, myStatus); fflush(stdout);&lt;BR /&gt; if (myID == 0)&lt;BR /&gt; {&lt;BR /&gt; nthreads = omp_get_num_threads();&lt;BR /&gt; printf("Number of threads = %d\n", nthreads);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; }&lt;BR /&gt; printf("\n all done");&lt;BR /&gt; /* End OpenMP parallel region */&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/K&gt;&lt;/J&gt;&lt;/COMPLEX.H&gt;&lt;/STDIO.H&gt;&lt;/OMP.H&gt;&lt;/MKL_DFTI.H&gt;</description>
      <pubDate>Fri, 30 Oct 2009 09:38:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897681#M11025</guid>
      <dc:creator>CDS-B</dc:creator>
      <dc:date>2009-10-30T09:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MKL FFT example 27, 27a gives "Aborted"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897682#M11026</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Yourtest fails becuse of problem in the following expression:&lt;BR /&gt; myStatus = DftiComputeForward (my_desc_handle, &lt;SPAN style="text-decoration: underline;"&gt;&amp;amp;x[myID * len[0] * len[1]]);&lt;/SPAN&gt;&lt;BR /&gt;Please add new pointer yat the top of thetest (after definition of x) :&lt;BR /&gt; float _Complex *y=&amp;amp;x[0][0];&lt;BR /&gt;and use y instead of x:&lt;BR /&gt; myStatus = DftiComputeForward (my_desc_handle, &lt;STRONG&gt;&amp;amp;y&lt;/STRONG&gt;[myID * len[0] * len[1]]);&lt;BR /&gt;&lt;BR /&gt;So,MKL DFTIexamples: &lt;STRONG&gt;
&lt;P align="left"&gt;&lt;BR /&gt;Using Parallel Mode with Multiple Descriptors Initialized in One Thread&lt;/P&gt;
&lt;/STRONG&gt;&lt;STRONG&gt;Using Parallel Mode with a Common Descriptor&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;are to be corrected&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;--Victor</description>
      <pubDate>Fri, 30 Oct 2009 13:57:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897682#M11026</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2009-10-30T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MKL FFT example 27, 27a gives "Aborted"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897683#M11027</link>
      <description>&lt;BR /&gt;Or it's OK just to use the following expression:&lt;BR /&gt;&lt;BR /&gt; &amp;amp;x [myID * len[0]] [0]&lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;BR /&gt; &amp;amp;x[myID * len[0] * len[1]]);&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2009 05:49:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897683#M11027</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2009-11-02T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MKL FFT example 27, 27a gives "Aborted"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897684#M11028</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/93649"&gt;Victor Pasko (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;Thanks Victor !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Yourtest fails becuse of problem in the following expression:&lt;BR /&gt; myStatus = DftiComputeForward (my_desc_handle, &lt;SPAN style="text-decoration: underline;"&gt;&amp;amp;x[myID * len[0] * len[1]]);&lt;/SPAN&gt;&lt;BR /&gt;Please add new pointer yat the top of thetest (after definition of x) :&lt;BR /&gt; float _Complex *y=&amp;amp;x[0][0];&lt;BR /&gt;and use y instead of x:&lt;BR /&gt; myStatus = DftiComputeForward (my_desc_handle, &lt;STRONG&gt;&amp;amp;y&lt;/STRONG&gt;[myID * len[0] * len[1]]);&lt;BR /&gt;&lt;BR /&gt;So,MKL DFTIexamples: &lt;STRONG&gt;
&lt;P align="left"&gt;&lt;BR /&gt;Using Parallel Mode with Multiple Descriptors Initialized in One Thread&lt;/P&gt;
&lt;/STRONG&gt;&lt;STRONG&gt;Using Parallel Mode with a Common Descriptor&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;are to be corrected&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;--Victor&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2009 13:49:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897684#M11028</guid>
      <dc:creator>CDS-B</dc:creator>
      <dc:date>2009-11-02T13:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MKL FFT example 27, 27a gives "Aborted"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897685#M11029</link>
      <description>Just for your information,&lt;BR /&gt;&lt;BR /&gt;All ofnew FORTRAN examplesand the fixedC examples are integrated into MKL 10.3.1, which release recently. &lt;BR /&gt;&lt;BR /&gt;For who are using Intel Compiler or Composer, please find the MKL Version info from&lt;A href="http://software.intel.com/en-us/articles/which-version-of-the-intel-ipp-intel-mkl-and-intel-tbb-libraries-are-included-in-the-intel-composer-bundles/"&gt;http://software.intel.com/en-us/articles/which-version-of-the-intel-ipp-intel-mkl-and-intel-tbb-libraries-are-included-in-the-intel-composer-bundles/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying H.</description>
      <pubDate>Wed, 19 Jan 2011 01:11:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-FFT-example-27-27a-gives-quot-Aborted-quot/m-p/897685#M11029</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-01-19T01:11:59Z</dc:date>
    </item>
  </channel>
</rss>

