<?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 Thank you for your advice! in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967487#M16307</link>
    <description>&lt;P&gt;Thank you for your advice!&lt;/P&gt;
&lt;P&gt;Now our example is working properly. The problem was that the row and column indices were 0-based instead of 1-based as MKL FEAST needs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2013 14:25:12 GMT</pubDate>
    <dc:creator>aurora</dc:creator>
    <dc:date>2013-05-27T14:25:12Z</dc:date>
    <item>
      <title>Error in feast eigenvalue solver for sparse matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967480#M16300</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We are trying to use the MKL FEAST 11.0.3.1 solver for symmetric sparse CSR matrices of doubles. The call we are using is something like:&lt;/P&gt;
&lt;P&gt;--------------------------------------------&lt;/P&gt;
&lt;P&gt;#include "mkl.h"&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;//declaring &amp;amp; preparing data...&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;feastinit(&amp;amp;feastparam[0]); &amp;nbsp;&amp;nbsp;dfeast_scsrev(&amp;amp;UPLO,&amp;amp;N,sa,ia,ja,feastparam,&amp;amp;epsout,&amp;amp;loop,&amp;amp;Emin,&amp;amp;Emax,&amp;amp;M0,E,X,&amp;amp;M,res,&amp;amp;info);&lt;/P&gt;
&lt;P&gt;--------------------------------------------&lt;/P&gt;
&lt;P&gt;We have no warnings at compiling time, but at runtime the feast call throws an exception like this:&lt;/P&gt;
&lt;P&gt;First exception in 0x000007fee1b8249c in feast.exe: 0xC0000005: Invalid read in 0xffffffffffffffff.&lt;/P&gt;
&lt;P&gt;Which could be our mistake? Input data? Bad linkage/compiler version-mkl version combination? We are not getting any compiling warnings.&lt;/P&gt;
&lt;P&gt;Intel Composer XE 2011 Update 7 (package 258)&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Aurora&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 17:11:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967480#M16300</guid>
      <dc:creator>aurora</dc:creator>
      <dc:date>2013-05-21T17:11:44Z</dc:date>
    </item>
    <item>
      <title>It's hard to see what's wrong</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967481#M16301</link>
      <description>&lt;P&gt;It's hard to see what's wrong in the a few lines of code you've shown. Please provide your entire test code. What is your OS? How do you compile/link the code?&lt;/P&gt;
&lt;P&gt;Please first check the FEAST example in MKL: $MKLROOT/examples/solvers_eec/source/dexample_sparse_c.c. Does it work for you? &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 18:50:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967481#M16301</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-05-21T18:50:12Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;Which could be our mistake?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967482#M16302</link>
      <description>&amp;gt;&amp;gt;Which could be our mistake?

It is hard to answer without seeing your test case.

&amp;gt;&amp;gt;Input data?

See above.

&amp;gt;&amp;gt;Bad linkage/compiler version-mkl version combination?

No.</description>
      <pubDate>Wed, 22 May 2013 12:41:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967482#M16302</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-22T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Hi again, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967483#M16303</link>
      <description>&lt;P&gt;Hi again,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example that you told us worked fine. We are essentially doing the same. However we are still having problems on runtime.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are working in Windows 7 x64.&lt;/P&gt;
