<?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: zheevd cannot converge on p4 in some cases in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874079#M8763</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;I am afraid, I didn't understand how do link your code.&lt;BR /&gt;Which libraries were used for linking your application?&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I link to(when i use static link to mkl) &lt;BR /&gt;mkl_core.lib &lt;BR /&gt;mkl_intel_c.lib &lt;BR /&gt;mkl_intel_thread.lib &lt;BR /&gt;libguide.lib&lt;BR /&gt;&lt;BR /&gt;when i use dynamic link i use&lt;BR /&gt;mkl_core_dll.lib &lt;BR /&gt;mkl_intel_c_dll.lib&lt;BR /&gt; mkl_intel_thread_dll.lib&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Mar 2009 10:48:06 GMT</pubDate>
    <dc:creator>dgorlov</dc:creator>
    <dc:date>2009-03-28T10:48:06Z</dc:date>
    <item>
      <title>zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874076#M8760</link>
      <description>&lt;P&gt;hello.&lt;BR /&gt;&lt;BR /&gt;I found a strange behaviour of zheevd function on pentium 4 processor &lt;BR /&gt;on some real matrices or order 64&lt;BR /&gt;on core2duo processor these program works correct&lt;BR /&gt;&lt;BR /&gt;test program:&lt;BR /&gt;it fails with message "bug - process not converged."... only on p4 with sse3&lt;BR /&gt;program was built using Visual Studio 2008 and MKL 10.1.1.022 with static link or dymamic link&lt;BR /&gt;when i use dynamic link, there was no problem when i remove mkl_p4p.dll ...&lt;BR /&gt;&lt;BR /&gt;#define _CRT_SECURE_NO_WARNINGS&lt;/P&gt;
