<?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 The first call, with lwork in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Questions-about-sgels-example/m-p/1152603#M27267</link>
    <description>&lt;P&gt;The first call, with lwork already equal to&amp;nbsp;-1, is a "workspace query". The absurd value of -1 (absurd for a matrix size) tells SGEMM, "Don't do any calculations, just tell me how much workspace is going to be needed. I'll allocate the space and then call you again."&lt;/P&gt;&lt;P&gt;The routine you are calling is a Fortran 77 routine. All matrices must be column major. If you want to use other formats, there are other MKL routines for that, as you can see in the MKL reference manual.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 22:06:53 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2019-05-24T22:06:53Z</dc:date>
    <item>
      <title>Questions about sgels example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Questions-about-sgels-example/m-p/1152602#M27266</link>
      <description>&lt;P&gt;I have two questions about sgels example:&lt;/P&gt;&lt;P&gt;(1) why need to call sgels twice?&lt;/P&gt;&lt;P&gt;/* Query and allocate the optimal workspace */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lwork = -1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgels( "No transpose", &amp;amp;m, &amp;amp;n, &amp;amp;nrhs, a, &amp;amp;lda, b, &amp;amp;ldb, &amp;amp;wkopt, &amp;amp;lwork, &amp;amp;info );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lwork = (MKL_INT)wkopt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;work = (float*)malloc( lwork*sizeof(float) );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Solve the equations A*X = B */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgels( "No transpose", &amp;amp;m, &amp;amp;n, &amp;amp;nrhs, a, &amp;amp;lda, b, &amp;amp;ldb, work, &amp;amp;lwork,&amp;nbsp; &amp;amp;info );&lt;/P&gt;&lt;P&gt;(2) where to decide row-major matrix or column -major matrix?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 18:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Questions-about-sgels-example/m-p/1152602#M27266</guid>
      <dc:creator>H__Bin</dc:creator>
      <dc:date>2019-05-24T18:10:00Z</dc:date>
    </item>
    <item>
      <title>The first call, with lwork</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Questions-about-sgels-example/m-p/1152603#M27267</link>
      <description>&lt;P&gt;The first call, with lwork already equal to&amp;nbsp;-1, is a "workspace query". The absurd value of -1 (absurd for a matrix size) tells SGEMM, "Don't do any calculations, just tell me how much workspace is going to be needed. I'll allocate the space and then call you again."&lt;/P&gt;&lt;P&gt;The routine you are calling is a Fortran 77 routine. All matrices must be column major. If you want to use other formats, there are other MKL routines for that, as you can see in the MKL reference manual.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 22:06:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Questions-about-sgels-example/m-p/1152603#M27267</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2019-05-24T22:06:53Z</dc:date>
    </item>
  </channel>
</rss>

