<?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: Math Kernel Library failes ? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500753#M34737</link>
    <description>&lt;P&gt;Some additional info:&lt;/P&gt;&lt;P&gt;If I run the TestApp.exe from the Intel oneApi command line it works - it doesn even complain about a missing dll.&lt;/P&gt;&lt;P&gt;If I run it from windows it complains about the missing dll: mkl_intel_thread.2.dll&lt;/P&gt;&lt;P&gt;If I copy this dll from&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2023.1.0\redist\intel64&lt;/P&gt;&lt;P&gt;and put it in the exe folder I can start the test exe by double click but it fails or is killed&amp;nbsp; and does nothing.&lt;/P&gt;&lt;P&gt;I just tried a different call to the mkl: mkl_get_version_string(buf, 128); --&amp;gt; same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats really confusing:&lt;/P&gt;&lt;P&gt;Why it magically runs under the control of Visual Studion and/or the Intel oneApi command line tool&lt;/P&gt;&lt;P&gt;but not in a native way under Windows ?&lt;/P&gt;&lt;P&gt;I am lost ...What I have to do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 15:15:00 GMT</pubDate>
    <dc:creator>MG12</dc:creator>
    <dc:date>2023-06-30T15:15:00Z</dc:date>
    <item>
      <title>Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500302#M34729</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;here is a test to use a random generator funtion from the math kernel library:&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;mathimf.h&amp;gt;&lt;BR /&gt;#include &amp;lt;mkl.h&amp;gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;unsigned int iseeds[32];&lt;BR /&gt;VSLStreamStatePtr iRNDStream[2];&lt;/P&gt;&lt;P&gt;iseeds[0] = 123456;&lt;BR /&gt;memset(iRNDStream, 0, sizeof(iRNDStream));&lt;BR /&gt;&lt;BR /&gt;vslNewStreamEx(&amp;amp;iRNDStream[0], VSL_BRNG_MCG59, 1, iseeds);&lt;/P&gt;&lt;P&gt;std::cout &amp;lt;&amp;lt; "Hello World!\n";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;The call to vslNewStreamEx immediately kills the application. It doesn matter&lt;/P&gt;&lt;P&gt;if I apply the sequential or the parallel version.&lt;/P&gt;&lt;P&gt;I copy the dll (mkl_sequential.2.dll, mkl_intel_thread.2.dll) manually to the executable folder.&lt;/P&gt;&lt;P&gt;I have used that functionality very successful in the older C Compiler back in 2021 but&lt;/P&gt;&lt;P&gt;I fail to re-use it in the current version.&lt;/P&gt;&lt;P&gt;What do I wrong ?&lt;/P&gt;&lt;P&gt;I'm using VS2022, 64 Bit Compile Mode&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 10:52:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500302#M34729</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-06-29T10:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500707#M34730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know the Intel C++ compiler, Intel MKL version, and Microsoft Visual Studio 2022 sub-version you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At our end, when we tried to run the sample reproducer code provided by you on Visual Studio 2022, we are able to run it without any errors in both sequential as well as parallel mode. Please find the below-attached screenshots for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try running on the Intel oneAPI command prompt and let us know if you are still facing any errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:12:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500707#M34730</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-06-30T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500712#M34731</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for looking into this. Encouraging.&lt;/P&gt;&lt;P&gt;I'm not sure how to obtain the requested version info but this is what I get from the VS2022 about box:&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Microsoft Visual Studio Professional 2022&lt;BR /&gt;Version 17.6.3&lt;BR /&gt;VisualStudio.17.Release/17.6.3+33801.468&lt;BR /&gt;Microsoft .NET Framework&lt;BR /&gt;Version 4.8.04084&lt;/P&gt;&lt;P&gt;Installed Version: Professional&lt;/P&gt;&lt;P&gt;Visual C++ 2022 00483-10700-19571-AA866&lt;BR /&gt;Microsoft Visual C++ 2022&lt;/P&gt;&lt;P&gt;ASP.NET and Web Tools 17.6.326.62524&lt;BR /&gt;ASP.NET and Web Tools&lt;/P&gt;&lt;P&gt;Azure App Service Tools v3.0.0 17.6.326.62524&lt;BR /&gt;Azure App Service Tools v3.0.0&lt;/P&gt;&lt;P&gt;C# Tools 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a&lt;BR /&gt;C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.&lt;/P&gt;&lt;P&gt;Intel Libraries for oneAPI 2023.1&lt;BR /&gt;Intel Libraries for oneAPI 2023.1, Copyright © 2019-2023 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Intel® C++ Compiler 2023.1&lt;BR /&gt;Intel® C++ Compiler 2023.1, Copyright © 2002-2023 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Intel® C++ Compiler Classic 2021.9&lt;BR /&gt;Intel® C++ Compiler Classic 2021.9, Copyright © 2002-2023 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Intel® oneAPI DPC++ Compiler 2023.1&lt;BR /&gt;Intel® oneAPI DPC++ Compiler 2023.1, Copyright © 2019-2023 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Intel® oneAPI Menu &amp;amp; Samples 10.10.392.9731&lt;BR /&gt;Intel® oneAPI Visual Studio Menu &amp;amp; Samples Extension&lt;/P&gt;&lt;P&gt;Intel® VTune™ Profiler 2023 1.3.10&lt;BR /&gt;Intel® VTune™ Profiler 2023, (Plugin Version 1.3.10), Copyright © 2009-2023 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Microsoft JVM Debugger 1.0&lt;BR /&gt;Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines&lt;/P&gt;&lt;P&gt;NuGet Package Manager 6.6.0&lt;BR /&gt;NuGet Package Manager in Visual Studio. For more information about NuGet, visit &lt;A href="https://docs.nuget.org/" target="_blank"&gt;https://docs.nuget.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Test Adapter for Boost.Test 1.0&lt;BR /&gt;Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.&lt;/P&gt;&lt;P&gt;Test Adapter for Google Test 1.0&lt;BR /&gt;Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.&lt;/P&gt;&lt;P&gt;TypeScript Tools 17.0.20329.2001&lt;BR /&gt;TypeScript Tools for Microsoft Visual Studio&lt;/P&gt;&lt;P&gt;Visual Basic Tools 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a&lt;BR /&gt;Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.&lt;/P&gt;&lt;P&gt;Visual Studio IntelliCode 2.2&lt;BR /&gt;AI-assisted development for Visual Studio.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;But: From your screen shot I see that you run the example within visual studio in debugging mode. When I try this&lt;/P&gt;&lt;P&gt;I get the same result as you. If I compile in release mode and run again within visual studio I get also the&lt;/P&gt;&lt;P&gt;desired result.&lt;/P&gt;&lt;P&gt;But when I run the generated executable from a windows command prompt (or just double click on the exe) it doesnt work.&lt;/P&gt;&lt;P&gt;Perhaps something to do with the referenced dlls ?&lt;/P&gt;&lt;P&gt;(I had to manually search for them and copy in the exe folder)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500712#M34731</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-06-30T11:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500753#M34737</link>
      <description>&lt;P&gt;Some additional info:&lt;/P&gt;&lt;P&gt;If I run the TestApp.exe from the Intel oneApi command line it works - it doesn even complain about a missing dll.&lt;/P&gt;&lt;P&gt;If I run it from windows it complains about the missing dll: mkl_intel_thread.2.dll&lt;/P&gt;&lt;P&gt;If I copy this dll from&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\2023.1.0\redist\intel64&lt;/P&gt;&lt;P&gt;and put it in the exe folder I can start the test exe by double click but it fails or is killed&amp;nbsp; and does nothing.&lt;/P&gt;&lt;P&gt;I just tried a different call to the mkl: mkl_get_version_string(buf, 128); --&amp;gt; same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats really confusing:&lt;/P&gt;&lt;P&gt;Why it magically runs under the control of Visual Studion and/or the Intel oneApi command line tool&lt;/P&gt;&lt;P&gt;but not in a native way under Windows ?&lt;/P&gt;&lt;P&gt;I am lost ...What I have to do ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:15:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500753#M34737</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-06-30T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500817#M34739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details and reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Why it magically runs under the control of Visual Studion and/or the Intel oneApi command line tool but not in a native way under Windows ?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yes, while using both the Intel oneAPI command prompt as well as setting Intel oneAPI in Microsoft Visual Studio the Intel Environment will be initialized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when you try to do it on the Windows command prompt you need to initialize the oneAPI environment so that it will include all the necessary files and path that is required. You can also initialize by using the below command on the Windows command prompt and try running as same in Intel oneAPI Command Prompt. Please find the below screenshot for more information.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1688148881800.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/43104iE7369362038B2F8B/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1688148881800.png" alt="VarshaS_Intel_0-1688148881800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try and let us know if you have any other queries?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&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>Fri, 30 Jun 2023 18:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1500817#M34739</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-06-30T18:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1501222#M34750</link>
      <description>&lt;P&gt;Hello Varsha,&lt;/P&gt;&lt;P&gt;I tried the command with mixed success:&lt;/P&gt;&lt;P&gt;If I open a CMD shell under windows and run the setvar script it makes the TestApp.exe working within the&amp;nbsp;&lt;/P&gt;&lt;P&gt;command shell.&lt;/P&gt;&lt;P&gt;However, I'm still not able to get the TestApp.exe running in the standard windows environment by simply&lt;/P&gt;&lt;P&gt;double clicking on that exe. This works on your side ?&lt;/P&gt;&lt;P&gt;Seems the question is: What is needed to be setup globally under windows in order to make the mkl running?&lt;/P&gt;&lt;P&gt;Sorry, I looked around for a while in the documentation but so far no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I'm using Windows 10 Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and kind regards&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 07:44:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1501222#M34750</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-07-03T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1501622#M34759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I finally found the missing part:&lt;/P&gt;&lt;P&gt;The system "Path" variable needs to have the mkl path included:&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, that is quite natural but it would be nice if the oneApi setup would do this for us under Windows.&lt;/P&gt;&lt;P&gt;You may close this thread.&lt;/P&gt;&lt;P&gt;Thansk again&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:01:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1501622#M34759</guid>
      <dc:creator>MG12</dc:creator>
      <dc:date>2023-07-04T09:01:10Z</dc:date>
    </item>
    <item>
      <title>Re:Math Kernel Library failes ?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1502757#M34785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved. Thanks for sharing the solution with us. In case you run into any other issues please feel free to create a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Actually, that is quite natural but it would be nice if the oneApi setup would do this for us under Windows.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. We will let the development team know about it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2023 17:10:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Math-Kernel-Library-failes/m-p/1502757#M34785</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-07-07T17:10:01Z</dc:date>
    </item>
  </channel>
</rss>

