<?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 You have left incA, incB in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143773#M26518</link>
    <description>&lt;P&gt;You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 13:44:30 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2020-03-20T13:44:30Z</dc:date>
    <item>
      <title>Severe (157): program exception - access violation when using Fortran &amp; MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143771#M26516</link>
      <description>&lt;P&gt;Hi everyone!&lt;BR /&gt;&lt;BR /&gt;I tried installing and running a simple Fortran dot multiplication example to test something, and everything seemed to have gone well with regards to installing Visual Studio 2019 Community and Intel Parallel Studio 2020, and integrating them via the installer. Fortran code runs on the system but when I attempt to use MKL-functions (such as sdot in the code at the bottom of the post) it gives me the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;forrtl: severe (157): Program Exception - access violation&lt;BR /&gt;Image &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Routine &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Line &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Source&lt;BR /&gt;mkl_avx2.dll &amp;nbsp; &amp;nbsp; &amp;nbsp; 7A62D5CA &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;mkl_core.dll &amp;nbsp; &amp;nbsp; &amp;nbsp; 784955AE &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 004813E9 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 0048310F &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 004860A3 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 00485F77 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 00485E1D &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;Console2.exe &amp;nbsp; &amp;nbsp; &amp;nbsp; 00486108 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;KERNEL32.DLL &amp;nbsp; &amp;nbsp; &amp;nbsp; 75996359 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;ntdll.dll &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77B97B74 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;ntdll.dll &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77B97B44 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel MKL is activated under Project &amp;gt; Configuration Properties &amp;gt; Libraries as Sequential (/Qmkl:sequential) so I presume that it knows where the files are, and that I simply that the permission to access them on my own computer? Is there anything I can do to fix this?&lt;BR /&gt;&lt;BR /&gt;Thank you for your time. :)&lt;BR /&gt;&lt;BR /&gt;The code I'm trying follows if it is of any use to you.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;EM&gt; program Console1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; integer :: n,incA,incB&lt;BR /&gt;&amp;nbsp; &amp;nbsp; real :: resd,ress,i&lt;BR /&gt;&amp;nbsp; &amp;nbsp; real, dimension(10) :: A,B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; resd=0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; n = 10&lt;BR /&gt;&amp;nbsp; &amp;nbsp; do i = 1,n&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A(i) = i&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B(i) = i&lt;BR /&gt;&amp;nbsp; &amp;nbsp; end do&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ress = sdot(n,A,incA,B,incB)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print*,ress&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; end program Console1&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 20:17:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143771#M26516</guid>
      <dc:creator>landstrom__eric</dc:creator>
      <dc:date>2020-03-18T20:17:06Z</dc:date>
    </item>
    <item>
      <title>Eric, at first glance</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143772#M26517</link>
      <description>&lt;P&gt;Eric, at first glance everything looks correct. The example you use successfully built and ran from the command line. wrt VS - probably there is some problem with integration of parallel studio with VS2019. Could you try to link with MKL manually? Please refer to this article shows some details:&amp;nbsp;https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc#&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 06:18:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143772#M26517</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-03-20T06:18:11Z</dc:date>
    </item>
    <item>
      <title>You have left incA, incB</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143773#M26518</link>
      <description>&lt;P&gt;You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 13:44:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143773#M26518</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-03-20T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143774#M26519</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I feel amazingly stupid for not noticing it, but I guess that's why you have to ask for help sometimes&amp;nbsp;so that others can notice what you don't. It worked now, massive thanks!&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:00:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143774#M26519</guid>
      <dc:creator>landstrom__eric</dc:creator>
      <dc:date>2020-03-20T14:00:56Z</dc:date>
    </item>
    <item>
      <title>Happens! Been there, done</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143775#M26520</link>
      <description>&lt;P&gt;Happens! Been there, done that.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:11:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Severe-157-program-exception-access-violation-when-using-Fortran/m-p/1143775#M26520</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-03-20T14:11:17Z</dc:date>
    </item>
  </channel>
</rss>

