<?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 MKL dft example code crashes... in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-dft-example-code-crashes/m-p/1419655#M33736</link>
    <description>&lt;P&gt;I'm trying to run "dft-basic_sp_complex_dft_1d" C example provided by Intel,&amp;nbsp; and it crashes silently during call to DftiCommitDescriptor().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Details:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;- OneMKL v2022.2.0.9563&amp;nbsp; (offline installer) w_onemkl_p_2022.2.0.9563_offline.exe&lt;/P&gt;
&lt;P&gt;- Windows 10 Enteprise 10.0.19044 Build 19044&lt;/P&gt;
&lt;P&gt;- CPU: Intel i7-9850H&amp;nbsp;@2.6GHz&lt;/P&gt;
&lt;P&gt;- Visual Studio 2019 Pro, v16.7.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replication:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- Unzip "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_core_c.zip" into "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c" folder&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- open VS2019 command prompt (make sure cmake for windows is installed already)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;&lt;STRONG&gt;mkdir build &amp;amp;&amp;amp; cd build&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;&lt;STRONG&gt;cmake .. -DCMAKE_C_COMPILER=cl -DTARGET_DEVICES=cpu -DCMAKE_BUILD_TYPE=Release&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;STRONG&gt;cmake --build . --verbose&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;It will build all examples….whatever….not in Release but in Debug folder (wtf)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Obviously, the build fails bring runtime dependencies (knock knock?), so you need to copy from "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64" to "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c\build\Debug"&amp;nbsp; the following:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;mkl_intel_thread.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_core.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_def.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_avx2.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Now run&amp;nbsp;dft-basic_sp_complex_dft_1d.exe and watch it spectacularly crash (silently, in style) half-way through application, during&amp;nbsp;DftiCommitDescriptor() call:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;EM&gt;Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Example basic_sp_complex_dft_1d&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Forward and backward single-precision complex in-place 1D FFTs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Configuration parameters:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_PRECISION = DFTI_SINGLE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_FORWARD_DOMAIN = DFTI_COMPLEX&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_DIMENSION = 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_LENGTHS = {7}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Create DFTI descriptor&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Commit DFTI descriptor&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;I am beginning to have serious doubts if trying to use Intel MKL is a good idea, if their own examples simply do not work...sigh&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;BTW: i am also experiencing a C++ exception when using the above libs/tools in my own application...this time the first call into MKL DFT spectacularly crashes...oh dear....&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;EM&gt;char version[DFTI_VERSION_LENGTH];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;::DftiGetValue(0, DFTI_VERSION, version);&lt;/EM&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 10:06:52 GMT</pubDate>
    <dc:creator>blackrock</dc:creator>
    <dc:date>2022-10-05T10:06:52Z</dc:date>
    <item>
      <title>MKL dft example code crashes...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-dft-example-code-crashes/m-p/1419655#M33736</link>
      <description>&lt;P&gt;I'm trying to run "dft-basic_sp_complex_dft_1d" C example provided by Intel,&amp;nbsp; and it crashes silently during call to DftiCommitDescriptor().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Details:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;- OneMKL v2022.2.0.9563&amp;nbsp; (offline installer) w_onemkl_p_2022.2.0.9563_offline.exe&lt;/P&gt;
&lt;P&gt;- Windows 10 Enteprise 10.0.19044 Build 19044&lt;/P&gt;
&lt;P&gt;- CPU: Intel i7-9850H&amp;nbsp;@2.6GHz&lt;/P&gt;
&lt;P&gt;- Visual Studio 2019 Pro, v16.7.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replication:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- Unzip "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_core_c.zip" into "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c" folder&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- open VS2019 command prompt (make sure cmake for windows is installed already)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;&lt;STRONG&gt;mkdir build &amp;amp;&amp;amp; cd build&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;&lt;STRONG&gt;cmake .. -DCMAKE_C_COMPILER=cl -DTARGET_DEVICES=cpu -DCMAKE_BUILD_TYPE=Release&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;STRONG&gt;cmake --build . --verbose&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;It will build all examples….whatever….not in Release but in Debug folder (wtf)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Obviously, the build fails bring runtime dependencies (knock knock?), so you need to copy from "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64" to "C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\c\build\Debug"&amp;nbsp; the following:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;-&amp;nbsp;mkl_intel_thread.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_core.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_def.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;- mkl_avx2.2.dll&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Now run&amp;nbsp;dft-basic_sp_complex_dft_1d.exe and watch it spectacularly crash (silently, in style) half-way through application, during&amp;nbsp;DftiCommitDescriptor() call:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;EM&gt;Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Example basic_sp_complex_dft_1d&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Forward and backward single-precision complex in-place 1D FFTs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Configuration parameters:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_PRECISION = DFTI_SINGLE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_FORWARD_DOMAIN = DFTI_COMPLEX&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_DIMENSION = 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DFTI_LENGTHS = {7}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Create DFTI descriptor&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Commit DFTI descriptor&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;I am beginning to have serious doubts if trying to use Intel MKL is a good idea, if their own examples simply do not work...sigh&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;BTW: i am also experiencing a C++ exception when using the above libs/tools in my own application...this time the first call into MKL DFT spectacularly crashes...oh dear....&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;EM&gt;char version[DFTI_VERSION_LENGTH];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;::DftiGetValue(0, DFTI_VERSION, version);&lt;/EM&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 10:06:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-dft-example-code-crashes/m-p/1419655#M33736</guid>
      <dc:creator>blackrock</dc:creator>
      <dc:date>2022-10-05T10:06:52Z</dc:date>
    </item>
  </channel>
</rss>

