<?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 Exception thrown for  lapack::potrf call in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Exception-thrown-for-lapack-potrf-call/m-p/1565786#M3493</link>
    <description>&lt;P&gt;Unable to identify why the following code is throwing the exception.&amp;nbsp; The code is shown below. The debugging back trace is provided in attached file.&amp;nbsp; Any ideas/help welcome and appreciated.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The following code produces a SIGABORT for the lapack::potrf call&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int64_t nnn = numFeeds * numFeeds;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::int64_t scratchSzF = lapack::potrf_scratchpad_size&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt;(_queue, uplo::lower, nnn, nnn);&lt;/DIV&gt;&lt;DIV&gt;// 0 will be returned if host is CPU,&amp;nbsp;set it to arbitrary size.&amp;nbsp; Code is running on the host; unit test&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (scratchSzF == 0) {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scratchSzF = 10 * nnn;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;std::vector&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt; input;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input.clear();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // numFeeds = 2;&amp;nbsp; WORKS, no exception thrown if using this input&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // input = {{69.51, 0}, {78.54, 8.3},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{78.54, -8.3}, {89.75, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numFeeds = 3; // exception thrown&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input = { {69.51, 0},&amp;nbsp; &amp;nbsp; &amp;nbsp;{78.54, 8.3},&amp;nbsp; &amp;nbsp;{85.55, 17.8},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {78.54, -8.3},&amp;nbsp; {89.75, 0},&amp;nbsp; &amp;nbsp; &amp;nbsp;{98.82, 9.9},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {85.55, -17.8}, {98.82, -9.9},&amp;nbsp; {109.91, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // numFeeds = 4; // exception thrown&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // input = {{69.51, 0}, {78.54, 8.3}, {85.55, 17.8}, {88.52, 29.7},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{78.54, -8.3}, {89.75, 0}, {98.82, 9.9}, {103.61, 23},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{85.55, -17.8}, {98.82, -9.9}, {109.91, 0}, {116.64, 13.9},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{88.52, -29.7}, {103.61, -23}, {116.64, -13.9}, {125.55, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::vector&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt; scratchPad(scratchSzF, {0.0});&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sycl::buffer&amp;lt;std::complex&amp;lt;double&amp;gt;, 1&amp;gt; inputBuff(input.data(), input.size());&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sycl::buffer&amp;lt;std::complex&amp;lt;double&amp;gt;, 1&amp;gt; scratchBuff(scratchPad.data(), scratchPad.size());&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // factorize THROWS here, Jenkins build reports this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Assertion false failed (located in the cancel function, line in file: 226)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Detailed description: Unhandled exception from enqueue task is caught&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lapack::potrf(_queue, uplo::lower, numFeeds, inputBuff, numFeeds, scratchBuff, scratchSzF);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _queue.wait_and_throw();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // I added the following&amp;nbsp; 2 lines instead of above.&amp;nbsp; same SIGABORT issue as above&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //_queue.wait();&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //_queue.throw_asynchronous();&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Also throws if all 'waits' are commented out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 13:57:39 GMT</pubDate>
    <dc:creator>tdot</dc:creator>
    <dc:date>2024-01-24T13:57:39Z</dc:date>
    <item>
      <title>Exception thrown for  lapack::potrf call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Exception-thrown-for-lapack-potrf-call/m-p/1565786#M3493</link>
      <description>&lt;P&gt;Unable to identify why the following code is throwing the exception.&amp;nbsp; The code is shown below. The debugging back trace is provided in attached file.&amp;nbsp; Any ideas/help welcome and appreciated.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The following code produces a SIGABORT for the lapack::potrf call&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int64_t nnn = numFeeds * numFeeds;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::int64_t scratchSzF = lapack::potrf_scratchpad_size&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt;(_queue, uplo::lower, nnn, nnn);&lt;/DIV&gt;&lt;DIV&gt;// 0 will be returned if host is CPU,&amp;nbsp;set it to arbitrary size.&amp;nbsp; Code is running on the host; unit test&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (scratchSzF == 0) {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scratchSzF = 10 * nnn;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;std::vector&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt; input;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input.clear();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // numFeeds = 2;&amp;nbsp; WORKS, no exception thrown if using this input&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // input = {{69.51, 0}, {78.54, 8.3},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{78.54, -8.3}, {89.75, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numFeeds = 3; // exception thrown&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input = { {69.51, 0},&amp;nbsp; &amp;nbsp; &amp;nbsp;{78.54, 8.3},&amp;nbsp; &amp;nbsp;{85.55, 17.8},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {78.54, -8.3},&amp;nbsp; {89.75, 0},&amp;nbsp; &amp;nbsp; &amp;nbsp;{98.82, 9.9},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {85.55, -17.8}, {98.82, -9.9},&amp;nbsp; {109.91, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // numFeeds = 4; // exception thrown&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // input = {{69.51, 0}, {78.54, 8.3}, {85.55, 17.8}, {88.52, 29.7},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{78.54, -8.3}, {89.75, 0}, {98.82, 9.9}, {103.61, 23},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{85.55, -17.8}, {98.82, -9.9}, {109.91, 0}, {116.64, 13.9},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;{88.52, -29.7}, {103.61, -23}, {116.64, -13.9}, {125.55, 0}};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::vector&amp;lt;std::complex&amp;lt;double&amp;gt;&amp;gt; scratchPad(scratchSzF, {0.0});&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sycl::buffer&amp;lt;std::complex&amp;lt;double&amp;gt;, 1&amp;gt; inputBuff(input.data(), input.size());&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sycl::buffer&amp;lt;std::complex&amp;lt;double&amp;gt;, 1&amp;gt; scratchBuff(scratchPad.data(), scratchPad.size());&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // factorize THROWS here, Jenkins build reports this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Assertion false failed (located in the cancel function, line in file: 226)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Detailed description: Unhandled exception from enqueue task is caught&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lapack::potrf(_queue, uplo::lower, numFeeds, inputBuff, numFeeds, scratchBuff, scratchSzF);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _queue.wait_and_throw();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // I added the following&amp;nbsp; 2 lines instead of above.&amp;nbsp; same SIGABORT issue as above&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //_queue.wait();&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //_queue.throw_asynchronous();&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Also throws if all 'waits' are commented out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 13:57:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Exception-thrown-for-lapack-potrf-call/m-p/1565786#M3493</guid>
      <dc:creator>tdot</dc:creator>
      <dc:date>2024-01-24T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exception thrown for  lapack::potrf call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Exception-thrown-for-lapack-potrf-call/m-p/1587522#M3632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/329059"&gt;@tdot&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In order to investigate further, we need a complete reproducer that we can compile and execute to see the problem. Please provide a reproducer and exact commands used to reproduce the issue mentioned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 22:47:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Exception-thrown-for-lapack-potrf-call/m-p/1587522#M3632</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-04-08T22:47:25Z</dc:date>
    </item>
  </channel>
</rss>

