<?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: call dgesvx problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873024#M8654</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&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;
&lt;P class="MsoNormal" style="background: #e5e5e5; margin: 0in 0in 0pt;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;Dear Allison,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="background: #e5e5e5; margin: 0in 0in 0pt;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;at this case I would recommend you submit the issue against MKL to Premier support( &lt;A title="https://premier.intel.com/" href="https://premier.intel.com/"&gt;&lt;SPAN style="color: black; text-decoration: none; text-underline: none;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://premier.intel.com/" target="_blank"&gt;https://premier.intel.com/&lt;/A&gt;&lt;/SPAN&gt; ). Gennady&lt;/EM&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2008 14:44:06 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2008-10-14T14:44:06Z</dc:date>
    <item>
      <title>call dgesvx problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873020#M8650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to call the dgesvx routine in C++ using MKL 10.0.3.021 (windows, visual studio 2005 usingIntel C++ compiler). The routine returns -1 through the info argument indicating the first parameter has an illegal value. I have checked the first andall parameters and can't find the problem. The routine generates an access violation - I assume due to incorrectly specified argument(s) thatareexceedingbounds,but, again, I can'tdetermine which argument is the problem. I know the n, nrhs, a, lda, ipiv, b, ldb, and info arguments are OK since I use them correctly in a dgesv call. I have attacted the related code segment; the matrix 'system' is passed into this routine and I use it to initialize the matrix a which is input to dgesvx.&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;const int AMPA_M = 19;&lt;BR /&gt;const int AMPA_N = 19;&lt;BR /&gt;mkl_set_num_threads(1);&lt;BR /&gt;// the matrix will be equilibrated if necessary, then copied to af and factored.&lt;BR /&gt;char fact[1];&lt;BR /&gt;fact[0] = 'E';&lt;BR /&gt;char trans[1]; &lt;BR /&gt;trans[0] = 'N';&lt;BR /&gt;char equed[1];&lt;BR /&gt;equed[0] = 'R';&lt;BR /&gt;&lt;BR /&gt;// n is the number of linear equations&lt;BR /&gt;int n = AMPA_M;&lt;BR /&gt;int nrhs = 1;&lt;BR /&gt;double a[AMPA_M][AMPA_N];&lt;BR /&gt;double af[AMPA_M][AMPA_N];&lt;BR /&gt;// row i of matrix a needs to be column i of original system that is&lt;BR /&gt;// input to this function&lt;BR /&gt;for (int column = 0; column &amp;lt; n; column++){&lt;BR /&gt;for (int row = 0; row &amp;lt; n; row++){&lt;BR /&gt;a[row][column] = system[column + 1][row + 1];&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;for (int row = 0; row &amp;lt; n; row++){&lt;BR /&gt;for (int column = 0; column &amp;lt; n; column++){&lt;BR /&gt;af[row][column] = 0;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;int lda = n;&lt;BR /&gt;int ldaf = n;&lt;BR /&gt;int ldb = n;&lt;BR /&gt;int ldx = n;&lt;BR /&gt;int iwork = 4 * AMPA_N;&lt;BR /&gt;//double rwork = 2*n;&lt;BR /&gt;double b[AMPA_M];&lt;BR /&gt;for (int i = 0; i &amp;lt; AMPA_N; i++){&lt;BR /&gt;b&lt;I&gt; = system[i + 1][AMPA_N + 1];&lt;BR /&gt;}&lt;BR /&gt;const int work_dim = 4 * AMPA_M;&lt;BR /&gt;double work[work_dim];&lt;BR /&gt;for (int i = 0; i &amp;lt; work_dim; i++){&lt;BR /&gt;work&lt;I&gt; = 0;&lt;BR /&gt;}&lt;BR /&gt;int ipiv[AMPA_M];&lt;BR /&gt;double r[AMPA_M];&lt;BR /&gt;double c[AMPA_M];&lt;BR /&gt;double x[AMPA_M];&lt;BR /&gt;double ferr[AMPA_M];&lt;BR /&gt;double berr[AMPA_M];&lt;BR /&gt;for (int i = 0; i &amp;lt; AMPA_M; i++){&lt;BR /&gt;ipiv&lt;I&gt; = 0;&lt;BR /&gt;r&lt;I&gt; = 0;&lt;BR /&gt;c&lt;I&gt; = 0;&lt;BR /&gt;x&lt;I&gt; = 0;&lt;BR /&gt;ferr&lt;I&gt; = 0;&lt;BR /&gt;berr&lt;I&gt; = 0;&lt;BR /&gt;}&lt;BR /&gt;double rcond = 0;&lt;BR /&gt;int info = -25;&lt;BR /&gt;dgesvx(fact, trans, &amp;amp;n, &amp;amp;nrhs, (*a), &amp;amp;lda, (*af), &amp;amp;ldaf, ipiv, equed, r, c, b, &amp;amp;ldb, x, &amp;amp;ldx, &amp;amp;rcond, ferr, berr, work, &amp;amp;iwork, &amp;amp;info); &lt;BR /&gt;//dgesv(&amp;amp;n, &amp;amp;nrhs, (*a), &amp;amp;lda, ipiv, b, &amp;amp;ldb, &amp;amp;info);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;for (int i = n - 1; i &amp;gt;= 0; i--){&lt;BR /&gt;x_return&lt;I&gt; = b&lt;I&gt;;&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;return info;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2008 18:01:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873020#M8650</guid>
      <dc:creator>Allison_G_</dc:creator>
      <dc:date>2008-10-06T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: call dgesvx problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873021#M8651</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;At the first glance all your parameters looks Ok,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;So slightly changed your code &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana; mso-ansi-language: RU;" lang="RU"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: " courier="" new=""&gt;a[row][column] = (&lt;SPAN style="color: blue;"&gt;double&lt;/SPAN&gt;)(column + 1)*(row + 1);&lt;SPAN style="color: green;"&gt; //;system[column + 1][row + 1];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: " courier="" new=""&gt;b&lt;I&gt; = (&lt;SPAN style="color: blue;"&gt;double&lt;/SPAN&gt;)(i+1)*(AMPA_N + 1);&lt;SPAN style="color: green;"&gt;//system[i + 1][AMPA_N + 1];&lt;/SPAN&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana; mso-ansi-language: RU;" lang="RU"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;and compiled under VS2005 with the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: green; font-family: " courier="" new=""&gt;addittianal dependencies:&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: green; font-family: " courier="" new=""&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libguide40.lib&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: green; font-family: " courier="" new=""&gt;and as a result I ve got:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; color: green; font-family: " courier="" new=""&gt;info == 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; color: green; font-family: " courier="" new=""&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;--Gennady&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2008 11:05:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873021#M8651</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-07T11:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: call dgesvx problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873022#M8652</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P&gt;Hello, thanks for your reply.&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;I made the code changes you didwithout making any additional dependency changes and I got the same info == 2. But this doesn't solve my problem. This means that U is exactlysingular so apparently (I'm not sure but makes logical sense) the routine didn't go on processing as it would have with a "real" matrix that is nonsingular. With a nonsingular matrix the routine will go on and solve for x and compute error bounds. Somewhere in this processing it is generating the -1 based on my arguments.&lt;/P&gt;
