<?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 Quote:Nirmal A. wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083487#M22889</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Nirmal A. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Is there a way for me to step into cblas_dgemm function while debugging?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Only in the disassembly window, and I am not sure that you would find it useful to do so. Furthermore, be aware that CBLAS routines may actually be wrappers around Fortran BLAS routines in which the actual work is done. Why do you want to go there?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 00:11:08 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2016-11-14T00:11:08Z</dc:date>
    <item>
      <title>cblas_dgemm in x64 returning bad values</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083480#M22882</link>
      <description>&lt;P&gt;I'm getting bad values when using cblas_dgemm in x64. However, it works fine in x86. Is there some configuration i'm missing to use that function in x64? My code and the outputs for x86 and x64 can be found in the link to the stack overflow page below.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/40556267/mkl-cblas-dgemm-giving-me-garbage-results-when-debugging-in-x64"&gt;http://stackoverflow.com/questions/40556267/mkl-cblas-dgemm-giving-me-garbage-results-when-debugging-in-x64&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 22:03:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083480#M22882</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-11T22:03:08Z</dc:date>
    </item>
    <item>
      <title>With the current X64 compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083481#M22883</link>
      <description>&lt;P&gt;With the current Intel X64 C compiler&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.1.143 Build 20161005&lt;BR /&gt;
		Copyright (C) 1985-2016 Intel Corporation. &amp;nbsp;All rights reserved.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I get the correct result when I compile with icl /Qmkl and run. I also get the correct result if I compile using the MS C++ V18 compiler and link with mkl_rt.lib.&lt;/P&gt;

&lt;P&gt;Which compiler did you use, and how did you build the EXE?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 00:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083481#M22883</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-11-12T00:35:00Z</dc:date>
    </item>
    <item>
      <title>how do you compile with icl /</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083482#M22884</link>
      <description>&lt;P&gt;how do you compile with icl / Qmkl? I originally did not have mkl_rt.lib included. I tried adding that but i'm still getting the wrong values. Also, I've only found MSVC++ compilers that go up to 14.&lt;/P&gt;

&lt;P&gt;This is the command line for my compilation:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;/OUT:"C:\Users\nirma\OneDrive\Documents\Visual Studio 2015\Projects\mkltest\x64\Debug\mkltest.exe" /MANIFEST /NXCOMPAT /PDB:"C:\Users\nirma\OneDrive\Documents\Visual Studio 2015\Projects\mkltest\x64\Debug\mkltest.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "mkl_rt.lib" /MACHINE:X64 /INCREMENTAL /PGD:"C:\Users\nirma\OneDrive\Documents\Visual Studio 2015\Projects\mkltest\x64\Debug\mkltest.pgd" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Debug\mkltest.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 15:41:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083482#M22884</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-12T15:41:53Z</dc:date>
    </item>
    <item>
      <title>I tried it on another</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083483#M22885</link>
      <description>&lt;P&gt;I tried it on another computer in x64. The code worked fine. I'm guessing it's an issue with this machine. Also the other machine had an older version of mkl. I'll update that one to 11.3 and see if i get the same issue&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 16:25:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083483#M22885</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-12T16:25:42Z</dc:date>
    </item>
    <item>
      <title>What you showed is only part</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083484#M22886</link>
      <description>&lt;P&gt;What you showed is only part of the command line. &amp;nbsp;Are you compiling in an Intel-C command window (as I did in #2), or an MS-C command window, or in Visual Studio? Which C compiler are you using?&lt;/P&gt;

&lt;P&gt;Older versions of MKL did not provide mkl_rt.lib. With such a version, use the MKL Link Line Advisor at &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; or see the MKL documentation for instructions.&lt;/P&gt;

&lt;P&gt;Note that /Qmkl (note no space between '/' and 'Q') is an Intel C compiler option. MS C does not recognize that option.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 16:26:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083484#M22886</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-11-12T16:26:48Z</dc:date>
    </item>
    <item>
      <title>I'm compiling in visual</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083485#M22887</link>
      <description>&lt;P&gt;I'm compiling in visual studio&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 16:28:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083485#M22887</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-12T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Is there a way for me to step</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083486#M22888</link>
      <description>&lt;P&gt;Is there a way for me to step into cblas_dgemm function while debugging?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 22:48:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083486#M22888</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-13T22:48:50Z</dc:date>
    </item>
    <item>
      <title>Quote:Nirmal A. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083487#M22889</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Nirmal A. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Is there a way for me to step into cblas_dgemm function while debugging?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Only in the disassembly window, and I am not sure that you would find it useful to do so. Furthermore, be aware that CBLAS routines may actually be wrappers around Fortran BLAS routines in which the actual work is done. Why do you want to go there?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 00:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083487#M22889</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-11-14T00:11:08Z</dc:date>
    </item>
    <item>
      <title>I fixed the problem! I had to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083488#M22890</link>
      <description>&lt;P&gt;I fixed the problem! I had to go to&amp;nbsp;&lt;SPAN style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;Properties&lt;/STRONG&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;» Configuration properties » C/C++&amp;nbsp;» Code Generation&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 700; box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;» Runtime Library&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and change it from&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;-Multi-threaded Debug DLL (/MDd):&lt;/STRONG&gt;&lt;SPAN style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;linking with dynamic Intel MKL libraries&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;-Multi-threaded (/MT):&lt;/STRONG&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&amp;nbsp;linking with static Intel MKL libraries&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The issue was that I was doing dynamic linking instead of static. I found this webpage very useful in helping me overcome the issue&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 04:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-dgemm-in-x64-returning-bad-values/m-p/1083488#M22890</guid>
      <dc:creator>Nirmal_A_</dc:creator>
      <dc:date>2016-11-16T04:44:00Z</dc:date>
    </item>
  </channel>
</rss>

