<?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 Hi Fiona, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073775#M22426</link>
    <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;

&lt;P&gt;Could you clarify this sentence in the &lt;A href="https://software.intel.com/en-us/node/520868"&gt;MKL developer reference of the LAPACK C convention&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;If you prefer to allocate workspace arrays yourself, the LAPACK C interface provides alternate interfaces with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;work&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;parameters. The name of the alternate interface is the same as the LAPACK C interface with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;_work&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;&amp;nbsp;appended.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;for what I understand,&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px; line-height: 20.8px;"&gt;LAPACKE_sbdsdc_work&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;STRONG&gt;is&lt;/STRONG&gt; part of the &lt;/SPAN&gt;&lt;FONT color="#666666" face="Arial, Tahoma, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px;"&gt;LAPACK C interface available in MKL.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#666666" face="Arial, Tahoma, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px;"&gt;Samuel&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 13:49:16 GMT</pubDate>
    <dc:creator>Samuel_D_1</dc:creator>
    <dc:date>2016-08-03T13:49:16Z</dc:date>
    <item>
      <title>Issues with LAPACKE_xxx_work functions and workspace query</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073773#M22424</link>
      <description>&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;Hi,&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;My question follows up this old thread:&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;A href="https://software.intel.com/fr-fr/forums/intel-math-kernel-library/topic/497736" target="_blank"&gt;https://software.intel.com/fr-fr/forums/intel-math-kernel-library/topic/497736&lt;/A&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I have a similar problem with&amp;nbsp;LAPACKE_dsytrf_work and other &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;LAPACKE_xxx_work functions&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;. Using Gennady's code:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;    int work_sz = -1; // workspace query; optimal size is returned in tmp
    info = LAPACKE_dsytrf_work(LAPACK_ROW_MAJOR, 'L', m, NULL, m, NULL, (double *)&amp;amp;tmp, work_sz);&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I get LAPACKE_dsytrf_work fails with "Parameter 3 was incorrect"&lt;/SPAN&gt;:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 19.512px;"&gt;Major version:           11
Minor version:           3
Update version:          3
Product status:          Product
Build:                   20160413
Processor optimization:  Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors
================================================================

Intel MKL ERROR: Parameter 3 was incorrect on entry to DSYTRF.
info=-4 tmp=-92559631349317830736831783200707727132248687965119994463780864.0000&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;When doing a workspace query, NULL for a and ipiv should be valid parameters, right? It seems that passing a dummy pointer workaround the issue only on the surface. Visual Studio reports a stack corruption around ipiv:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px; line-height: 19.512px;"&gt;Run-Time Check Failure #2 - Stack around the variable '&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;ipiv&lt;/SPAN&gt;' was corrupted.&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;As the OP mentioned, passing some allocated space (e.g. int ipiv[10]) kinda works but I would prefer a better option.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Samuel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 14:34:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073773#M22424</guid>
      <dc:creator>Samuel_D_1</dc:creator>
      <dc:date>2016-07-27T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Hi Samuel,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073774#M22425</link>
      <description>&lt;P&gt;Hi Samuel,&lt;/P&gt;

&lt;P&gt;This function is not mkl function, it is function defined by Netlib as open source library. If you are going to use netlib, it should not be problem with MKL. The 'LAPACKE_dsytrf_work' call "LAPACK_dsytrf" inside of function. Please read &lt;A href="http://www.netlib.org/lapack/explore-html/d2/dd6/lapacke__dsytrf__work_8c_source.html"&gt;LAPACK_dsytrf_work.c&lt;/A&gt; in netlib official website. Try to call function "LAPACK_dsytrf" directly or choose to use mkl function 'dsytrf' defined in mkl_lapack.h.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:09:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073774#M22425</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2016-08-03T06:09:15Z</dc:date>
    </item>
    <item>
      <title>Hi Fiona,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073775#M22426</link>
      <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;

&lt;P&gt;Could you clarify this sentence in the &lt;A href="https://software.intel.com/en-us/node/520868"&gt;MKL developer reference of the LAPACK C convention&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;If you prefer to allocate workspace arrays yourself, the LAPACK C interface provides alternate interfaces with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;work&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;parameters. The name of the alternate interface is the same as the LAPACK C interface with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; color: rgb(102, 102, 102); font-size: 13px; line-height: 18.2px;"&gt;_work&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 18.2px;"&gt;&amp;nbsp;appended.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;for what I understand,&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px; line-height: 20.8px;"&gt;LAPACKE_sbdsdc_work&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;STRONG&gt;is&lt;/STRONG&gt; part of the &lt;/SPAN&gt;&lt;FONT color="#666666" face="Arial, Tahoma, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px;"&gt;LAPACK C interface available in MKL.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#666666" face="Arial, Tahoma, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 13px; line-height: 18.2px;"&gt;Samuel&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:49:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Issues-with-LAPACKE-xxx-work-functions-and-workspace-query/m-p/1073775#M22426</guid>
      <dc:creator>Samuel_D_1</dc:creator>
      <dc:date>2016-08-03T13:49:16Z</dc:date>
    </item>
  </channel>
</rss>