&lt;P&gt;//!!!!!!!!!!!!!!!&amp;nbsp;Matrix&amp;nbsp;declaration&amp;nbsp;variables&amp;nbsp;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;
&lt;P&gt;char&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UPLO='F';&amp;nbsp;&lt;/P&gt;
&lt;P&gt;const&amp;nbsp;MKL_INT&amp;nbsp;N&amp;nbsp;=&amp;nbsp;matrix_size;&lt;/P&gt;
&lt;P&gt;double&amp;nbsp;*&amp;nbsp;val&amp;nbsp;=&amp;nbsp;new&amp;nbsp;double[size];&lt;/P&gt;
&lt;P&gt;int&amp;nbsp;*&amp;nbsp;rows&amp;nbsp;=&amp;nbsp;new&amp;nbsp;int&amp;nbsp;[size_rows&amp;nbsp;+&amp;nbsp;1];&lt;/P&gt;
&lt;P&gt;int&amp;nbsp;*&amp;nbsp;cols&amp;nbsp;=&amp;nbsp;new&amp;nbsp;int&amp;nbsp;[size];&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;size;i++){ val&lt;I&gt;=matrix_CSR.pr&lt;I&gt;; }&amp;nbsp;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;(size_rows+1);i++){ rows&lt;I&gt;=matrix_CSR.jc&lt;I&gt;; }&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;size;i++){ cols&lt;I&gt;=matrix_CSR.ir&lt;I&gt;; }&amp;nbsp;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//!!!!!!!!!!!!!!!&amp;nbsp;Declaration&amp;nbsp;of&amp;nbsp;FEAST&amp;nbsp;variables&amp;nbsp;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//!!!!!!!!!!!!!!!&amp;nbsp;E&amp;nbsp;-&amp;nbsp;eigenvalues,&amp;nbsp;X&amp;nbsp;-&amp;nbsp;eigenvectors,&amp;nbsp;res&amp;nbsp;-&amp;nbsp;residual&amp;nbsp;!!!!!!!!!!!!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MKL_INT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fpm[128];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Emin,&amp;nbsp;Emax;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;epsout;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MKL_INT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;loop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MKL_INT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;L&amp;nbsp;=&amp;nbsp;20;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MKL_INT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;M0,M,&amp;nbsp;info;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;E&amp;nbsp;=&amp;nbsp;&amp;nbsp;new&amp;nbsp;double&amp;nbsp;&lt;N&gt;;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;N;i++){ E&lt;I&gt;=0; }&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;X&amp;nbsp;=&amp;nbsp;&amp;nbsp;new&amp;nbsp;double&amp;nbsp;[N*N];&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;N*N;i++){ X&lt;I&gt;=0; }&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;res&amp;nbsp;=&amp;nbsp;&amp;nbsp;new&amp;nbsp;double&amp;nbsp;&lt;N&gt;;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;for(int&amp;nbsp;i=0;i&amp;lt;N;i++){ res&lt;I&gt;=0; }&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;//!!!!!!!!!!!!!!&amp;nbsp;search&amp;nbsp;interval&amp;nbsp;[Emin,Emax]&amp;nbsp;including&amp;nbsp;M&amp;nbsp;eigenpairs&amp;nbsp;!!!!!!!!!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Emin=(double)-0.5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Emax=(double)0.01;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;M0=L;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;M=M0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf("&amp;nbsp;Search&amp;nbsp;interval&amp;nbsp;[&amp;nbsp;%.15e,&amp;nbsp;%.15e&amp;nbsp;&amp;nbsp;]&amp;nbsp;&amp;nbsp;\n",&amp;nbsp;Emin,&amp;nbsp;Emax);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;epsout=(double)0.0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;loop=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;info=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;1.&amp;nbsp;Call&amp;nbsp;&amp;nbsp;FEASTINIT&amp;nbsp;to&amp;nbsp;define&amp;nbsp;the&amp;nbsp;default&amp;nbsp;values&amp;nbsp;for&amp;nbsp;the&amp;nbsp;input&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FEAST&amp;nbsp;parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feastinit(fpm);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fpm[0]=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;2.&amp;nbsp;Solve&amp;nbsp;the&amp;nbsp;standard&amp;nbsp;Ax=ex&amp;nbsp;eigenvalue&amp;nbsp;problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dfeast_scsrev(&amp;amp;UPLO,&amp;amp;N,val,rows,cols,fpm,&amp;amp;epsout,&amp;amp;loop,&amp;amp;Emin,&amp;amp;Emax,&amp;amp;M0,E,X,&amp;amp;M,res,&amp;amp;info);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(&amp;nbsp;info&amp;nbsp;!=&amp;nbsp;0&amp;nbsp;)&amp;nbsp;return&amp;nbsp;1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2013 14:17:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967483#M16303</guid>
      <dc:creator>aurora</dc:creator>
      <dc:date>2013-05-22T14:17:20Z</dc:date>
    </item>
    <item>
      <title>It could be a problem in your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967484#M16304</link>
      <description>&lt;P&gt;It could be a problem in your input data. How big is your matrix? What are the values for variables such as N, size, and size_row? Can you attach your matrix please?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2013 19:30:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967484#M16304</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-05-22T19:30:55Z</dc:date>
    </item>
    <item>
      <title>Hi again, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967485#M16305</link>
      <description>&lt;P&gt;Hi again,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find in the attachment the input data of our example. We have written the matrix values and the row and column info arrays of the CSR matrix.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 09:46:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967485#M16305</guid>
      <dc:creator>aurora</dc:creator>
      <dc:date>2013-05-23T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Thanks for providing the test</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967486#M16306</link>
      <description>&lt;P&gt;Thanks for providing the test matrix. Please check a few things in your code:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Make sure that row and column indices are 1-based instead of 0-based. This is an requirement of using MKL FEAST.&lt;/LI&gt;
&lt;LI&gt;Make sure the column indices for each row are sorted in increasing order.&lt;/LI&gt;
&lt;LI&gt;Check your file I/O. The exception you got seems to indicate a problem in reading data from file. &lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 18:36:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967486#M16306</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-05-24T18:36:16Z</dc:date>
    </item>
    <item>
      <title>Thank you for your advice!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967487#M16307</link>
      <description>&lt;P&gt;Thank you for your advice!&lt;/P&gt;
&lt;P&gt;Now our example is working properly. The problem was that the row and column indices were 0-based instead of 1-based as MKL FEAST needs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2013 14:25:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967487#M16307</guid>
      <dc:creator>aurora</dc:creator>
      <dc:date>2013-05-27T14:25:12Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;&gt;&gt;First exception in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967488#M16308</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;First &lt;STRONG&gt;exception&lt;/STRONG&gt; in 0x000007fee1b8249c in feast.exe: &lt;STRONG&gt;0xC0000005&lt;/STRONG&gt;: Invalid read in 0xffffffffffffffff...
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;- Check your file I/O. The exception you got seems to indicate a problem in reading data from file

'Aurora' confirmed that actually it was an Out-Of-Bound problem ( memory related problem ) and it was not related to any I/O operations with files.

Anyway, it is good to know that in some MKL processing indices are 1-based. Thanks for the note.</description>
      <pubDate>Tue, 28 May 2013 13:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967488#M16308</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-28T13:31:00Z</dc:date>
    </item>
    <item>
      <title>My take on this routine is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967489#M16309</link>
      <description>&lt;P&gt;Seems hard to learn how to use this routine at first, but if one goes through the example and runs it, it would become clearer.&amp;nbsp; Finally I got my problem resolved with the fixes for indices and column-oriented sparse matrix.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2014 23:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-feast-eigenvalue-solver-for-sparse-matrices/m-p/967489#M16309</guid>
      <dc:creator>Victor_N_</dc:creator>
      <dc:date>2014-02-23T23:54:00Z</dc:date>
    </item>
  </channel>
</rss>

