<?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 cblas_daxpy fails in MKL 2025.2 when called from C++/CLI code that targets .NET Core. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-daxpy-fails-in-MKL-2025-2-when-called-from-C-CLI-code-that/m-p/1705337#M37267</link>
    <description>&lt;P&gt;cblas_daxpy fails (crashes) when called from C++/CLI code that targets .NET Core (as well as related runtimes such as .NET 5 and .NET 8). It succeeds when called from native C++ or .NET Framework 4.8 code.&lt;/P&gt;&lt;P&gt;C++/CLI test code:&lt;/P&gt;&lt;PRE&gt;cli::array&amp;lt;double&amp;gt;^ x = gcnew cli::array&amp;lt;double&amp;gt;(3);&lt;BR /&gt;x[0] = -1.0; x[1] = 2.0; x[2] = -1.5;&lt;BR /&gt;cli::array&amp;lt;double&amp;gt;^ y = gcnew cli::array&amp;lt;double&amp;gt;(3);&lt;BR /&gt;y[0] = 2.5; y[1] = -3.0; y[2] = 4.0;&lt;BR /&gt;pin_ptr&amp;lt;double&amp;gt; px = &amp;amp;x[0];&lt;BR /&gt;pin_ptr&amp;lt;double&amp;gt; py = &amp;amp;y[0];&lt;BR /&gt;cblas_daxpy(3, 2.0, px, 1, py, 1);&lt;BR /&gt;Console::WriteLine("{0}\t{1}\t{2}", y[0], y[1], y[2]);&lt;/PRE&gt;&lt;P&gt;The attached Zip file contains the following projects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;TestDAXPYNativeCPP - native C++ console application&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetFxCPP - C++/CLI console application targeting .NET Framework 4.8&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetCoreCPPDLL - C++/CLI DLL targeting .NET 5&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetCoreCS - C# console application that calls&amp;nbsp;TestDAXPYNetCoreCPPDLL (C++/CLI .NET Core applications are not supported)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The bug is reproducible using both Visual Studio 2019 and Visual Studio 2022 compilers, and did not appear with versions 2025.1 and earlier of the Math Kernel Library.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2025 21:47:08 GMT</pubDate>
    <dc:creator>Jones__Andrew</dc:creator>
    <dc:date>2025-07-24T21:47:08Z</dc:date>
    <item>
      <title>cblas_daxpy fails in MKL 2025.2 when called from C++/CLI code that targets .NET Core.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-daxpy-fails-in-MKL-2025-2-when-called-from-C-CLI-code-that/m-p/1705337#M37267</link>
      <description>&lt;P&gt;cblas_daxpy fails (crashes) when called from C++/CLI code that targets .NET Core (as well as related runtimes such as .NET 5 and .NET 8). It succeeds when called from native C++ or .NET Framework 4.8 code.&lt;/P&gt;&lt;P&gt;C++/CLI test code:&lt;/P&gt;&lt;PRE&gt;cli::array&amp;lt;double&amp;gt;^ x = gcnew cli::array&amp;lt;double&amp;gt;(3);&lt;BR /&gt;x[0] = -1.0; x[1] = 2.0; x[2] = -1.5;&lt;BR /&gt;cli::array&amp;lt;double&amp;gt;^ y = gcnew cli::array&amp;lt;double&amp;gt;(3);&lt;BR /&gt;y[0] = 2.5; y[1] = -3.0; y[2] = 4.0;&lt;BR /&gt;pin_ptr&amp;lt;double&amp;gt; px = &amp;amp;x[0];&lt;BR /&gt;pin_ptr&amp;lt;double&amp;gt; py = &amp;amp;y[0];&lt;BR /&gt;cblas_daxpy(3, 2.0, px, 1, py, 1);&lt;BR /&gt;Console::WriteLine("{0}\t{1}\t{2}", y[0], y[1], y[2]);&lt;/PRE&gt;&lt;P&gt;The attached Zip file contains the following projects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;TestDAXPYNativeCPP - native C++ console application&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetFxCPP - C++/CLI console application targeting .NET Framework 4.8&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetCoreCPPDLL - C++/CLI DLL targeting .NET 5&lt;/LI&gt;&lt;LI&gt;TestDAXPYNetCoreCS - C# console application that calls&amp;nbsp;TestDAXPYNetCoreCPPDLL (C++/CLI .NET Core applications are not supported)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The bug is reproducible using both Visual Studio 2019 and Visual Studio 2022 compilers, and did not appear with versions 2025.1 and earlier of the Math Kernel Library.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 21:47:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cblas-daxpy-fails-in-MKL-2025-2-when-called-from-C-CLI-code-that/m-p/1705337#M37267</guid>
      <dc:creator>Jones__Andrew</dc:creator>
      <dc:date>2025-07-24T21:47:08Z</dc:date>
    </item>
  </channel>
</rss>