&lt;P&gt;Allison&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2008 16:38:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873022#M8652</guid>
      <dc:creator>Allison_G_</dc:creator>
      <dc:date>2008-10-08T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: call dgesvx problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873023#M8653</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/281115"&gt;asgehrke&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;
&lt;P&gt;Hello, thanks for your reply.&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;I made the code changes you didwithout making any additional dependency changes and I got the same info == 2. But this doesn't solve my problem. This means that U is exactlysingular so apparently (I'm not sure but makes logical sense) the routine didn't go on processing as it would have with a "real" matrix that is nonsingular. With a nonsingular matrix the routine will go on and solve for x and compute error bounds. Somewhere in this processing it is generating the -1 based on my arguments.&lt;/P&gt;
&lt;P&gt;Allison&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:40:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873023#M8653</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-14T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: call dgesvx problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873024#M8654</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&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;
&lt;P class="MsoNormal" style="background: #e5e5e5; margin: 0in 0in 0pt;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;Dear Allison,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="background: #e5e5e5; margin: 0in 0in 0pt;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;at this case I would recommend you submit the issue against MKL to Premier support( &lt;A title="https://premier.intel.com/" href="https://premier.intel.com/"&gt;&lt;SPAN style="color: black; text-decoration: none; text-underline: none;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://premier.intel.com/" target="_blank"&gt;https://premier.intel.com/&lt;/A&gt;&lt;/SPAN&gt; ). Gennady&lt;/EM&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:44:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/call-dgesvx-problem/m-p/873024#M8654</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-14T14:44:06Z</dc:date>
    </item>
  </channel>
</rss>

