<?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: Can one use MKL with C++/WinRT? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724661#M37426</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/64064"&gt;@Eckhardt__Stephen&lt;/a&gt;&amp;nbsp;Can you please share why you are limited to single threaded performance if placing oneMKL DLLs in the App directory? Can you use mkl_intel_thread or mkl_tbb_thread instead of mkl_sequential? You will also need Openmp or TBB depending on which threading option you choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking into this issue now, and my general understanding from WinAppSDK is that it creates a sandboxed environment and installs packages in that environment via Nuget as the primary package manager. Since Nuget is not the only option, users may choose a different way to source their dependencies and packages, one of them being manual DLL integration via the app manifest and copying them into the app folder, which you tried earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said, we do provide oneMKL nuget packages for static linking:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/intelmkl.static.win-x64" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/intelmkl.static.win-x64&lt;/A&gt;&amp;nbsp;and dynamic linking:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/intelmkl.redist.win-x64" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/intelmkl.redist.win-x64&lt;/A&gt;. (Note the dependencies in the dependencies tab). Can you give either of these two packages a try and let us know if they work directly with your workflow without manual modifications?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html?operatingsystem=windows&amp;amp;windows-install=nuget" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html?operatingsystem=windows&amp;amp;windows-install=nuget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 18:21:21 GMT</pubDate>
    <dc:creator>Viraj_M_Intel</dc:creator>
    <dc:date>2025-11-03T18:21:21Z</dc:date>
    <item>
      <title>Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656600#M36818</link>
      <description>&lt;P&gt;I'm trying to call MKL routines from a program written for WinUI 3 using C++/WinRT.&amp;nbsp; Unfortunately, when I call a cblas routine, the program crashes.&amp;nbsp; STL exception handling catches nothing.&amp;nbsp; Is MKL compatible with C++/WinRT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a repro and saved it in&amp;nbsp;&lt;A href="https://github.com/dr-eck/MiniEditor" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/dr-eck/MiniEditor&lt;/A&gt;&amp;nbsp; as the TestMKL project.&amp;nbsp; Here's what I did:&lt;/P&gt;&lt;P&gt;First, create a&amp;nbsp;&lt;SPAN&gt;standard "Blank App, Packaged (WinUI 3 in Desktop)" app and remove all traces of myProperty. Here's the new MainWindow.cpp:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;include&lt;/SPAN&gt; &lt;SPAN class=""&gt;"pch.h"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;include&lt;/SPAN&gt; &lt;SPAN class=""&gt;"MainWindow.xaml.h"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;if&lt;/SPAN&gt; __has_include(&lt;SPAN class=""&gt;"MainWindow.g.cpp"&lt;/SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;include&lt;/SPAN&gt; &lt;SPAN class=""&gt;"MainWindow.g.cpp"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;include&lt;/SPAN&gt; &lt;SPAN class=""&gt;"mkl.h"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;#&lt;SPAN class=""&gt;include&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;exception&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;

&lt;SPAN class=""&gt;using&lt;/SPAN&gt; &lt;SPAN class=""&gt;namespace&lt;/SPAN&gt; winrt;
&lt;SPAN class=""&gt;using&lt;/SPAN&gt; &lt;SPAN class=""&gt;namespace&lt;/SPAN&gt; Microsoft::UI::Xaml;

