<?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 why do mkl::gemm get wrong result in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429501#M33859</link>
    <description>&lt;P&gt;Hi , guys , I’m using oneapi mkl blas with dpcpp ，I met some problems , when i use eigen to compute gemm(col-major),i get right result ,but when i use mkl with dpcpp(col-major) ,i get wrong result ,i test the data translation ,this part is no problem,so i think the only reason is gemm function.I really hope somebody could help me fix it , I will appreciate it a lot.&lt;/P&gt;
&lt;P&gt;the code is below:&lt;/P&gt;
&lt;P&gt;this is eigen code which get right result.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35055iC7332E0D3350E293/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" alt="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;this is mkl code , its input value is as same as eigen code,and please ignore the if statement, I use it to make sure pointer only init once when in loop , and i think it is no problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35058i185121B6FA521F37/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" alt="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;forgive me , I don’t get computer here ,so the picture is screenshot of ssh ,&lt;/P&gt;
&lt;P&gt;I was plagued by this for a weeks , and I really want to use mkl , If you could help me , I will appreciate it a lot.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 18:10:57 GMT</pubDate>
    <dc:creator>might</dc:creator>
    <dc:date>2022-11-11T18:10:57Z</dc:date>
    <item>
      <title>why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429501#M33859</link>
      <description>&lt;P&gt;Hi , guys , I’m using oneapi mkl blas with dpcpp ，I met some problems , when i use eigen to compute gemm(col-major),i get right result ,but when i use mkl with dpcpp(col-major) ,i get wrong result ,i test the data translation ,this part is no problem,so i think the only reason is gemm function.I really hope somebody could help me fix it , I will appreciate it a lot.&lt;/P&gt;
&lt;P&gt;the code is below:&lt;/P&gt;
&lt;P&gt;this is eigen code which get right result.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35055iC7332E0D3350E293/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" alt="053CD901-E9C3-4CED-B40E-E22A57393B93.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;this is mkl code , its input value is as same as eigen code,and please ignore the if statement, I use it to make sure pointer only init once when in loop , and i think it is no problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35058i185121B6FA521F37/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" alt="ACF36B3D-FFDC-4C88-A49D-79F177E9D4A2.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;forgive me , I don’t get computer here ,so the picture is screenshot of ssh ,&lt;/P&gt;
&lt;P&gt;I was plagued by this for a weeks , and I really want to use mkl , If you could help me , I will appreciate it a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:10:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429501#M33859</guid>
      <dc:creator>might</dc:creator>
      <dc:date>2022-11-11T18:10:57Z</dc:date>
    </item>
    <item>
      <title>回复： why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429705#M33860</link>
      <description>&lt;P&gt;I want to update this question , mkl&amp;nbsp; gemm with dpcpp can get right result when device is selected as cpu,however when device is set intel Xe hpg gpu ,the result is wrong .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="might_2-1668348972618.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35084iF2A8EDB6536531EA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="might_2-1668348972618.png" alt="might_2-1668348972618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the infomation of system:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="might_0-1668348877242.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35082i4D6A4A4DA1C66431/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="might_0-1668348877242.png" alt="might_0-1668348877242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="might_1-1668348916806.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35083i69E23A33D473A088/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="might_1-1668348916806.png" alt="might_1-1668348916806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am sure that my code is right (because when I change gpu_selector to cpu_selector , the result is right), the problem is gemm or intel gpu , I still want to know how to fix it ,thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 14:17:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429705#M33860</guid>
      <dc:creator>might</dc:creator>
      <dc:date>2022-11-13T14:17:35Z</dc:date>
    </item>
    <item>
      <title>回复： why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429706#M33861</link>
      <description>&lt;P&gt;By the way , the compiler is&amp;nbsp;Intel(R) oneAPI DPC++/C++ Compiler 2022.1.0 (2022.1.0.20220316)&lt;/P&gt;
&lt;P&gt;the OS is&amp;nbsp;Ubuntu20.04.4 LTS&lt;/P&gt;
&lt;P&gt;oneapi version 2022.1.0&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 14:34:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429706#M33861</guid>
      <dc:creator>might</dc:creator>
      <dc:date>2022-11-13T14:34:46Z</dc:date>
    </item>
    <item>
      <title>回复： why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429708#M33862</link>
      <description>&lt;P&gt;And the datatype is float ,data scale is m=100000,n=1024,k=25000&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 14:46:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429708#M33862</guid>
      <dc:creator>might</dc:creator>
      <dc:date>2022-11-13T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re:why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429884#M33863</link>
      <description>&lt;P&gt;Hi Hansen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;Could you please try running the sample code gemm_usm.cpp from MKL examples located under /opt/intel/oneapi/mkl/latest/examples/dpcpp/blas/source and see if you still get incorrect results on your GPU?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If possible please attach your test code here so that we can try reproducing the issue from our end as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Nov 2022 10:10:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429884#M33863</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-11-14T10:10:26Z</dc:date>
    </item>
    <item>
      <title>回复： Re:why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429915#M33864</link>
      <description>&lt;P&gt;Yes , I think the reason is that the data is size to big , mkl::gemm can get right result when data is small , but if the data size is like my data , wrong result will be get.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 12:26:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1429915#M33864</guid>
      <dc:creator>might</dc:creator>
      <dc:date>2022-11-14T12:26:46Z</dc:date>
    </item>
    <item>
      <title>Re:why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1430205#M33867</link>
      <description>&lt;P&gt;Hi Hansen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know if working with oneMKL examples with your data also gives incorrect results?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try adding the sample reproducer here in the forum so that we can do a quick check and proceed further in this case?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Nov 2022 06:13:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1430205#M33867</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-11-15T06:13:41Z</dc:date>
    </item>
    <item>
      <title>Re:why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1432038#M33897</link>
      <description>&lt;P&gt;Hi Hansen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, could you please provide us with an update regarding the issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2022 06:53:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1432038#M33897</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-11-22T06:53:05Z</dc:date>
    </item>
    <item>
      <title>Re:why do mkl::gemm get wrong result</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1433842#M33928</link>
      <description>&lt;P&gt;Hi Hansen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we haven't heard back from you, we are closing this thread. Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2022 04:00:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/why-do-mkl-gemm-get-wrong-result/m-p/1433842#M33928</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-11-29T04:00:02Z</dc:date>
    </item>
  </channel>
</rss>

