<?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:d_Helmholtz_3D_c.c crashes with Unhandled exception (KernelBase.dll). Module not found. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1593163#M36071</link>
    <description>&lt;P&gt;I am closing this thread for now.&lt;/P&gt;&lt;P&gt;Please open a separate thread if you face any further issues.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 28 Apr 2024 01:50:02 GMT</pubDate>
    <dc:creator>Ruqiu_C_Intel</dc:creator>
    <dc:date>2024-04-28T01:50:02Z</dc:date>
    <item>
      <title>d_Helmholtz_3D_c.c crashes with Unhandled exception (KernelBase.dll). Module not found.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1588439#M36015</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to build and run the &lt;EM&gt;attached code&lt;/EM&gt; using Visual Studio 2022 Community that uses Intel &lt;FONT face="courier new,courier"&gt;MKL 2024&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;C++20&lt;/FONT&gt;&amp;nbsp;under Windows 10 64bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The project is very simple and is trying to run the following example provided by Intel OneAPI MKL 2024&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;C:\Program Files (x86)\Intel\oneAPI\2024.1\share\doc\mkl\examples\examples_core_c\c\pdepoisson\source\&lt;FONT color="#C81326"&gt;&lt;STRONG&gt;d_Helmholtz_3D_c.c&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Include &lt;/STRONG&gt;and &lt;STRONG&gt;library folders &lt;/STRONG&gt;are&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\lib&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\include&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Dependencies &lt;/STRONG&gt;are&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_core.lib&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_rt.lib&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;DLLs&lt;/STRONG&gt; copied to the folder containing the executable of the project are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_avx512.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_core.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_def.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_intel_thread.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_rt.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;mkl_sequential.2.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#C81326"&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My project is built successfully for x64 Debug but when execution reaches the following line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;d_init_Helmholtz_3D(&amp;amp;ax, &amp;amp;bx, &amp;amp;ay, &amp;amp;by, &amp;amp;az, &amp;amp;bz, &amp;amp;nx, &amp;amp;ny, &amp;amp;nz, BCtype, &amp;amp;q, ipar, dpar, &amp;amp;stat);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get the following exception and &lt;FONT face="courier new,courier"&gt;d_init_Helmholtz_3D&lt;/FONT&gt;&amp;nbsp;never returns successfully:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Unhandled exception at 0x00007FFFB8D6AB89 (KernelBase.dll) in IntelMKLIssue.exe: 0xC06D007E: Module not found (parameters: 0x000000AA1A4FE6F0).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call stack is as follows&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;KernelBase.dll!00007fffb8d6ab89() Unknown&lt;BR /&gt;mkl_intel_thread.2.dll!00007ffec10adb5e() Unknown&lt;BR /&gt;mkl_intel_thread.2.dll!00007ffec10b2e55() Unknown&lt;BR /&gt;mkl_intel_thread.2.dll!00007ffebf1e6bdc() Unknown&lt;BR /&gt;mkl_intel_thread.2.dll!00007ffebfd58b62() Unknown&lt;BR /&gt;mkl_avx512.2.dll!00007ffea8d1c08b() Unknown&lt;BR /&gt;mkl_core.2.dll!00007ffeaacd12ff() Unknown&lt;BR /&gt;mkl_rt.2.dll!00007ffec29e6649() Unknown&lt;BR /&gt;&amp;gt; IntelMKLIssue.exe!main() Line 215 C++&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line 215 is the following if statement.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if (stat != 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;error = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;goto end;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't think I am missing any &lt;FONT face="courier new,courier"&gt;lib&lt;/FONT&gt; s or &lt;FONT face="courier new,courier"&gt;DLL&lt;/FONT&gt;s. I intentionally made my project to link against all the &lt;FONT face="courier new,courier"&gt;lib&lt;/FONT&gt; files in &lt;FONT face="courier new,courier"&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\lib&lt;/FONT&gt; and also copied all the &lt;FONT face="courier new,courier"&gt;DLL&lt;/FONT&gt;s in &lt;FONT face="courier new,courier"&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\bin&lt;/FONT&gt;&amp;nbsp;into my executable folder, still I get the same exception message. Although I don't need to do all the libs and DLLs, I did it anyway to rule out any potential missing files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#1E2EB8"&gt;&lt;STRONG&gt;How can I know what lib and DLL files a specific MKL function needs? I could not find this info on MKL PDF documentation.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 22:27:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1588439#M36015</guid>
      <dc:creator>AhmadOneAPI</dc:creator>
      <dc:date>2024-04-11T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: d_Helmholtz_3D_c.c crashes with Unhandled exception (KernelBase.dll). Module not found.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1589378#M36033</link>
      <description>&lt;P&gt;Looks it works well in my side for your code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Example of use of  Intel oneMKL Poisson Library
 **********************************************

 This example gives the solution of 3D Helmholtz problem
 with the equation -u_xx-u_yy-u_zz+u=f(x,y,z), 0&amp;lt;x&amp;lt;1, 0&amp;lt;y&amp;lt;1, 0&amp;lt;z&amp;lt;1,
 f(x,y,z)=(12*pi*pi+1)*sin(2*pi*x)*sin(2*pi*y)*sin(2*pi*z)+1,
 and with the following boundary conditions:
  u(0,y,z)=u(1,y,z)=1 (Dirichlet boundary conditions),
 -u_y(x,0,z)=-2.0*pi*sin(2*pi*x)*sin(2*pi*z) (Neumann boundary condition),
  u_y(x,1,z)= 2.0*pi*sin(2*pi*x)*sin(2*pi*z) (Neumann boundary condition),
 -u_z(x,y,0)=-2.0*pi*sin(2*pi*x)*sin(2*pi*y) (Neumann boundary condition),
  u_z(x,y,1)= 2.0*pi*sin(2*pi*x)*sin(2*pi*y) (Neumann boundary condition).
 ----------------------------------------------------------------------
 In general, the error should be of order O(1.0/nx^2+1.0/ny^2+1.0/nz^2)
 For this example, the value of nx=ny=nz is 4
 The approximation error should be of order 5.0e-01, if everything is OK
 ----------------------------------------------------------------------
                      DOUBLE PRECISION COMPUTATIONS
 ======================================================================