&lt;SPAN class=""&gt;namespace&lt;/SPAN&gt; winrt::TestMKL::implementation
{
    MainWindow::&lt;SPAN class=""&gt;MainWindow&lt;/SPAN&gt;()
    {
        &lt;SPAN class=""&gt;InitializeComponent&lt;/SPAN&gt;();
    }
    &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;void&lt;/SPAN&gt; &lt;SPAN class=""&gt;MainWindow::myButton_Click&lt;/SPAN&gt;&lt;SPAN class=""&gt;(IInspectable &lt;SPAN class=""&gt;const&lt;/SPAN&gt;&amp;amp;, RoutedEventArgs &lt;SPAN class=""&gt;const&lt;/SPAN&gt;&amp;amp;)&lt;/SPAN&gt;
    &lt;/SPAN&gt;{
        &lt;SPAN class=""&gt;myButton&lt;/SPAN&gt;().&lt;SPAN class=""&gt;Content&lt;/SPAN&gt;(&lt;SPAN class=""&gt;box_value&lt;/SPAN&gt;(&lt;SPAN class=""&gt;L"Clicked"&lt;/SPAN&gt;));
        &lt;SPAN class=""&gt;// Test MKL&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;// Example: Compute the dot product of two vectors&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;double&lt;/SPAN&gt; x[&lt;SPAN class=""&gt;3&lt;/SPAN&gt;] = { &lt;SPAN class=""&gt;1.0&lt;/SPAN&gt;, &lt;SPAN class=""&gt;2.0&lt;/SPAN&gt;, &lt;SPAN class=""&gt;3.0&lt;/SPAN&gt; };
        &lt;SPAN class=""&gt;double&lt;/SPAN&gt; y[&lt;SPAN class=""&gt;3&lt;/SPAN&gt;] = { &lt;SPAN class=""&gt;4.0&lt;/SPAN&gt;, &lt;SPAN class=""&gt;5.0&lt;/SPAN&gt;, &lt;SPAN class=""&gt;6.0&lt;/SPAN&gt; };
        &lt;SPAN class=""&gt;double&lt;/SPAN&gt; rv;
        &lt;SPAN class=""&gt;try&lt;/SPAN&gt; {
            rv = &lt;SPAN class=""&gt;cblas_ddot&lt;/SPAN&gt;(&lt;SPAN class=""&gt;3&lt;/SPAN&gt;, x, &lt;SPAN class=""&gt;1&lt;/SPAN&gt;, y, &lt;SPAN class=""&gt;1&lt;/SPAN&gt;);
        }
        &lt;SPAN class=""&gt;catch&lt;/SPAN&gt; (&lt;SPAN class=""&gt;const&lt;/SPAN&gt; std::exception&amp;amp; e) {
            &lt;SPAN class=""&gt;OutputDebugString&lt;/SPAN&gt;((&lt;SPAN class=""&gt;L"MKL exception: "&lt;/SPAN&gt; + &lt;SPAN class=""&gt;to_hstring&lt;/SPAN&gt;(e.&lt;SPAN class=""&gt;what&lt;/SPAN&gt;()) + &lt;SPAN class=""&gt;L"\n"&lt;/SPAN&gt;).&lt;SPAN class=""&gt;c_str&lt;/SPAN&gt;());
        }
        &lt;SPAN class=""&gt;OutputDebugString&lt;/SPAN&gt;((&lt;SPAN class=""&gt;L"Dot product: "&lt;/SPAN&gt; + std::&lt;SPAN class=""&gt;to_wstring&lt;/SPAN&gt;(rv) + &lt;SPAN class=""&gt;L"\n"&lt;/SPAN&gt;).&lt;SPAN class=""&gt;c_str&lt;/SPAN&gt;());
        &lt;SPAN class=""&gt;result&lt;/SPAN&gt;().&lt;SPAN class=""&gt;Text&lt;/SPAN&gt;(winrt::hstring{ std::&lt;SPAN class=""&gt;to_wstring&lt;/SPAN&gt;(rv) });
    }
}&lt;/PRE&gt;&lt;P&gt;Then, as a review for OneAPI users:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install the OneAPI base toolkit&lt;/LI&gt;&lt;LI&gt;Make sure ONEAPI_ROOT points to C:\Program Files (x86)\Intel\oneAPI\&lt;/LI&gt;&lt;LI&gt;Add $(ONEAPI_ROOT)\mkl\latest\include to the C/C++ | General | Additional Include Directories&lt;/LI&gt;&lt;LI&gt;Add $(ONEAPI_ROOT)\mkl\latest\lib to the Linker | General | Additional Library Directories&lt;/LI&gt;&lt;LI&gt;Add mkl_intel_lp64_dll.lib;mkl_tbb_thread_dll.lib;mkl_core_dll.lib; to the Linker | Input | Additional Dependencies&lt;/LI&gt;&lt;LI&gt;copy mkl_blacs_lp64.2.dll, mkl_core.2.dll and mkl_tbb_thread.2.dll to the x64\Debug\TestMKL\AppX directory&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You must copy the DLLs even if you work from the Github repo.&lt;/P&gt;&lt;P&gt;The program should compile and run. When the button is clicked, the program disappears. Commenting out the MKL code verifies that the program does not disappear if cblas_ddot is not called.&lt;/P&gt;&lt;P&gt;How do I make this work?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 19:16:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656600#M36818</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-13T19:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656609#M36819</link>
      <description>&lt;P&gt;Hi, Stephen:&lt;/P&gt;
