<?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: Re:problem with potrf_scratchpad_size call in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1555719#M35639</link>
    <description>&lt;P&gt;Referring to the call found at&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2024-0/potrf-scratchpad-size.html" target="_blank"&gt;potrf_scratchpad_size (intel.com).&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scratchPadSize = oneapi::mkl::lapack::potrf_scratchpad_size&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt;(_queue, oneapi::mkl::uplo::upper, n, lda);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the value provided for&amp;nbsp;&lt;EM&gt;lda&amp;nbsp;&lt;/EM&gt;is &amp;lt; the value provided for&amp;nbsp;&lt;EM&gt;n&amp;nbsp;&lt;/EM&gt;an exception is thrown identifying the&amp;nbsp;&lt;EM&gt;lda&amp;nbsp;&lt;/EM&gt; as the bad argument. If the value for&amp;nbsp;&lt;EM&gt;lda&lt;/EM&gt; is equal to or greater than the value for&amp;nbsp;&lt;EM&gt;n &lt;/EM&gt;no exception is thrown however the &lt;EM&gt;scratchPadSize &lt;/EM&gt;retuned is 0.&amp;nbsp; In my code the value for&amp;nbsp;&lt;EM&gt;n &lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;lda &lt;/EM&gt;is set to&amp;nbsp;100 to avoid the exception.&amp;nbsp; The 100 value represents a 10x10 complex data matrix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My questions are;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Is it true/correct that&amp;nbsp; &lt;EM&gt;lda &amp;gt;= n?&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;When given values to avoid the exception is a return of 0 correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related to this issue, and to be posted separately.&amp;nbsp;&amp;nbsp;This is the first 4 successive calls to MKL LAPACK routines.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;potrf_scratchpad_size&lt;/LI&gt;&lt;LI&gt;potrf - need above to work since it uses the calculated size.&amp;nbsp; If I give it a value &amp;gt; 100 an exception is thrown on the value provided&lt;/LI&gt;&lt;LI&gt;potri _scratchpad_size - this exhibits the same problem.&lt;/LI&gt;&lt;LI&gt;potri&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 22:03:03 GMT</pubDate>
    <dc:creator>tdot</dc:creator>
    <dc:date>2023-12-19T22:03:03Z</dc:date>
    <item>
      <title>problem with potrf_scratchpad_size call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1553697#M35603</link>
      <description>&lt;P&gt;The call in question is:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;std::int64_t scratchSzF = oneapi::mkl::lapack::potrf_scratchpad_size&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt;(_queue, oneapi::mkl::uplo::upper, nnn, nnn);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In order to run without getting an invalid exception when called the 'lda' value must be= or greater than the matrix order value 'n'.&amp;nbsp; In the example above the arguments are 'nnn'.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;With 'nnn' value of 100 the call is satisfied and scratchSzF value of 0 is returned.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;- Why does 'lda' have to be equal matrix size 'n'?&amp;nbsp; In fact 'lda' it can be greater than 'n'!?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;- More importantly the return value of 0?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Running on Linux5.4.17 x86_64&lt;/LI&gt;&lt;LI&gt;mkl installed version is 2023.0.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 21:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1553697#M35603</guid>
      <dc:creator>tdot</dc:creator>
      <dc:date>2023-12-13T21:09:06Z</dc:date>
    </item>
    <item>
      <title>Re:problem with potrf_scratchpad_size call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1555168#M35628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;In the example above the arguments are 'nnn'.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could you please provide us with the example you are referring to?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And also, could you please elaborate on your issue? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Dec 2023 17:23:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1555168#M35628</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-12-18T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re:problem with potrf_scratchpad_size call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1555719#M35639</link>
      <description>&lt;P&gt;Referring to the call found at&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-dpcpp/2024-0/potrf-scratchpad-size.html" target="_blank"&gt;potrf_scratchpad_size (intel.com).&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scratchPadSize = oneapi::mkl::lapack::potrf_scratchpad_size&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt;(_queue, oneapi::mkl::uplo::upper, n, lda);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the value provided for&amp;nbsp;&lt;EM&gt;lda&amp;nbsp;&lt;/EM&gt;is &amp;lt; the value provided for&amp;nbsp;&lt;EM&gt;n&amp;nbsp;&lt;/EM&gt;an exception is thrown identifying the&amp;nbsp;&lt;EM&gt;lda&amp;nbsp;&lt;/EM&gt; as the bad argument. If the value for&amp;nbsp;&lt;EM&gt;lda&lt;/EM&gt; is equal to or greater than the value for&amp;nbsp;&lt;EM&gt;n &lt;/EM&gt;no exception is thrown however the &lt;EM&gt;scratchPadSize &lt;/EM&gt;retuned is 0.&amp;nbsp; In my code the value for&amp;nbsp;&lt;EM&gt;n &lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;lda &lt;/EM&gt;is set to&amp;nbsp;100 to avoid the exception.&amp;nbsp; The 100 value represents a 10x10 complex data matrix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My questions are;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Is it true/correct that&amp;nbsp; &lt;EM&gt;lda &amp;gt;= n?&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;When given values to avoid the exception is a return of 0 correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related to this issue, and to be posted separately.&amp;nbsp;&amp;nbsp;This is the first 4 successive calls to MKL LAPACK routines.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;potrf_scratchpad_size&lt;/LI&gt;&lt;LI&gt;potrf - need above to work since it uses the calculated size.&amp;nbsp; If I give it a value &amp;gt; 100 an exception is thrown on the value provided&lt;/LI&gt;&lt;LI&gt;potri _scratchpad_size - this exhibits the same problem.&lt;/LI&gt;&lt;LI&gt;potri&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 22:03:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1555719#M35639</guid>
      <dc:creator>tdot</dc:creator>
      <dc:date>2023-12-19T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Re:problem with potrf_scratchpad_size call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1558110#M35682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your issue internally, we will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2023 08:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-with-potrf-scratchpad-size-call/m-p/1558110#M35682</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-12-28T08:45:29Z</dc:date>
    </item>
  </channel>
</rss>

