<?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 Everything looks correct. How in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162949#M28030</link>
    <description>&lt;P&gt;Everything looks correct. How did you build this example? You may take a look at the existing ddot examples into&amp;nbsp;&amp;lt;mkltoot&amp;gt;\examples\cblas\source\&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Mar 2019 04:18:09 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2019-03-03T04:18:09Z</dc:date>
    <item>
      <title>cblas_ddot access violation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162948#M28029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was just trying to learn how to use the&amp;nbsp;64 bit platform on Parallel Studio XE, when running a&amp;nbsp;very simple example (using cblas_ddot() - as shown below)&amp;nbsp;&amp;nbsp;I've got the following&amp;nbsp;exception:&lt;/P&gt;&lt;P&gt;Exception thrown at 0x00007FF7AA60EB36 in mkl64bit.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.&lt;/P&gt;&lt;P&gt;Then I tried the Intel Inspector tool and it says there was an invalid memory access:&amp;nbsp;0x1eb36&amp;nbsp;&amp;nbsp; &amp;nbsp;vmovsd xmm4, qword ptr [r9+rax*8]&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;int main() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;double v1[3], v2[3];&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (size_t i = 0; i != 3; ++i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;v1&lt;I&gt; = v2&lt;I&gt; = 1.5;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;double result;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;result = cblas_ddot(3, v1, 1, v2, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;}&lt;/P&gt;&lt;P&gt;I'm using Intel Parallel Studio XE Cluster Edition 2019&amp;nbsp;for Windows on Visual Studio 2017.&lt;/P&gt;&lt;P&gt;May you please help me to understand&amp;nbsp;what's&amp;nbsp;wrong and how could I fix the problem?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 23:27:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162948#M28029</guid>
      <dc:creator>Di_Luca__Daniele</dc:creator>
      <dc:date>2019-03-02T23:27:09Z</dc:date>
    </item>
    <item>
      <title>Everything looks correct. How</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162949#M28030</link>
      <description>&lt;P&gt;Everything looks correct. How did you build this example? You may take a look at the existing ddot examples into&amp;nbsp;&amp;lt;mkltoot&amp;gt;\examples\cblas\source\&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 04:18:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162949#M28030</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-03-03T04:18:09Z</dc:date>
    </item>
    <item>
      <title>I figured it out I was</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162950#M28031</link>
      <description>&lt;P style="margin-left:0cm; margin-right:0cm"&gt;I figured it out I was linking mkl_intel_ilp64.lib without the /DMKL_ILP64 option for the compiler and when I switched to the automatic linking through the Intel Performance Libraries option, I kept linking mkl_intel_ilp64.lib, instead of mkl_intel_lp64, but I forgot to turn on the “Use ILP64 interfaces” flag too. I've&amp;nbsp;screwed it up a little bit, but now it seems to work fine,&lt;/P&gt;&lt;P style="margin-left:0cm; margin-right:0cm"&gt;thanks for the support,&lt;/P&gt;&lt;P style="margin-left:0cm; margin-right:0cm"&gt;Daniele&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady F. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything looks correct. How did you build this example? You may take a look at the existing ddot examples into&amp;nbsp;&amp;lt;mkltoot&amp;gt;\examples\cblas\source\&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 20:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162950#M28031</guid>
      <dc:creator>Di_Luca__Daniele</dc:creator>
      <dc:date>2019-03-05T20:49:06Z</dc:date>
    </item>
    <item>
      <title>Daniele, thanks for keeping</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162951#M28032</link>
      <description>&lt;P&gt;Daniele, thanks for keeping us inform. We always recommend to see mkl examples which will greatly help to mitigate such problems as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 05:00:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-ddot-access-violation/m-p/1162951#M28032</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-03-06T05:00:27Z</dc:date>
    </item>
  </channel>
</rss>

