<?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:oneMKL gemm called within kernel in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1478578#M34487</link>
    <description>&lt;P&gt;Hi Rajitha,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praneeth Achanta&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Apr 2023 04:16:17 GMT</pubDate>
    <dc:creator>PraneethA_Intel</dc:creator>
    <dc:date>2023-04-20T04:16:17Z</dc:date>
    <item>
      <title>oneMKL gemm called within kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473284#M34413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;oneMKL gemm function can be called from the&amp;nbsp; "host" as below&lt;/P&gt;
&lt;P&gt;gemm_done = oneapi::mkl::blas::gemm(main_queue, transA, transB, m, n, k, alpha, A, ldA, B, ldB, beta, C, ldC, gemm_dependencies);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can gemm function also be called within user's kernel code? For example,&lt;/P&gt;
&lt;P&gt;sycl::queue queue;&lt;BR /&gt;queue.submit([&amp;amp;](sycl::handler&amp;amp; cgh) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; cgh.parallel_for(range,[=](…) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oneapi::mkl::blas::gemm(...); // calling routine from user’s kernel code&lt;BR /&gt;&amp;nbsp; &amp;nbsp; });&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, do we need to pass "queue" again as the first argument to oneapi::mkl::blas::gemm(..)?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 02:14:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473284#M34413</guid>
      <dc:creator>TestDR</dc:creator>
      <dc:date>2023-04-05T02:14:05Z</dc:date>
    </item>
    <item>
      <title>Re:oneMKL gemm called within kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473717#M34419</link>
      <description>&lt;P&gt;Hi Rajitha,&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;By default, oneapi::mkl::blas::gemm can only be used on the host by passing the queue as an input parameter as per the example shown.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praneeth Achanta&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Apr 2023 07:17:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473717#M34419</guid>
      <dc:creator>PraneethA_Intel</dc:creator>
      <dc:date>2023-04-06T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL gemm called within kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473981#M34422</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/274486"&gt;@TestDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/274175"&gt;@PraneethA_Intel&lt;/a&gt;&amp;nbsp;mentioned, oneMKL BLAS routines (including oneapi::mkl::blas::gemm) can only be called from host code currently, not from within a kernel.&lt;BR /&gt;&lt;BR /&gt;The good news is that in the next oneAPI major release, we are planning to introduce experimental APIs that would let you call oneMKL GEMM within a kernel. If you're able to provide more details (how large the matrices are, how GEMM fits into the calculation your kernel performs), we could assess if these APIs would be a good fit for your use case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Peter&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 21:11:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1473981#M34422</guid>
      <dc:creator>Peter_C_Intel</dc:creator>
      <dc:date>2023-04-06T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re:oneMKL gemm called within kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1476202#M34458</link>
      <description>&lt;P&gt;Hi Rajitha,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Has the information provided helped? Kindly let us know if you need any other help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praneeth Achanta&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:59:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1476202#M34458</guid>
      <dc:creator>PraneethA_Intel</dc:creator>
      <dc:date>2023-04-13T07:59:20Z</dc:date>
    </item>
    <item>
      <title>Re:oneMKL gemm called within kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1478578#M34487</link>
      <description>&lt;P&gt;Hi Rajitha,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praneeth Achanta&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 04:16:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-gemm-called-within-kernel/m-p/1478578#M34487</guid>
      <dc:creator>PraneethA_Intel</dc:creator>
      <dc:date>2023-04-20T04:16:17Z</dc:date>
    </item>
  </channel>
</rss>

