<?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 Unhandled exception  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unhandled-exception/m-p/905962#M11652</link>
    <description>I use MKL8.01 in VS2005, and code below:&lt;BR /&gt;&lt;PRE&gt;bool linsol ( int n, float *a, float *b )&lt;BR /&gt;{&lt;BR /&gt;	int nrhs = 1;&lt;BR /&gt;	int *ipiv = new int&lt;N&gt; ;&lt;BR /&gt;	int info = 0;&lt;BR /&gt;	&lt;FONT color="#008000"&gt;/* -------------------------- */&lt;BR /&gt;	//float a[16] = { 1, 0, 0, 0,&lt;BR /&gt;	//		  0, 1, 0, 0,&lt;BR /&gt;	//		  0, 0, 1, 0,&lt;BR /&gt;	//		  0, 0, 0, 1&lt;BR /&gt;	//       	    };&lt;BR /&gt;	//float b[4] = {1, 1, 1, 1};&lt;BR /&gt;	//int n = 4;	&lt;BR /&gt;	/*-------------------------------*/&lt;/FONT&gt;&lt;BR /&gt;	sgetrs( "T", &amp;amp;n, &amp;amp;nrhs, a, &amp;amp;n, ipiv, b, &amp;amp;n, &amp;amp;info );&lt;BR /&gt;	if (info == 0)&lt;BR /&gt;		return true;&lt;BR /&gt;	return false;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The commented lines are the data values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I call this function, there is &lt;BR /&gt;"Unhandled exception at 0x00451952 in Hermite.exe: 0xC0000005: &lt;BR /&gt; Access violation reading location 0x374a2b88."&lt;BR /&gt;&lt;BR /&gt;And I found that the CallStack show the problem as below:&lt;BR /&gt;&lt;BR /&gt; 	&lt;FONT color="#ff0000"&gt;Hermite.exe!_mkl_blas_p4p_sswap()  + 0xe2 bytes	Asm&lt;/FONT&gt;&lt;BR /&gt; 	Hermite.exe!_mkl_lapack_sgetrs()  + 0x25e bytes	&lt;BR /&gt; 	Hermite.exe!_mkl_blas_sswap()  + 0x93 bytes	&lt;BR /&gt; 	Hermite.exe!_mkl_lapack_slaswp()  + 0x18c bytes	&lt;BR /&gt; 	0012f470()	&lt;BR /&gt;&amp;gt;	Hermite.exe!CHermiteDlg::Hermit()  Line 226	C++&lt;BR /&gt; 	&lt;BR /&gt;&lt;BR /&gt;However, I don't know how to solve it. &lt;BR /&gt;Is there anyone can help me?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;/N&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Oct 2006 14:32:20 GMT</pubDate>
    <dc:creator>fanhanqi</dc:creator>
    <dc:date>2006-10-13T14:32:20Z</dc:date>
    <item>
      <title>Unhandled exception</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unhandled-exception/m-p/905962#M11652</link>
      <description>I use MKL8.01 in VS2005, and code below:&lt;BR /&gt;&lt;PRE&gt;bool linsol ( int n, float *a, float *b )&lt;BR /&gt;{&lt;BR /&gt;	int nrhs = 1;&lt;BR /&gt;	int *ipiv = new int&lt;N&gt; ;&lt;BR /&gt;	int info = 0;&lt;BR /&gt;	&lt;FONT color="#008000"&gt;/* -------------------------- */&lt;BR /&gt;	//float a[16] = { 1, 0, 0, 0,&lt;BR /&gt;	//		  0, 1, 0, 0,&lt;BR /&gt;	//		  0, 0, 1, 0,&lt;BR /&gt;	//		  0, 0, 0, 1&lt;BR /&gt;	//       	    };&lt;BR /&gt;	//float b[4] = {1, 1, 1, 1};&lt;BR /&gt;	//int n = 4;	&lt;BR /&gt;	/*-------------------------------*/&lt;/FONT&gt;&lt;BR /&gt;	sgetrs( "T", &amp;amp;n, &amp;amp;nrhs, a, &amp;amp;n, ipiv, b, &amp;amp;n, &amp;amp;info );&lt;BR /&gt;	if (info == 0)&lt;BR /&gt;		return true;&lt;BR /&gt;	return false;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The commented lines are the data values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I call this function, there is &lt;BR /&gt;"Unhandled exception at 0x00451952 in Hermite.exe: 0xC0000005: &lt;BR /&gt; Access violation reading location 0x374a2b88."&lt;BR /&gt;&lt;BR /&gt;And I found that the CallStack show the problem as below:&lt;BR /&gt;&lt;BR /&gt; 	&lt;FONT color="#ff0000"&gt;Hermite.exe!_mkl_blas_p4p_sswap()  + 0xe2 bytes	Asm&lt;/FONT&gt;&lt;BR /&gt; 	Hermite.exe!_mkl_lapack_sgetrs()  + 0x25e bytes	&lt;BR /&gt; 	Hermite.exe!_mkl_blas_sswap()  + 0x93 bytes	&lt;BR /&gt; 	Hermite.exe!_mkl_lapack_slaswp()  + 0x18c bytes	&lt;BR /&gt; 	0012f470()	&lt;BR /&gt;&amp;gt;	Hermite.exe!CHermiteDlg::Hermit()  Line 226	C++&lt;BR /&gt; 	&lt;BR /&gt;&lt;BR /&gt;However, I don't know how to solve it. &lt;BR /&gt;Is there anyone can help me?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;/N&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Oct 2006 14:32:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unhandled-exception/m-p/905962#M11652</guid>
      <dc:creator>fanhanqi</dc:creator>
      <dc:date>2006-10-13T14:32:20Z</dc:date>
    </item>
  </channel>
</rss>

