<?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 in dsyevd/dsyev functions in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880549#M9493</link>
    <description>That means I have to link the whole MKL library dynamically with my own DLL, and also distribute those MKL runtime library DLLs when I deploy my DLL wrapper to third party?&lt;BR /&gt;&lt;BR /&gt;There are 14 of them (32.2MB in my MKL version 9.1), is there any way to cut down the size of those DLLs? Like combining them into a single DLL?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 10 Dec 2007 23:13:12 GMT</pubDate>
    <dc:creator>pat726627</dc:creator>
    <dc:date>2007-12-10T23:13:12Z</dc:date>
    <item>
      <title>Crash in dsyevd/dsyev functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880547#M9491</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have developed a DLL wrapper for third party applications to call the MKL functions in a higher level C++ class structure. I have implemented a general matrix class and the DLL wrapper does all the conversion between the high level C++ code to C-based MKL function call. Everything works out fine during the debugging stage, except when I deploy the DLL in release mode, the test application that calls the DLL gave me a fatal error:&lt;BR /&gt;&lt;BR /&gt;Unhandled exception at 0x0336654a (mkl_wrapper.dll) in test_mkl_wrapper.exe: 0xC0000005: Access violation reading location 0x00000000.&lt;BR /&gt;&lt;BR /&gt;Call stack:&lt;BR /&gt;&lt;BR /&gt;mkl_wrapper.dll!_mkl_serv_allocate() + 0x1e bytes C&lt;BR /&gt;mkl_wrapper.dll!_mkl_blas_p4p_xdsyr2k() + 0x4f6 bytes Fortran&lt;BR /&gt;mkl_wrapper.dll!_mkl_blas_p4p_dsyr2k() + 0xc5c bytes C&lt;BR /&gt;mkl_wrapper.dll!_mkl_blas_dsyr2k() + 0xfa bytes C&lt;BR /&gt;mkl_wrapper.dll!_mkl_lapack_dsytrd() + 0x283 bytes Fortran&lt;BR /&gt;mkl_wrapper.dll!_mkl_lapack_dsyevd() + 0x3c7 bytes Fortran&lt;BR /&gt;mkl_wrapper.dll!_DSYEVD() + 0x59 bytes Asm&lt;BR /&gt;mkl_wrapper.dll!eig(const Matrix&lt;DOUBLE&gt; &amp;amp; A={...}, Matrix&lt;DOUBLE&gt; &amp;amp; eigenvalues={...}, Matrix&lt;DOUBLE&gt; &amp;amp; eigenvector={...}, Line 18 + 0x11 bytes C++&lt;BR /&gt;...&lt;BR /&gt;I tried with another eigenvalues routine dsyev() but it gives me the same crash.&lt;BR /&gt;&lt;BR /&gt;I developed the application on MS Windows XP SP2 with Visual Studio 2005 SP1, and MKL version 9.1. I linked the wrapper DLL with MKL library statically (include library setting in VS2005: mkl_c.lib mkl_lapack.lib mkl_solver.lib libguide.lib). I have tried linking with the MKL dynamically but there wasn't any luck.&lt;BR /&gt;&lt;BR /&gt;Interestingly, I can run the same application smoothly in debug mode with the same input and no changes in the code. The input matrix is just 52 by 52 doubles, so I don't think that's a problem on a 2GB RAM Intel Core Duo machine.&lt;BR /&gt;&lt;BR /&gt;Got any ideas for this weird crash?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Mon, 10 Dec 2007 07:10:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880547#M9491</guid>
      <dc:creator>pat726627</dc:creator>
      <dc:date>2007-12-10T07:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in dsyevd/dsyev functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880548#M9492</link>
      <description>&lt;P&gt;I am afraid you won't be able to achieve this. MKL version 9.1 and later does not allows its use from within a DLL project. I had the same problem for months now and Intel support could not find a solution. &lt;/P&gt;
&lt;P&gt;See this post : &lt;BR /&gt;&lt;A href="https://community.intel.com/en-us/forums//topic/55649"&gt;http://software.intel.com/en-us/forums//topic/55649&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Tryusing the same code from within an exe project, most probably your code will work fine. Also you may try using MKL version 8.1 or older.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/en-us/forums//topic/55649"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2007 12:04:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880548#M9492</guid>
      <dc:creator>Trifon</dc:creator>
      <dc:date>2007-12-10T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in dsyevd/dsyev functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880549#M9493</link>
      <description>That means I have to link the whole MKL library dynamically with my own DLL, and also distribute those MKL runtime library DLLs when I deploy my DLL wrapper to third party?&lt;BR /&gt;&lt;BR /&gt;There are 14 of them (32.2MB in my MKL version 9.1), is there any way to cut down the size of those DLLs? Like combining them into a single DLL?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 23:13:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880549#M9493</guid>
      <dc:creator>pat726627</dc:creator>
      <dc:date>2007-12-10T23:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Crash in dsyevd/dsyev functions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880550#M9494</link>
      <description>&lt;P&gt;Special tool for your needs exists in MKL. Its name is "custom DLL builder". You can find it in MKL	ools&amp;#8;uilder folder. It is very simple and give to you ability of building your own DLL from MKL statical library. Your custom DLL will contain optimizations for all CPUs. You can choose set of MKL functions that will be included to your own DLL - it will reduce final size of DLL.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2007 07:31:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Crash-in-dsyevd-dsyev-functions/m-p/880550#M9494</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2007-12-11T07:31:43Z</dc:date>
    </item>
  </channel>
</rss>

