<?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 Eigenvalue Solver Error (dfeast_scsrgv ) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041875#M20737</link>
    <description>&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;I'm trying to solve eigenvalue problem for large sparse matrices using&amp;nbsp;dfeast_scsrgv function. The function works fine for small problems (ex: 8*8 sparse matrix) but it gives System.StackOverflowException error for larger problems( ex: 200*200 sparse matrix) . I'm using Visual Studio 2008 and MKL version 11 with most recent updates installed. My system is windows 64 bit and the programming language is C++. Following I provided the eigenvalue solver code that I'm using. In debug mode when I reach &amp;nbsp;dfeast_scsrgv &amp;nbsp;line it gives me Stack Overflow error. I do not think I am using any infinite loop or unnecessary large arrays. I would appreciate if someone can help me to fix the problem. Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE style="color: rgb(0, 0, 0); line-height: normal;"&gt;&lt;SPAN style="font-size: 10px; line-height: 15.43420696258545px;"&gt;[cpp]&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;
//Convert stiffness and mass matrix to CSR format - Seldon library
int NumStiff = M_GStiff.GetDataSize();&amp;nbsp; &amp;nbsp;
Vector&amp;lt;double&amp;gt; V_GStiffVal &amp;nbsp; (NumStiff);&amp;nbsp; &amp;nbsp; 
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GStiffColInd(NumStiff);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GStiffRowPtr(PrbDim+1);
ConvertToCSR(M_GStiff, prop, V_GStiffRowPtr, V_GStiffColInd, V_GStiffVal); &amp;nbsp;
&amp;nbsp;
int NumMass = M_GMass.GetDataSize();
Vector&amp;lt;double&amp;gt; V_GMassVal &amp;nbsp; (NumMass);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GMassColInd(NumMass);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GMassRowPtr(PrbDim+1);
ConvertToCSR(M_GMass, prop, V_GMassRowPtr, V_GMassColInd, V_GMassVal); &amp;nbsp;&amp;nbsp;
&amp;nbsp;
//Release memory
M_GStiff.Clear();
M_GMass.Clear();
&amp;nbsp;
//Convert Seldon format to typical C array
double* a = V_GStiffVal.GetData();
int* &amp;nbsp; ia = V_GStiffRowPtr.GetData();
int* &amp;nbsp; ja = V_GStiffColInd.GetData(); &amp;nbsp;&amp;nbsp;
&amp;nbsp;
double* b = V_GMassVal.GetData();
int* &amp;nbsp; ib = V_GMassRowPtr.GetData();
int* &amp;nbsp; jb = V_GMassColInd.GetData();
&amp;nbsp;
// Convert matrix from 0-based C-notation to Fortran 1-based
int nnz = ia[PrbDim];&amp;nbsp;
for (int i = 0; i &amp;lt; PrbDim+1; i++) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ia&lt;I&gt; += 1; &amp;nbsp; &amp;nbsp;
for (int i = 0; i &amp;lt; nnz; i++) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ja&lt;I&gt; += 1; &amp;nbsp;
&amp;nbsp;
for (int i = 0; i &amp;lt; PrbDim+1; i++)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;ib&lt;I&gt; += 1;
for (int i = 0; i &amp;lt; nnz; i++)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jb&lt;I&gt; += 1;
&amp;nbsp;
// Initialize variables for the solver
double Error &amp;nbsp; &amp;nbsp;= 0;
int &amp;nbsp; &amp;nbsp;Loop &amp;nbsp; &amp;nbsp; = 0;
int &amp;nbsp; &amp;nbsp;NumMode &amp;nbsp;= 10;
double Emin &amp;nbsp; &amp;nbsp; = 0;
double Emax &amp;nbsp; &amp;nbsp; = pow(10.0,10.0); &amp;nbsp; &amp;nbsp;
int &amp;nbsp; &amp;nbsp;Flag &amp;nbsp; &amp;nbsp; = 0;
char &amp;nbsp; MTyp &amp;nbsp; &amp;nbsp; = 'U';
int &amp;nbsp; &amp;nbsp;NumEigen = NumMode;
&amp;nbsp;
vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_FPM (128,0);
vector&amp;lt;double&amp;gt; V_Eigen(NumMode,0);
vector&amp;lt;double&amp;gt; V_Res (NumMode,0);&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;
V_FPM[0] &amp;nbsp;= 1;
V_FPM[1] &amp;nbsp;= 8;
V_FPM[2] &amp;nbsp;= 12;
V_FPM[3] &amp;nbsp;= 20;
V_FPM[4] &amp;nbsp;= 0;
V_FPM[5] &amp;nbsp;= 0;
V_FPM[6] &amp;nbsp;= 5;
V_FPM[13] = 0;
V_FPM[63] = 0;
&amp;nbsp;
int* &amp;nbsp; &amp;nbsp;P_FPM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_FPM[0];
double* P_Eigen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_Eigen[0]; &amp;nbsp;
double* P_Res &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_Res[0]; &amp;nbsp; &amp;nbsp;
double dDum;
&amp;nbsp;
// Call Eigenvalue Solver
dfeast_scsrgv (&amp;amp;MTyp, &amp;amp;PrbDim, a, ia, ja, b, ib, jb,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; P_FPM, &amp;amp;Error, &amp;amp;Loop, &amp;amp;Emin, &amp;amp;Emax, &amp;amp;NumMode, P_Eigen, &amp;amp;dDum, &amp;amp;NumEigen, P_Res, &amp;amp;Flag);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 10px; line-height: 15.43420696258545px;"&gt;[/cpp]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2014 00:28:19 GMT</pubDate>
    <dc:creator>vahid_s_</dc:creator>
    <dc:date>2014-06-09T00:28:19Z</dc:date>
    <item>
      <title>Eigenvalue Solver Error (dfeast_scsrgv )</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041875#M20737</link>
      <description>&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;I'm trying to solve eigenvalue problem for large sparse matrices using&amp;nbsp;dfeast_scsrgv function. The function works fine for small problems (ex: 8*8 sparse matrix) but it gives System.StackOverflowException error for larger problems( ex: 200*200 sparse matrix) . I'm using Visual Studio 2008 and MKL version 11 with most recent updates installed. My system is windows 64 bit and the programming language is C++. Following I provided the eigenvalue solver code that I'm using. In debug mode when I reach &amp;nbsp;dfeast_scsrgv &amp;nbsp;line it gives me Stack Overflow error. I do not think I am using any infinite loop or unnecessary large arrays. I would appreciate if someone can help me to fix the problem. Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE style="color: rgb(0, 0, 0); line-height: normal;"&gt;&lt;SPAN style="font-size: 10px; line-height: 15.43420696258545px;"&gt;[cpp]&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;