&lt;P&gt;#include &lt;STDIO.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;
&lt;P&gt;#include &lt;MATH.H&gt;&lt;/MATH.H&gt;&lt;/P&gt;
&lt;P&gt;#include &lt;CRTDBG.H&gt;&lt;/CRTDBG.H&gt;&lt;/P&gt;
&lt;P&gt;#include &lt;STRING.H&gt;&lt;/STRING.H&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#include "mkl_lapack.h"&lt;/P&gt;
&lt;P&gt;#include "mkl_service.h"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#define INPUT_FROM_FILE&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#define MAX 1000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; typedef struct {&lt;/P&gt;
&lt;P&gt; int work_size;&lt;/P&gt;
&lt;P&gt; int rwork_size;&lt;/P&gt;
&lt;P&gt; int iwork_size;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; MKL_Complex16* work;&lt;/P&gt;
&lt;P&gt; double* rwork;&lt;/P&gt;
&lt;P&gt; int* iwork;&lt;/P&gt;
&lt;P&gt; } EV;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; void init(int n, EV &amp;amp;data)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; int info;&lt;/P&gt;
&lt;P&gt; MKL_Complex16 work_size_d = {0, 0};&lt;/P&gt;
&lt;P&gt; double rwork_size_d = 0;&lt;/P&gt;
&lt;P&gt; int iwork_size_d = 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; int const_m1 = -1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; zheevd("V", "L", &amp;amp;n, 0, &amp;amp;n, 0, &amp;amp;work_size_d, &amp;amp;const_m1, &amp;amp;rwork_size_d, &amp;amp;const_m1, &amp;amp;iwork_size_d, &amp;amp;const_m1, &amp;amp;info);&lt;/P&gt;
&lt;P&gt; _ASSERT(!info);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; data.work_size = (int)(floor(work_size_d.real + 0.5));&lt;/P&gt;
&lt;P&gt; data.rwork_size = (int)(floor(rwork_size_d + 0.5));&lt;/P&gt;
&lt;P&gt; data.iwork_size = iwork_size_d;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; data.work = (MKL_Complex16*)malloc(data.work_size * sizeof(MKL_Complex16));&lt;/P&gt;
&lt;P&gt; data.rwork = (double*)malloc(data.rwork_size * sizeof(double));&lt;/P&gt;
&lt;P&gt; data.iwork = (int*)malloc(data.iwork_size * sizeof(int));&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; int ev(MKL_Complex16 *matrix, double *eigenvals, int n, EV &amp;amp;workBuffer)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; int info;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; zheevd("V", "L", &amp;amp;n, matrix, &amp;amp;n, eigenvals, workBuffer.work, &amp;amp;workBuffer.work_size, workBuffer.rwork, &amp;amp;workBuffer.rwork_size, workBuffer.iwork, &amp;amp;workBuffer.iwork_size, &amp;amp;info);&lt;/P&gt;
&lt;P&gt; if(info != 0)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; printf("bug - process not converged. info = %d\n", info);&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt; return info;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; MKL_Complex16 inp_matrix[MAX * MAX];&lt;/P&gt;
&lt;P&gt; MKL_Complex16 eigenvectors[MAX * MAX];&lt;/P&gt;
&lt;P&gt; double eigenvals[MAX];&lt;/P&gt;
&lt;P&gt;//===================================&lt;/P&gt;
&lt;P&gt;int main(void) {&lt;/P&gt;
&lt;P&gt; int n;&lt;/P&gt;
&lt;P&gt; FILE *inf;&lt;/P&gt;
&lt;P&gt; EV e1;&lt;/P&gt;
&lt;P&gt; memset(&amp;amp;e1, 0, sizeof(EV));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; inf = fopen("bug_matrix_30.txt", "rt");&lt;/P&gt;
&lt;P&gt; if(inf == 0)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; printf("cannot open file\n");&lt;/P&gt;
&lt;P&gt; return 1;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt; fscanf(inf, "%d", &amp;amp;n);&lt;/P&gt;
&lt;P&gt; init(n, e1);&lt;/P&gt;
&lt;P&gt; for(int i = 0; i &amp;lt; n; ++i)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; for(int j = 0; j &amp;lt; n; ++j)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt;  fscanf(inf, "%lf", &amp;amp;inp_matrix[i * n + j].real);&lt;/P&gt;
&lt;P&gt;  inp_matrix[i * n + j].imag = 0;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; for(int i = 0; i &amp;lt; n; ++i)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; for(int j = 0; j &amp;lt; n; ++j)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; if(fabs(inp_matrix[i * n + j].real - inp_matrix[j * n + i].real) &amp;gt; 1e-10)&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; printf("bug = matrix not symmetric\n");&lt;/P&gt;
&lt;P&gt; return 1;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt; memcpy(eigenvectors, inp_matrix, sizeof(inp_matrix));&lt;/P&gt;
&lt;P&gt; int r = ev(eigenvectors, eigenvals, n, e1);&lt;/P&gt;
&lt;P&gt; if&lt;/P&gt;
&lt;P&gt; {&lt;/P&gt;
&lt;P&gt; printf("bug - cannot converge. info = %d\n", r);&lt;/P&gt;
&lt;P&gt; return 1;&lt;/P&gt;
&lt;P&gt; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; fclose(inf);&lt;/P&gt;
&lt;P&gt; printf("ok");&lt;/P&gt;
&lt;P&gt; return 0;&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:42:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874076#M8760</guid>
      <dc:creator>dgorlov</dc:creator>
      <dc:date>2009-03-24T18:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874077#M8761</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;there is sample program and input file&lt;BR /&gt;files attached&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:49:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874077#M8761</guid>
      <dc:creator>dgorlov</dc:creator>
      <dc:date>2009-03-24T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874078#M8762</link>
      <description>&lt;BR /&gt;
&lt;P&gt;I am afraid, I didn't understand how do link your code.&lt;BR /&gt;Which libraries were used for linking your application?&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2009 18:06:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874078#M8762</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-26T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874079#M8763</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;I am afraid, I didn't understand how do link your code.&lt;BR /&gt;Which libraries were used for linking your application?&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I link to(when i use static link to mkl) &lt;BR /&gt;mkl_core.lib &lt;BR /&gt;mkl_intel_c.lib &lt;BR /&gt;mkl_intel_thread.lib &lt;BR /&gt;libguide.lib&lt;BR /&gt;&lt;BR /&gt;when i use dynamic link i use&lt;BR /&gt;mkl_core_dll.lib &lt;BR /&gt;mkl_intel_c_dll.lib&lt;BR /&gt; mkl_intel_thread_dll.lib&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Mar 2009 10:48:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874079#M8763</guid>
      <dc:creator>dgorlov</dc:creator>
      <dc:date>2009-03-28T10:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874080#M8764</link>
      <description>&lt;DIV style="margin:0px;"&gt;Do you have the similar output? see below:&lt;BR /&gt;"test.exe bug_matrix_30.txt&lt;BR /&gt;bug - process not converged. info = 518&lt;BR /&gt;bug - cannot converge. info = 518"&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 06:35:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874080#M8764</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-31T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: zheevd cannot converge on p4 in some cases</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874081#M8765</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Do you have the similar output? see below:&lt;BR /&gt;"test.exe bug_matrix_30.txt&lt;BR /&gt;bug - process not converged. info = 518&lt;BR /&gt;bug - cannot converge. info = 518"&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Yes. &lt;BR /&gt;My output was identical &lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 15:25:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zheevd-cannot-converge-on-p4-in-some-cases/m-p/874081#M8765</guid>
      <dc:creator>dgorlov</dc:creator>
      <dc:date>2009-03-31T15:25:15Z</dc:date>
    </item>
  </channel>
</rss>

