<?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: Using both BLAS and VML in VBA in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1614408#M36268</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/367549"&gt;@personalityson&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried working directly with oneMKL? I don't believe we support/test the VB interface with oneMKL. However, please provide more details -- versions of Visual Studio and oneMKL, etc.&amp;nbsp; &amp;nbsp;Please also look at the previous posts, e.g.,&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Declaring-BLAS-functions-from-mkl-rt-dll-in-VBA-Excel/td-p/1093299" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Declaring-BLAS-functions-from-mkl-rt-dll-in-VBA-Excel/td-p/1093299&lt;/A&gt;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 04:32:14 GMT</pubDate>
    <dc:creator>Mark_L_Intel</dc:creator>
    <dc:date>2024-07-12T04:32:14Z</dc:date>
    <item>
      <title>Using both BLAS and VML in VBA</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1613378#M36259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In VBA Excel I am able to declare an API function call for dgemm (Fortran version). I'm linking directly to mkl_rt.2.dll in the&amp;nbsp;bin directory. I tested it and it works fine.&lt;/P&gt;&lt;P&gt;I'm doing the same with some VML functions, they also work, but after calling one of them, let' say vdSub,&amp;nbsp;dgemm stopped working.&lt;/P&gt;&lt;P&gt;I understand that running VML functions for the first time changes the settings somehow?&lt;/P&gt;&lt;P&gt;What can I do to be able to use both at the same time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if relevant:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Private Declare PtrSafe Sub vdSub Lib "mkl_rt.2.dll" (ByRef n As Long, _
                                                      ByVal A As LongPtr, _
                                                      ByVal B As LongPtr, _
                                                      ByVal Y As LongPtr)

Private Declare PtrSafe Sub dgemm Lib "mkl_rt.2.dll" (ByRef transA As String, _
                                                      ByRef transB As String, _
                                                      ByRef m As Long, _
                                                      ByRef n As Long, _
                                                      ByRef k As Long, _
                                                      ByRef alpha As Double, _
                                                      ByVal A As LongPtr, _
                                                      ByRef ldA As Long, _
                                                      ByVal B As LongPtr, _
                                                      ByRef ldB As Long, _
                                                      ByRef beta As Double, _
                                                      ByVal C As LongPtr, _
                                                      ByRef ldC As Long)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 10:36:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1613378#M36259</guid>
      <dc:creator>personalityson</dc:creator>
      <dc:date>2024-07-09T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using both BLAS and VML in VBA</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1614408#M36268</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/367549"&gt;@personalityson&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried working directly with oneMKL? I don't believe we support/test the VB interface with oneMKL. However, please provide more details -- versions of Visual Studio and oneMKL, etc.&amp;nbsp; &amp;nbsp;Please also look at the previous posts, e.g.,&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Declaring-BLAS-functions-from-mkl-rt-dll-in-VBA-Excel/td-p/1093299" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Declaring-BLAS-functions-from-mkl-rt-dll-in-VBA-Excel/td-p/1093299&lt;/A&gt;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 04:32:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1614408#M36268</guid>
      <dc:creator>Mark_L_Intel</dc:creator>
      <dc:date>2024-07-12T04:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using both BLAS and VML in VBA</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1614622#M36272</link>
      <description>&lt;P&gt;Thanks for replying to me. I think I'll just end up compiling my own stand-alone dll's, one for BLAS and one for VML.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 18:39:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1614622#M36272</guid>
      <dc:creator>personalityson</dc:creator>
      <dc:date>2024-07-12T18:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using both BLAS and VML in VBA</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1629009#M36384</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/367549"&gt;@personalityson&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Sounds good.&amp;nbsp; this issue will no longer be monitored by Intel.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 20:46:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-both-BLAS-and-VML-in-VBA/m-p/1629009#M36384</guid>
      <dc:creator>Mark_L_Intel</dc:creator>
      <dc:date>2024-09-05T20:46:55Z</dc:date>
    </item>
  </channel>
</rss>