//Convert stiffness and mass matrix to CSR format - Seldon library
int NumStiff = M_GStiff.GetDataSize();&amp;nbsp; &amp;nbsp;
Vector&amp;lt;double&amp;gt; V_GStiffVal &amp;nbsp; (NumStiff);&amp;nbsp; &amp;nbsp; 
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GStiffColInd(NumStiff);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GStiffRowPtr(PrbDim+1);
ConvertToCSR(M_GStiff, prop, V_GStiffRowPtr, V_GStiffColInd, V_GStiffVal); &amp;nbsp;
&amp;nbsp;
int NumMass = M_GMass.GetDataSize();
Vector&amp;lt;double&amp;gt; V_GMassVal &amp;nbsp; (NumMass);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GMassColInd(NumMass);
Vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_GMassRowPtr(PrbDim+1);
ConvertToCSR(M_GMass, prop, V_GMassRowPtr, V_GMassColInd, V_GMassVal); &amp;nbsp;&amp;nbsp;
&amp;nbsp;
//Release memory
M_GStiff.Clear();
M_GMass.Clear();
&amp;nbsp;
//Convert Seldon format to typical C array
double* a = V_GStiffVal.GetData();
int* &amp;nbsp; ia = V_GStiffRowPtr.GetData();
int* &amp;nbsp; ja = V_GStiffColInd.GetData(); &amp;nbsp;&amp;nbsp;
&amp;nbsp;
double* b = V_GMassVal.GetData();
int* &amp;nbsp; ib = V_GMassRowPtr.GetData();
int* &amp;nbsp; jb = V_GMassColInd.GetData();
&amp;nbsp;
// Convert matrix from 0-based C-notation to Fortran 1-based
int nnz = ia[PrbDim];&amp;nbsp;
for (int i = 0; i &amp;lt; PrbDim+1; i++) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ia&lt;I&gt; += 1; &amp;nbsp; &amp;nbsp;
for (int i = 0; i &amp;lt; nnz; i++) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ja&lt;I&gt; += 1; &amp;nbsp;
&amp;nbsp;
for (int i = 0; i &amp;lt; PrbDim+1; i++)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;ib&lt;I&gt; += 1;
for (int i = 0; i &amp;lt; nnz; i++)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jb&lt;I&gt; += 1;
&amp;nbsp;
// Initialize variables for the solver
double Error &amp;nbsp; &amp;nbsp;= 0;
int &amp;nbsp; &amp;nbsp;Loop &amp;nbsp; &amp;nbsp; = 0;
int &amp;nbsp; &amp;nbsp;NumMode &amp;nbsp;= 10;
double Emin &amp;nbsp; &amp;nbsp; = 0;
double Emax &amp;nbsp; &amp;nbsp; = pow(10.0,10.0); &amp;nbsp; &amp;nbsp;
int &amp;nbsp; &amp;nbsp;Flag &amp;nbsp; &amp;nbsp; = 0;
char &amp;nbsp; MTyp &amp;nbsp; &amp;nbsp; = 'U';
int &amp;nbsp; &amp;nbsp;NumEigen = NumMode;
&amp;nbsp;
vector&amp;lt;int&amp;gt; &amp;nbsp; &amp;nbsp;V_FPM (128,0);
vector&amp;lt;double&amp;gt; V_Eigen(NumMode,0);
vector&amp;lt;double&amp;gt; V_Res (NumMode,0);&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;
V_FPM[0] &amp;nbsp;= 1;
V_FPM[1] &amp;nbsp;= 8;
V_FPM[2] &amp;nbsp;= 12;
V_FPM[3] &amp;nbsp;= 20;
V_FPM[4] &amp;nbsp;= 0;
V_FPM[5] &amp;nbsp;= 0;
V_FPM[6] &amp;nbsp;= 5;
V_FPM[13] = 0;
V_FPM[63] = 0;
&amp;nbsp;
int* &amp;nbsp; &amp;nbsp;P_FPM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_FPM[0];
double* P_Eigen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_Eigen[0]; &amp;nbsp;
double* P_Res &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;amp;V_Res[0]; &amp;nbsp; &amp;nbsp;
double dDum;
&amp;nbsp;
// Call Eigenvalue Solver
dfeast_scsrgv (&amp;amp;MTyp, &amp;amp;PrbDim, a, ia, ja, b, ib, jb,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; P_FPM, &amp;amp;Error, &amp;amp;Loop, &amp;amp;Emin, &amp;amp;Emax, &amp;amp;NumMode, P_Eigen, &amp;amp;dDum, &amp;amp;NumEigen, P_Res, &amp;amp;Flag);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 10px; line-height: 15.43420696258545px;"&gt;[/cpp]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 00:28:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041875#M20737</guid>
      <dc:creator>vahid_s_</dc:creator>
      <dc:date>2014-06-09T00:28:19Z</dc:date>
    </item>
    <item>
      <title>Can you give the reproducer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041876#M20738</link>
      <description>&lt;P&gt;Can you give the reproducer which we can compile and debug the problem on our side?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 03:16:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041876#M20738</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-06-09T03:16:33Z</dc:date>
    </item>
    <item>
      <title>Attached is my C++ code,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041877#M20739</link>
      <description>&lt;P&gt;Attached is my C++ code, sparse matrices example (binary file) and seldon library.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 03:40:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041877#M20739</guid>
      <dc:creator>vahid_s_</dc:creator>
      <dc:date>2014-06-09T03:40:18Z</dc:date>
    </item>
    <item>
      <title>I see the failure on my side</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041878#M20740</link>
      <description>&lt;P&gt;I see the failure on my side with &amp;nbsp;ml v.11.1. We will debug the code and will back in the case any update.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 06:10:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041878#M20740</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-06-09T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Thanks Gennady. Would you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041879#M20741</link>
      <description>&lt;P&gt;Thanks Gennady. Would you please let me know approximately how long it will take to fix the problem and make the new update? Thank you again for your help and time.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:01:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041879#M20741</guid>
      <dc:creator>vahid_s_</dc:creator>
      <dc:date>2014-06-09T17:01:51Z</dc:date>
    </item>
    <item>
      <title>please see into attachment</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041880#M20742</link>
      <description>&lt;P&gt;please see into attachment your code which was slightly modified. the modified part marked by --GF--&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:15:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041880#M20742</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-06-11T06:15:52Z</dc:date>
    </item>
    <item>
      <title>it would also make sense to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041881#M20743</link>
      <description>&lt;P&gt;it would also make sense to notice the output results I have on my side:&lt;/P&gt;