The number of mesh intervals in x-direction is nx=4
The number of mesh intervals in y-direction is ny=4
The number of mesh intervals in z-direction is nz=4

In the mesh point (0.25,0.00,0.00) the error between the computed and the true solution is equal to -3.896e-01
In the mesh point (0.25,0.00,0.25) the error between the computed and the true solution is equal to -1.978e-01
In the mesh point (0.25,0.00,0.50) the error between the computed and the true solution is equal to -2.220e-16
In the mesh point (0.25,0.00,0.75) the error between the computed and the true solution is equal to  1.978e-01
In the mesh point (0.25,0.00,1.00) the error between the computed and the true solution is equal to  3.896e-01
In the mesh point (0.25,0.25,0.00) the error between the computed and the true solution is equal to -1.978e-01
In the mesh point (0.25,0.25,0.25) the error between the computed and the true solution is equal to  1.660e-01
In the mesh point (0.25,0.25,0.50) the error between the computed and the true solution is equal to -2.220e-16
In the mesh point (0.25,0.25,0.75) the error between the computed and the true solution is equal to -1.660e-01
In the mesh point (0.25,0.25,1.00) the error between the computed and the true solution is equal to  1.978e-01
In the mesh point (0.25,0.50,0.00) the error between the computed and the true solution is equal to -4.441e-16
In the mesh point (0.25,0.50,0.25) the error between the computed and the true solution is equal to -4.441e-16
In the mesh point (0.25,0.50,0.50) the error between the computed and the true solution is equal to -2.220e-16
In the mesh point (0.25,0.50,0.75) the error between the computed and the true solution is equal to -3.331e-16
In the mesh point (0.25,0.50,1.00) the error between the computed and the true solution is equal to -3.331e-16
In the mesh point (0.25,0.75,0.00) the error between the computed and the true solution is equal to  1.978e-01
In the mesh point (0.25,0.75,0.25) the error between the computed and the true solution is equal to -1.660e-01
In the mesh point (0.25,0.75,0.50) the error between the computed and the true solution is equal to -3.331e-16
In the mesh point (0.25,0.75,0.75) the error between the computed and the true solution is equal to  1.660e-01
In the mesh point (0.25,0.75,1.00) the error between the computed and the true solution is equal to -1.978e-01
In the mesh point (0.25,1.00,0.00) the error between the computed and the true solution is equal to  3.896e-01
In the mesh point (0.25,1.00,0.25) the error between the computed and the true solution is equal to  1.978e-01
In the mesh point (0.25,1.00,0.50) the error between the computed and the true solution is equal to -2.220e-16
In the mesh point (0.25,1.00,0.75) the error between the computed and the true solution is equal to -1.978e-01
In the mesh point (0.25,1.00,1.00) the error between the computed and the true solution is equal to -3.896e-01

 Double precision 3D Helmholtz example has successfully PASSED
 through all steps of computation!

C:\Users\rcao8\source\repos\mklTest\x64\Debug\mklTest.exe (process 16328) exited with code -1.
To automatically close the console when debugging stops, enable Tools-&amp;gt;Options-&amp;gt;Debugging-&amp;gt;Automatically close the console when debugging stops.
Press any key to close this window . . .&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Ruqiu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 02:33:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1589378#M36033</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-04-16T02:33:51Z</dc:date>
    </item>
    <item>
      <title>Re:d_Helmholtz_3D_c.c crashes with Unhandled exception (KernelBase.dll). Module not found.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1593163#M36071</link>
      <description>&lt;P&gt;I am closing this thread for now.&lt;/P&gt;&lt;P&gt;Please open a separate thread if you face any further issues.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Apr 2024 01:50:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/d-Helmholtz-3D-c-c-crashes-with-Unhandled-exception-KernelBase/m-p/1593163#M36071</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-04-28T01:50:02Z</dc:date>
    </item>
  </channel>
</rss>

