<?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:Crash for a simple 2D MKL FFT example when matrix size is not too larger in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1228569#M30351</link>
    <description>&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 16 Nov 2020 01:44:35 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2020-11-16T01:44:35Z</dc:date>
    <item>
      <title>Crash for a simple 2D MKL FFT example when matrix size is not too larger</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1219066#M30173</link>
      <description>&lt;P&gt;Environment:&amp;nbsp; MKL Version: 2020.2.254&lt;/P&gt;
&lt;P&gt;Toolchain: Visual Studio Community 16.7.6,&amp;nbsp; Host x64,&amp;nbsp; Target x64&lt;/P&gt;
&lt;P&gt;CMakeLists.txt:&lt;BR /&gt;add_executable(mkl_test_s main.cpp)&lt;BR /&gt;target_link_libraries(mkl_test_s mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 9.8pt;"&gt;&lt;SPAN style="color: #bbb529;"&gt;#include &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&amp;lt;chrono&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;#include &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&amp;lt;iostream&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;#include &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&amp;lt;random&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;#include &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"mkl.h"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;#include &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"mkl_dfti.h"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;init_array_random&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;size&lt;SPAN style="color: #cc7832;"&gt;, double &lt;/SPAN&gt;*a) {&lt;BR /&gt;  &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;uniform_real_distribution&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #cc7832;"&gt;double&lt;/SPAN&gt;&amp;gt; unif(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;random_device &lt;/SPAN&gt;rd&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b9bcd1;"&gt;default_random_engine &lt;/SPAN&gt;re(rd&lt;SPAN style="color: #5f8c8a;"&gt;()&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  for &lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;i = &lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;i &amp;lt; size&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;++i) a[i] = unif&lt;SPAN style="color: #5f8c8a;"&gt;(&lt;/SPAN&gt;re&lt;SPAN style="color: #5f8c8a;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #cc7832;"&gt;void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;fft&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;*datain&lt;SPAN style="color: #cc7832;"&gt;, double &lt;/SPAN&gt;*dataout&lt;SPAN style="color: #cc7832;"&gt;, int &lt;/SPAN&gt;sz) {&lt;BR /&gt;  &lt;SPAN style="color: #b9bcd1;"&gt;DFTI_DESCRIPTOR_HANDLE &lt;/SPAN&gt;handle&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  MKL_LONG status&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  MKL_LONG sizes[&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;] = {sz&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;sz}&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  status = DftiCreateDescriptor(&amp;amp;handle&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;DFTI_DOUBLE&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;DFTI_REAL&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;sizes)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  status = DftiSetValue(handle&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;DFTI_PLACEMENT&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;DFTI_NOT_INPLACE&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  status = DftiCommitDescriptor(handle)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  auto &lt;/SPAN&gt;start = &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;chrono&lt;/SPAN&gt;::&lt;SPAN style="color: #b9bcd1;"&gt;high_resolution_clock&lt;/SPAN&gt;::now()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  status = DftiComputeForward(handle&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;datain&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;dataout)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  auto &lt;/SPAN&gt;dur = &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;chrono&lt;/SPAN&gt;::&lt;SPAN style="color: #b9bcd1;"&gt;high_resolution_clock&lt;/SPAN&gt;::now() &lt;SPAN style="color: #5f8c8a;"&gt;- &lt;/SPAN&gt;start&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::cout&lt;BR /&gt;      &lt;SPAN style="color: #5f8c8a;"&gt;&amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"FFT Done. Elapse time = "&lt;BR /&gt;&lt;/SPAN&gt;      &lt;SPAN style="color: #5f8c8a;"&gt;&amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;chrono&lt;/SPAN&gt;::duration_cast&amp;lt;&lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::&lt;SPAN style="color: #b5b6e3;"&gt;chrono&lt;/SPAN&gt;::&lt;SPAN style="color: #b9bcd1;"&gt;microseconds&lt;/SPAN&gt;&amp;gt;(dur).count()&lt;BR /&gt;      &lt;SPAN style="color: #5f8c8a;"&gt;&amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"us" &lt;/SPAN&gt;&lt;SPAN style="color: #5f8c8a;"&gt;&amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5b6e3;"&gt;std&lt;/SPAN&gt;::endl&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  status = DftiFreeDescriptor(&amp;amp;handle)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;SPAN style="color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;main&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;argc&lt;SPAN style="color: #cc7832;"&gt;, char &lt;/SPAN&gt;*argv[]) {&lt;BR /&gt;  &lt;SPAN style="color: #cc7832;"&gt;int &lt;/SPAN&gt;size = &lt;SPAN style="color: #6897bb;"&gt;299&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// Crash when size  &amp;gt;= 300&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;*in = (&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;*)mkl_calloc(size * size&lt;SPAN style="color: #cc7832;"&gt;, sizeof&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;double&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;64&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  double &lt;/SPAN&gt;*out = (&lt;SPAN style="color: #cc7832;"&gt;double &lt;/SPAN&gt;*)mkl_calloc(size * size&lt;SPAN style="color: #cc7832;"&gt;, sizeof&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;double&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;64&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  init_array_random(size * size&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;in)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  fft(in&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;out&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;size)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  mkl_free(in)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  mkl_free(out)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  return &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 17:57:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1219066#M30173</guid>
      <dc:creator>strngtn</dc:creator>
      <dc:date>2020-10-19T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re:Crash for a simple 2D MKL FFT example when matrix size is not too larger</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1219422#M30176</link>
      <description>&lt;P&gt;building this example as is by the trivial way: icl /Qmkl test.cpp and enabling the verbose mode, I see no problems with my run:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;set MKL_VERBOSE=1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;test_2dfft.exe&lt;/P&gt;&lt;P&gt;MKL_VERBOSE Intel(R) MKL 2020.0 Update 2 Product build 20200624 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz intel_thread&lt;/P&gt;&lt;P&gt;MKL_VERBOSE FFT(drfo299:299:299x299:1:1,pack:ccs,tLim:2,desc:0000020CD5E3C700) 1.53ms CNR:OFF Dyn:1 FastMM:1 TID:0&amp;nbsp;NThr:2&lt;/P&gt;&lt;P&gt;FFT Done. Elapse time = 111128us&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; building like icl /Qmkl=seqential ( exactly like you did)  run well also with the outputs:&lt;/P&gt;&lt;P&gt;test_2dfft.exe&lt;/P&gt;&lt;P&gt;MKL_VERBOSE Intel(R) MKL 2020.0 Update 2 Product build 20200624 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz sequential&lt;/P&gt;&lt;P&gt;MKL_VERBOSE FFT(drfo299:299:299x299:1:1,pack:ccs,tLim:1,desc:0000022C2470BAC0) 1.73ms CNR:OFF Dyn:1 FastMM:1 TID:0&amp;nbsp;NThr:1&lt;/P&gt;&lt;P&gt;FFT Done. Elapse time = 110499us&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>Tue, 20 Oct 2020 13:46:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1219422#M30176</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-10-20T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re:Crash for a simple 2D MKL FFT example when matrix size is not too larger</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1228569#M30351</link>
      <description>&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Nov 2020 01:44:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-for-a-simple-2D-MKL-FFT-example-when-matrix-size-is-not/m-p/1228569#M30351</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-11-16T01:44:35Z</dc:date>
    </item>
  </channel>
</rss>