&lt;P&gt;Intel MKL Extended Eigensolvers: double precision driver&lt;BR /&gt;
	Intel MKL Extended Eigensolvers: List of input parameters fpm(1:64)-- if different from default&lt;BR /&gt;
	Intel MKL Extended Eigensolvers: fpm(1)=1&lt;BR /&gt;
	Intel MKL Extended Eigensolvers: fpm(11)=0&lt;BR /&gt;
	Search interval [0.000000000000000e+000;1.000000000000000e+003]&lt;BR /&gt;
	Intel MKL Extended Eigensolvers: Size subspace 3&lt;BR /&gt;
	#Loop | #Eig &amp;nbsp;| &amp;nbsp; &amp;nbsp;Trace &amp;nbsp; &amp;nbsp; | Error-Trace | &amp;nbsp;Max-Residual&lt;BR /&gt;
	Intel MKL Extended Eigensolvers: Resize subspace 1&lt;BR /&gt;
	0,1,1.749966841512209e+000,1.000000000000000e+000,6.859928113611897e-015&lt;BR /&gt;
	Intel MKL Extended Eigensolvers have successfully converged (to desired tolerance).&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dfeast_scsrgv &amp;nbsp;PASSED&lt;BR /&gt;
	1.74997&lt;BR /&gt;
	END!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:17:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-Solver-Error-dfeast-scsrgv/m-p/1041881#M20743</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-06-11T06:17:03Z</dc:date>
    </item>
  </channel>
</rss>