&lt;P&gt;Would you be more specific about which button you click? Can you run the debug mode to output the debug result? Can you see the actual compile/link commands to be run? Which step does your code crash? The compile step? The link step? Or the run time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 19:37:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656609#M36819</guid>
      <dc:creator>Shiquan_Su</dc:creator>
      <dc:date>2025-01-13T19:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656656#M36821</link>
      <description>&lt;P&gt;Thanks for the quick response.&amp;nbsp; In my instruction "First,&amp;nbsp;&lt;SPAN class=""&gt;create a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;standard "Blank App, Packaged (WinUI 3 in Desktop)" app", I should have mentioned that you need to use Visual Studio 2022.&amp;nbsp; If you follow this instruction, you will end up with a WinUI 3 app that displays one button.&amp;nbsp; When you click that button, the code in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;myButton_Click()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;runs.&amp;nbsp; The line of code where the program crashes is:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;rv = &lt;SPAN class=""&gt;cblas_ddot&lt;/SPAN&gt;(&lt;SPAN class=""&gt;3&lt;/SPAN&gt;, x, &lt;SPAN class=""&gt;1&lt;/SPAN&gt;, y, &lt;SPAN class=""&gt;1&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;Here's the debug output:&lt;/P&gt;&lt;P&gt;The thread 'DWM Compositor Thread' (25732) has exited with code 2 (0x2).&lt;BR /&gt;The thread 'DWM Master Input Thread' (37808) has exited with code 2 (0x2).&lt;BR /&gt;The thread 35044 has exited with code 2 (0x2).&lt;BR /&gt;The thread 28696 has exited with code 2 (0x2).&lt;BR /&gt;The thread 22284 has exited with code 2 (0x2).&lt;BR /&gt;The thread 38236 has exited with code 2 (0x2).&lt;BR /&gt;The thread 19496 has exited with code 2 (0x2).&lt;BR /&gt;The thread 'DManip Delegate Thread' (38376) has exited with code 2 (0x2).&lt;BR /&gt;The thread 23180 has exited with code 2 (0x2).&lt;BR /&gt;The thread 35644 has exited with code 2 (0x2).&lt;BR /&gt;The thread 35052 has exited with code 2 (0x2).&lt;BR /&gt;The thread 29832 has exited with code 2 (0x2).&lt;BR /&gt;The thread 19784 has exited with code 2 (0x2).&lt;BR /&gt;The thread 'Lifted DMIT' (25556) has exited with code 2 (0x2).&lt;BR /&gt;The thread 14616 has exited with code 2 (0x2).&lt;BR /&gt;The thread 'DWM Manipulation Thread' (37100) has exited with code 2 (0x2).&lt;BR /&gt;The thread 16132 has exited with code 2 (0x2).&lt;BR /&gt;The thread 'Composition Token Thread' (28208) has exited with code 2 (0x2).&lt;BR /&gt;The thread 34600 has exited with code 2 (0x2).&lt;BR /&gt;The program '[17628] TestMKL.exe' has exited with code 2 (0x2).&lt;/P&gt;&lt;P&gt;The code crashes in run time.&lt;/P&gt;&lt;P&gt;Please let me know if you need any other information.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 23:02:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656656#M36821</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-13T23:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656683#M36822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/64064"&gt;@Eckhardt__Stephen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you add `mkl_uwp_compat_dll.lib` and `mkl_uwp_compat.dll` in steps 5 and 6 of VS project setup respectively and check if the app works?&lt;/P&gt;&lt;P&gt;If you still have failures, please share the build commands from the command-line or build output in Visual studio.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 00:42:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656683#M36822</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2025-01-14T00:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656967#M36830</link>
      <description>&lt;P&gt;I'll be happy to try that.&amp;nbsp; Where do I get copies of the files?&amp;nbsp; They aren't in my OneAPI distro, and I can't find them on the Intel.com site.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 18:36:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1656967#M36830</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-14T18:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657267#M36839</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/64064"&gt;@Eckhardt__Stephen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looks like oneMKL stopped shipping these 2 files some time ago. I will check with the team and see if we can re-enable them. Sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;As a workaround until then, you may use the Custom DLL builder to build a custom DLL with only the APIs that you need, and also enable UWP support for that DLL:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2025-0/using-the-custom-dll-builder-in-command-line-mode.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2025-0/using-the-custom-dll-builder-in-command-line-mode.html&lt;/A&gt;. Check the "uwd_compat" and "crt" options. Note that custom DLL builder only works in the command-line. Once you have your custom DLL, you can use that in steps 5 and 6 instead of the default oneMKL libraries.&lt;/P&gt;&lt;P&gt;Please share if this works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 16:50:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657267#M36839</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2025-01-15T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657287#M36840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/112376"&gt;@Viraj_M_Intel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for checking with the team.&amp;nbsp; One important note:&amp;nbsp; WinUI 3 is part of the Windows App SDK, which is significantly different from UWP.&amp;nbsp; Because UWP is deprecated and Win App SDK is recommended for all future development, the ideal case would be to have&amp;nbsp;&lt;SPAN&gt;`mkl_was_compat_dll.*` files rather than the UWP versions.&amp;nbsp; Feel free to fork my&amp;nbsp;&lt;A class="" href="https://github.com/dr-eck/MiniEditor" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class=""&gt;https://github.com/dr-eck/MiniEditor&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&amp;nbsp;, specifically&amp;nbsp; the TestMKL project, to test the new files.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks also for the workaround.&amp;nbsp; I'll try it, but "uwd_compat" forces "threading = sequential", which does not give me the performance enhancement I want.&amp;nbsp; I'll let you know later today if it works.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 18:17:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657287#M36840</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-15T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657351#M36842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/112376"&gt;@Viraj_M_Intel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm still working on creating a custom DLL.&amp;nbsp; The page you reference tells me to use nmake to make the DLL.&amp;nbsp; It took me a while to find the makefile, and it doesn't quite work.&amp;nbsp; I didn't have time to fix it today.&amp;nbsp; I also tried the Visual Studio project in the same part of the distro, but haven't got that to work yet either.&amp;nbsp; I'll try again tomorrow.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 00:32:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657351#M36842</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-16T00:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657361#M36843</link>
      <description>&lt;P&gt;NMake can be installed from the Visual studio installer, but needs to be used from the command-line for the custom DLL builder.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 01:26:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657361#M36843</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2025-01-16T01:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657644#M36844</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/112376"&gt;@Viraj_M_Intel&lt;/a&gt;&amp;nbsp;Thanks.&amp;nbsp; I'm familiar with nmake, but a bit rusty.&amp;nbsp; I had to add the locations of lib.exe and mt.exe to my PATH and the location of libcmt.lib to my LIB.&amp;nbsp; Once I did this, nmake worked flawlessly.&amp;nbsp; I added the output files to the appropriate folders in my TestMKL app, and it works!&lt;/P&gt;&lt;P&gt;Now the bad news.&amp;nbsp; My real app uses a few LAPACKE functions, such as&amp;nbsp;LAPACKE_dposv.&amp;nbsp; I added these to the "export" input file for nmake and rebuilt the DLLs.&amp;nbsp; They grew, so things were looking good.&amp;nbsp; Unfortunately, although the linker finds the cblas_* functions, it does not find the LAPACKE_* functions in the same .lib file.&amp;nbsp; I used Notepad++ to look at the .exp and .lib files, and the LAPACKE_*&amp;nbsp; files are in there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one error message:&lt;/P&gt;&lt;P&gt;unresolved external symbol LAPACKE_dposv referenced in function "public: class std::vector&amp;lt;double,class std::allocator&amp;lt;double&amp;gt; &amp;gt; __cdecl DLS::Solve(class std::vector&amp;lt;double,class std::allocator&amp;lt;double&amp;gt; &amp;gt;,class std::vector&amp;lt;double,class std::allocator&amp;lt;double&amp;gt; &amp;gt;)" (?Solve@DLS@@QEAA?AV?$vector@NV?$allocator@N@std@@@std@@V23@V23@@Z)&lt;/P&gt;&lt;P&gt;Any clues as to why the linker is able to find the cblas_* functions but not the LAPACKE_* ones?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 21:34:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657644#M36844</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-16T21:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657658#M36845</link>
      <description>&lt;P&gt;Oops!&amp;nbsp; Things work much better when you copy the new files to the correct folder.&amp;nbsp; (Blush).&amp;nbsp; Problem solved, at least for as long as I can tolerate single threaded performance.&amp;nbsp; Please let me know when I can either make a new custom DLL with a WindowsAppSDK_compat flag or beta test the new "&lt;SPAN&gt;mkl_was_compat_dll.*" files.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 22:34:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1657658#M36845</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-01-16T22:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724661#M37426</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/64064"&gt;@Eckhardt__Stephen&lt;/a&gt;&amp;nbsp;Can you please share why you are limited to single threaded performance if placing oneMKL DLLs in the App directory? Can you use mkl_intel_thread or mkl_tbb_thread instead of mkl_sequential? You will also need Openmp or TBB depending on which threading option you choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking into this issue now, and my general understanding from WinAppSDK is that it creates a sandboxed environment and installs packages in that environment via Nuget as the primary package manager. Since Nuget is not the only option, users may choose a different way to source their dependencies and packages, one of them being manual DLL integration via the app manifest and copying them into the app folder, which you tried earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said, we do provide oneMKL nuget packages for static linking:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/intelmkl.static.win-x64" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/intelmkl.static.win-x64&lt;/A&gt;&amp;nbsp;and dynamic linking:&amp;nbsp;&lt;A href="https://www.nuget.org/packages/intelmkl.redist.win-x64" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/intelmkl.redist.win-x64&lt;/A&gt;. (Note the dependencies in the dependencies tab). Can you give either of these two packages a try and let us know if they work directly with your workflow without manual modifications?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html?operatingsystem=windows&amp;amp;windows-install=nuget" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-download.html?operatingsystem=windows&amp;amp;windows-install=nuget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 18:21:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724661#M37426</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2025-11-03T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724668#M37427</link>
      <description>&lt;P&gt;I'm having trouble with the Visual Studio Nuget Package Manager.&amp;nbsp; I can easily find intelmkl.redist.win-x64 when I browse nuget.org from within the Nuget Package Manager, but when I attempt to install it, I get this message:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;Package 'intelmkl.redist.win-x64 2025.3.0.453' is not found in the following primary source(s): 'https://api.nuget.org/v3/index.json'. Please verify all your online package sources are available (OR) package id, version are specified correctly.
&lt;/LI-CODE&gt;&lt;P&gt;I just updated three packages, so the manager seems to be working, at least for Microsoft code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the Package Manager Console, but I got an error.&amp;nbsp; Here's the session:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;PM&amp;gt; NuGet\Install-Package intelmkl.redist.win-x64 -Version 2025.3.0.453


Attempting to gather dependency information for package 'intelmkl.redist.win-x64.2025.3.0.453' with respect to project 'My Project', targeting 'native,Version=v0.0'
NuGet\Install-Package : Package 'intelmkl.redist.win-x64 2025.3.0.453' is not found in the following primary source(s): 'https://api.nuget.org/v3/index.json,C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'. Please verify all your online package sources are 
available (OR) package id, version are specified correctly.
At line:1 char:1
+ NuGet\Install-Package intelmkl.redist.win-x64 -Version 2025.3.0.453
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 
Time Elapsed: 00:00:00.2433915&lt;/LI-CODE&gt;&lt;P&gt;I'm guessing this is a Visual Studio problem (or user error), but do you have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 18:49:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724668#M37427</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-11-03T18:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724675#M37428</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/112376"&gt;@Viraj_M_Intel&lt;/a&gt;&amp;nbsp;I figured it out just after posting.&amp;nbsp; I needed to add an "intel*" mapping to my preexisting "Microsoft.*" mapping.&amp;nbsp; intelmkl.redist.win-x64 and its dependencies are now installed.&amp;nbsp; Now I can test them.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 19:23:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724675#M37428</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-11-03T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724708#M37430</link>
      <description>&lt;P&gt;I linked against the libraries under Intel/OneAPI/mkl (and Intel/OneAPI/2025.3/lib for libiomp5md.lib) and my program now links and runs.&amp;nbsp; The NuGet packages seem to have done the trick.&amp;nbsp; Thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 23:06:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724708#M37430</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-11-03T23:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724712#M37431</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/64064"&gt;@Eckhardt__Stephen&lt;/a&gt;&amp;nbsp;Thank you for verifying!&lt;/P&gt;&lt;P&gt;Just a heads-up - I found that the threading options are not populated by default after installing the intelmkl nuget package, so I had to choose those options in the properties manager:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Viraj_M_Intel_0-1762212879081.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/69653i7284BEC84179EEC0/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Viraj_M_Intel_0-1762212879081.png" alt="Viraj_M_Intel_0-1762212879081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 23:35:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724712#M37431</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2025-11-03T23:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724714#M37432</link>
      <description>&lt;P&gt;Thanks for letting me know.&amp;nbsp; I changed the setting from Sequential to Parallel and the program still works.&amp;nbsp; I'm very happy.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 23:50:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1724714#M37432</guid>
      <dc:creator>Eckhardt__Stephen</dc:creator>
      <dc:date>2025-11-03T23:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can one use MKL with C++/WinRT?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1738432#M37530</link>
      <description>&lt;P&gt;For anyone who comes back to this post, please find a detailed guide here:&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/accelerate-modern-windows-apps-with-onemkl.html" target="_blank"&gt;Accelerate Modern Windows* Applications with oneMKL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 17:51:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Can-one-use-MKL-with-C-WinRT/m-p/1738432#M37530</guid>
      <dc:creator>Viraj_M_Intel</dc:creator>
      <dc:date>2026-02-24T17:51:35Z</dc:date>
    </item>
  </channel>
</rss>

