<?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: Having problems calling MKL BLAS from VS2005 mixed language in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905972#M11658</link>
    <description>&lt;BR /&gt;
&lt;P&gt;Tony, &lt;BR /&gt;Can you get the example of your code? I will try to investigate the problem.&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2009 16:32:24 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2009-02-23T16:32:24Z</dc:date>
    <item>
      <title>Having problems calling MKL BLAS from VS2005 mixed language project 64bit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905967#M11653</link>
      <description>I am using VS2005, Intel Fortran 10and MKL 10. I have a VS2005 that has C++ routines that call Fortran routines and those Fortran routines call LAPACK and BLAS routines. Everything works fine in 32bit and I am linking statically (I only need to add mkl_s.lib as a additional library).&lt;BR /&gt;When switching to win64, I add the following libraries to the build in VS2005&lt;BR /&gt;&lt;BR /&gt;Solvers.lib mkl_core.lib mkl_intel_lp64.lib mkl_intel_thread.lib libguide.lib&lt;BR /&gt;&lt;BR /&gt;The link suceeds. But when the Fortran calls the BLAS routines (e.g. DGEMV), I immediately geta crash.&lt;BR /&gt;&lt;BR /&gt;So, the question is: how do I statically link to the MKL 64bit libraries from VS2005 please? I have tried several different sets of static libs, but either a link error or when I do link successfully, always crash when calling the BLAS.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Tony</description>
      <pubDate>Sat, 14 Feb 2009 00:09:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905967#M11653</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-02-14T00:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905968#M11654</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
If you use OpenMP (or any threading) in VC, you would require a link with libiomp5. While the documents say libiomp5 supports only VS2008, "it worked for me" with VS2005 also.&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Feb 2009 02:21:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905968#M11654</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-02-14T02:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905969#M11655</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;If you use OpenMP (or any threading) in VC, you would require a link with libiomp5. While the documents say libiomp5 supports only VS2008, "it worked for me" with VS2005 also.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Many thanks Tim for your suggestion. I gave it a try, but Im still getting the crash.</description>
      <pubDate>Mon, 16 Feb 2009 19:30:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905969#M11655</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-02-16T19:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905970#M11656</link>
      <description>&lt;DIV style="margin:0px;"&gt;Tony,&lt;BR /&gt;You dont need to use solver libs for linking BLAS functionality on Win64 system &lt;BR /&gt;1.The recommended libraries are: mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;BR /&gt;2. Please attention you have to use libraries from &amp;lt; MKLROOT&amp;gt;em64t directory.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Feb 2009 20:09:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905970#M11656</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-02-16T20:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905971#M11657</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Tony,&lt;BR /&gt;You dont need to use solver libs for linking BLAS functionality on Win64 system &lt;BR /&gt;1.The recommended libraries are: mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;BR /&gt;2. Please attention you have to use libraries from &amp;lt; MKLROOT&amp;gt;em64t directory.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thank you. I followed your instructions and rebuilt. When running the project, VS2005 complained that it could not find libiomp5md.dll, so I added the location of em64t/bin to the path, restarted VS2005 and rebuilt the project. And it crashed again in dgemm. What is odd is that it works fine for win32 builds.</description>
      <pubDate>Tue, 17 Feb 2009 02:33:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905971#M11657</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-02-17T02:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905972#M11658</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Tony, &lt;BR /&gt;Can you get the example of your code? I will try to investigate the problem.&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2009 16:32:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905972#M11658</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-02-23T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905973#M11659</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;Tony, &lt;BR /&gt;Can you get the example of your code? I will try to investigate the problem.&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;The project has a lot of propretiary code in it, so it would be difficult to pass it on to you. However, I am upgrading to MKL 10.1 and will try again - if I still get problems, Ill put together a smaller test case that reproduces it.</description>
      <pubDate>Thu, 26 Feb 2009 01:21:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905973#M11659</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-02-26T01:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905974#M11660</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hello Tony, is the problem is still there? Gennady&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Mar 2009 13:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905974#M11660</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-06T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905975#M11661</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="MARGIN: 0px"&gt;Hi Tony, Tim and Gennady,&lt;BR /&gt;&lt;BR /&gt;I have the exactly same problem as Tony. &lt;BR /&gt;&lt;BR /&gt;We used MKL 7.0 with Intel Fortran Compiler 9.1 &amp;amp; 10.0.027 for a VS2003 win32 C++executableand used to link against mkl_s_dll.lib in our source code. The calls to blas routines like DGEMVfor all MKL 7.0 dlls used to run absolutely fine.&lt;BR /&gt;&lt;BR /&gt;Then we had to create a 64 bit version of this executable. So we decided to use VS2005 for win64 platform along with MKL 10.1 and Intel Fortran Compiler 10.1. For this we choseto link with mkl_core_dll.lib, mkl_intel_lp64_dll.lib and mkl_intel_thread_dll.lib in em64tlib folder. While the build was successful,during runtime despite all MKL 10.1 dlls being in path the executable would crash while calling DGEMV routine. I have verified that all arguments passed to the routine are good.&lt;BR /&gt;&lt;BR /&gt;I have also tried linking against other combinations including:&lt;BR /&gt;1. mkl_core_dll.lib, mkl_intel_lp64_dll.lib, mkl_intel_thread_dll.lib&lt;BR /&gt;2. Statically linking against mkl_core.lib, mkl_intel_lp64.lib, mkl_intel_thread.lib&lt;BR /&gt;3. mkl_core_dll.lib, mkl_intel_ilp64_dll.lib, mkl_intel_thread_dll.lib&lt;BR /&gt;4. Statically linking against mkl_core.lib, mkl_intel_ilp64.lib, mkl_intel_thread.lib&lt;BR /&gt;5. mkl_core_dll.lib, mkl_intel_lp64_dll.lib,mkl_intel_thread_dll.lib, libiomp5md.lib&lt;BR /&gt;6. mkl_core_dll.lib, mkl_intel_ilp64_dll.lib, mkl_intel_thread_dll.lib, libiomp5md.lib&lt;BR /&gt;7. mkl_dll.lib along with referenced libraries&lt;BR /&gt;8. mkl_em64t.lib along with referenced libraries&lt;BR /&gt;&lt;BR /&gt;All of them would reproduce the problem.&lt;BR /&gt;&lt;BR /&gt;Also I have the followingobservations w.r.t. MKL library versions:&lt;BR /&gt;Fortran 10.1 + MKL 10.1 crashes&lt;BR /&gt;Fortran 9.0 + MKL 10.1 crashes&lt;BR /&gt;Fortran 9.0 + MKL 7.0 works&lt;BR /&gt;Fortran 10.1 + MKL 7.0 works&lt;BR /&gt;&lt;BR /&gt;I'll be grateful if you guys can help mefind what can be going wrong. The crash occurs while calling DGEMV in the subroutine below.&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE MA50GD(M,N,A,LDA,NB,PIVTOL,IPIV,RANK)&lt;BR /&gt;&lt;BR /&gt;INTEGER LDA,M,N,NB,RANK&lt;BR /&gt;DOUBLE PRECISION PIVTOL&lt;BR /&gt;&lt;BR /&gt;INTEGER IPIV(N)&lt;BR /&gt;DOUBLE PRECISION A(LDA,N)&lt;BR /&gt;&lt;BR /&gt;DOUBLE PRECISION ONE,ZERO&lt;BR /&gt;PARAMETER (ONE=1.0D+0,ZERO=0.0D+0)&lt;BR /&gt;&lt;BR /&gt;INTEGER I,J,JJ,JP,J1,J2,K&lt;BR /&gt;LOGICAL PIVOT&lt;BR /&gt;DOUBLE PRECISION TEMP&lt;BR /&gt;&lt;BR /&gt;EXTERNAL DGEMM,DGEMV,DSWAP,DSCAL,DTRSM,DTRSV&lt;BR /&gt;&lt;BR /&gt;INTEGER IDAMAX&lt;BR /&gt;EXTERNAL IDAMAX&lt;BR /&gt;&lt;BR /&gt;INTRINSIC ABS,MIN&lt;BR /&gt;&lt;BR /&gt;J = 1&lt;BR /&gt;J1 = 1&lt;BR /&gt;J2 = MIN(N,NB)&lt;BR /&gt;DO 70 K = 1,N&lt;BR /&gt;&lt;BR /&gt;IF (J.LE.M) THEN&lt;BR /&gt;&lt;BR /&gt;CALL DGEMV('N',M-J+1,J-J1,-ONE,A(J,J1),LDA,A(J1,J),1,ONE,A(J,J),1)&lt;BR /&gt;.................................................................&lt;BR /&gt;.................................................................&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Mar 2009 04:31:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905975#M11661</guid>
      <dc:creator>sudhir_singh</dc:creator>
      <dc:date>2009-03-09T04:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905976#M11662</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;As an example, I have uploaded to this thread DGEMV.zip file contains &lt;BR /&gt;VS2005 based Fortran project is linked with mkl 10.1 with X64 mode.&lt;BR /&gt;See more details in Project properties settings.&lt;BR /&gt;You can adjust these settings and try to run the project.&lt;BR /&gt;&lt;BR /&gt;The expected output:&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;D G E M V EXAMPLE PROGRAM&lt;BR /&gt;&lt;BR /&gt;INPUT DATA&lt;BR /&gt;M=4 N=5&lt;BR /&gt;ALPHA= 0.56 BETA= 1.00&lt;BR /&gt;TRANS=T&lt;BR /&gt;VECTOR X INCX=-1&lt;BR /&gt;1.000 2.000 3.000 4.000&lt;BR /&gt;VECTOR Y INCY= 1&lt;BR /&gt;1.000 1.000 1.000 1.000 1.000&lt;BR /&gt;ARRAY A LDA=4&lt;BR /&gt;-1.300 2.300 3.700 4.300 5.900&lt;BR /&gt;-1.800 2.800 3.200 4.600 5.700&lt;BR /&gt;1.100 2.200 3.000 4.500 5.400&lt;BR /&gt;1.900 2.800 3.400 4.200 5.100&lt;BR /&gt;&lt;BR /&gt;OUTPUT DATA&lt;BR /&gt;VECTOR Y INCY= 1&lt;BR /&gt;-2.640 14.888 19.928 25.752 32.696&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;---------------------------------------------------&lt;BR /&gt;I hope it will help you.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2009 08:13:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905976#M11662</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-09T08:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905977#M11663</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
DGEMV doesn't handle the combination M&amp;gt;0 N==0 correctly. My understanding is MKL is designed to be bug compatible with the netlib version. The comments in the netlib reference source imply that it should work, but that's inconsistent with the source code. I don't think this has been discussed since this forum started.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2009 12:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905977#M11663</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-03-09T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905978#M11664</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Hello Tony, is the problem is still there? Gennady&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Yes - it is still there. It must be a real problem because two others have reported issues too.</description>
      <pubDate>Tue, 10 Mar 2009 01:19:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905978#M11664</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-03-10T01:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905979#M11665</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/417504"&gt;sudhir.singh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="MARGIN: 0px"&gt;Hi Tony, Tim and Gennady,&lt;BR /&gt;&lt;BR /&gt;I have the exactly same problem as Tony. &lt;BR /&gt;&lt;BR /&gt;We used MKL 7.0 with Intel Fortran Compiler 9.1 &amp;amp; 10.0.027 for a VS2003 win32 C++executableand used to link against mkl_s_dll.lib in our source code. The calls to blas routines like DGEMVfor all MKL 7.0 dlls used to run absolutely fine.&lt;BR /&gt;&lt;BR /&gt;Then we had to create a 64 bit version of this executable. So we decided to use VS2005 for win64 platform along with MKL 10.1 and Intel Fortran Compiler 10.1. For this we choseto link with mkl_core_dll.lib, mkl_intel_lp64_dll.lib and mkl_intel_thread_dll.lib in em64tlib folder. While the build was successful,during runtime despite all MKL 10.1 dlls being in path the executable would crash while calling DGEMV routine. I have verified that all arguments passed to the routine are good.&lt;BR /&gt;&lt;BR /&gt;I have also tried linking against other combinations including:&lt;BR /&gt;1. mkl_core_dll.lib, mkl_intel_lp64_dll.lib, mkl_intel_thread_dll.lib&lt;BR /&gt;2. Statically linking against mkl_core.lib, mkl_intel_lp64.lib, mkl_intel_thread.lib&lt;BR /&gt;3. mkl_core_dll.lib, mkl_intel_ilp64_dll.lib, mkl_intel_thread_dll.lib&lt;BR /&gt;4. Statically linking against mkl_core.lib, mkl_intel_ilp64.lib, mkl_intel_thread.lib&lt;BR /&gt;5. mkl_core_dll.lib, mkl_intel_lp64_dll.lib,mkl_intel_thread_dll.lib, libiomp5md.lib&lt;BR /&gt;6. mkl_core_dll.lib, mkl_intel_ilp64_dll.lib, mkl_intel_thread_dll.lib, libiomp5md.lib&lt;BR /&gt;7. mkl_dll.lib along with referenced libraries&lt;BR /&gt;8. mkl_em64t.lib along with referenced libraries&lt;BR /&gt;&lt;BR /&gt;All of them would reproduce the problem.&lt;BR /&gt;&lt;BR /&gt;Also I have the followingobservations w.r.t. MKL library versions:&lt;BR /&gt;Fortran 10.1 + MKL 10.1 crashes&lt;BR /&gt;Fortran 9.0 + MKL 10.1 crashes&lt;BR /&gt;Fortran 9.0 + MKL 7.0 works&lt;BR /&gt;Fortran 10.1 + MKL 7.0 works&lt;BR /&gt;&lt;BR /&gt;I'll be grateful if you guys can help mefind what can be going wrong. The crash occurs while calling DGEMV in the subroutine below.&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE MA50GD(M,N,A,LDA,NB,PIVTOL,IPIV,RANK)&lt;BR /&gt;&lt;BR /&gt;INTEGER LDA,M,N,NB,RANK&lt;BR /&gt;DOUBLE PRECISION PIVTOL&lt;BR /&gt;&lt;BR /&gt;INTEGER IPIV(N)&lt;BR /&gt;DOUBLE PRECISION A(LDA,N)&lt;BR /&gt;&lt;BR /&gt;DOUBLE PRECISION ONE,ZERO&lt;BR /&gt;PARAMETER (ONE=1.0D+0,ZERO=0.0D+0)&lt;BR /&gt;&lt;BR /&gt;INTEGER I,J,JJ,JP,J1,J2,K&lt;BR /&gt;LOGICAL PIVOT&lt;BR /&gt;DOUBLE PRECISION TEMP&lt;BR /&gt;&lt;BR /&gt;EXTERNAL DGEMM,DGEMV,DSWAP,DSCAL,DTRSM,DTRSV&lt;BR /&gt;&lt;BR /&gt;INTEGER IDAMAX&lt;BR /&gt;EXTERNAL IDAMAX&lt;BR /&gt;&lt;BR /&gt;INTRINSIC ABS,MIN&lt;BR /&gt;&lt;BR /&gt;J = 1&lt;BR /&gt;J1 = 1&lt;BR /&gt;J2 = MIN(N,NB)&lt;BR /&gt;DO 70 K = 1,N&lt;BR /&gt;&lt;BR /&gt;IF (J.LE.M) THEN&lt;BR /&gt;&lt;BR /&gt;CALL DGEMV('N',M-J+1,J-J1,-ONE,A(J,J1),LDA,A(J1,J),1,ONE,A(J,J),1)&lt;BR /&gt;.................................................................&lt;BR /&gt;.................................................................&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi,&lt;BR /&gt;I took your project and loaded into VS2005+Intel Fortran 10+MKL 10.1. There was a message about re-integration in VS required. After changing the lib path to my MKL installation, when running I get an error because libiomp5md.dll cannot be found. Any suggestions? Should MKL be on my path?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Tony</description>
      <pubDate>Tue, 10 Mar 2009 03:33:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905979#M11665</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-03-10T03:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905980#M11666</link>
      <description>&lt;DIV style="margin:0px;"&gt;Yes. See more details in userguide ( Configuring Intel Visual Fortran to Link with Intel MKL)&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:31:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905980#M11666</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-10T05:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905981#M11667</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;As an example, I have uploaded to this thread DGEMV.zip file contains &lt;BR /&gt;VS2005 based Fortran project is linked with mkl 10.1 with X64 mode.&lt;BR /&gt;See more details in Project properties settings.&lt;BR /&gt;You can adjust these settings and try to run the project.&lt;BR /&gt;&lt;BR /&gt;The expected output:&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;D G E M V EXAMPLE PROGRAM&lt;BR /&gt;&lt;BR /&gt;INPUT DATA&lt;BR /&gt;M=4 N=5&lt;BR /&gt;ALPHA= 0.56 BETA= 1.00&lt;BR /&gt;TRANS=T&lt;BR /&gt;VECTOR X INCX=-1&lt;BR /&gt;1.000 2.000 3.000 4.000&lt;BR /&gt;VECTOR Y INCY= 1&lt;BR /&gt;1.000 1.000 1.000 1.000 1.000&lt;BR /&gt;ARRAY A LDA=4&lt;BR /&gt;-1.300 2.300 3.700 4.300 5.900&lt;BR /&gt;-1.800 2.800 3.200 4.600 5.700&lt;BR /&gt;1.100 2.200 3.000 4.500 5.400&lt;BR /&gt;1.900 2.800 3.400 4.200 5.100&lt;BR /&gt;&lt;BR /&gt;OUTPUT DATA&lt;BR /&gt;VECTOR Y INCY= 1&lt;BR /&gt;-2.640 14.888 19.928 25.752 32.696&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;---------------------------------------------------&lt;BR /&gt;I hope it will help you.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the help Gennady. I still cannot resolve the problem at my end. I used the data in my problem with your code and it worked fine. I'll try the same by creating a library with your code and calling it with a C++ executable.&lt;BR /&gt;As I am on leave for tommorow, I'll get back in next 2 days on the results. &lt;BR /&gt;&lt;BR /&gt;My data also has the combination combination M=2 and N=0.</description>
      <pubDate>Tue, 10 Mar 2009 12:01:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905981#M11667</guid>
      <dc:creator>sudhir_singh</dc:creator>
      <dc:date>2009-03-10T12:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905982#M11668</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/246987"&gt;tgarratt@reactiondesign.com&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;Hi,&lt;BR /&gt;I took your project and loaded into VS2005+Intel Fortran 10+MKL 10.1. There was a message about re-integration in VS required. After changing the lib path to my MKL installation, when running I get an error because libiomp5md.dll cannot be found. Any suggestions? Should MKL be on my path?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Tony&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Either this dll should becopied tothe same directory as the executable, you can add the mkl10.1em64tbin folder to system path to fix this problem.</description>
      <pubDate>Tue, 10 Mar 2009 12:04:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905982#M11668</guid>
      <dc:creator>sudhir_singh</dc:creator>
      <dc:date>2009-03-10T12:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905983#M11669</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/417504"&gt;sudhir.singh&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;My data also has the combination combination M=2 and N=0.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
If you are hitting the bug for N==0, you must catch that case in your own code and avoid ?gemv, or get a copy of the reference source code, fix it there, and not use the MKL version. The reference source is, yes, a valuable reference. You could build with it and step through in a debugger, for example, to see if your usage does expose a bug. Or just step in your own code and see if ?gemv breaks on that case.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 13:57:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905983#M11669</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-03-10T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905984#M11670</link>
      <description>&lt;DIV style="margin:0px;"&gt;One remark:&lt;BR /&gt;DGEMV doesn't handle the combination M&amp;gt;0 N==0 correctly.&lt;BR /&gt;&lt;STRONG&gt;Its not completely correct.&lt;BR /&gt;&lt;/STRONG&gt;See mkls description:&lt;BR /&gt;call dgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy)&lt;BR /&gt;m - INTEGER. Specifies the number of rows of the matrix A. The value of m must be at least zero.&lt;BR /&gt;n - INTEGER. Specifies the number of columns of the matrix A. The value of n must be at least zero.&lt;BR /&gt;Thats mean if N == 0 this the valid calling for dgemv and we are not expectingcrash when calling the BLAS &lt;BR /&gt;with N == 0&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 14:45:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905984#M11670</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-10T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905985#M11671</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;One remark:&lt;BR /&gt;DGEMV doesn't handle the combination M&amp;gt;0 N==0 correctly.&lt;BR /&gt;&lt;STRONG&gt;Its not completely correct.&lt;BR /&gt;&lt;/STRONG&gt;See mkls description:&lt;BR /&gt;call dgemv(trans, m, n, alpha, a, lda, x, incx, beta, y, incy)&lt;BR /&gt;m - INTEGER. Specifies the number of rows of the matrix A. The value of m must be at least zero.&lt;BR /&gt;n - INTEGER. Specifies the number of columns of the matrix A. The value of n must be at least zero.&lt;BR /&gt;Thats mean if N == 0 this the valid calling for dgemv and we are not expectingcrash when calling the BLAS &lt;BR /&gt;with N == 0&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;***This is an MKL BUG*** and need to be fixed by Intel ASAP. The code that sudhir.singh is using is one that I recognise - its a well respected linear solver from the Harwell Subroutine Library (HSL) that is calling BLAS routines. Since the linear solver code will be considered"third party" to most users of HSL, they donot want to be making changes to it to get around a bug in DGEMV because you end up diverging from the HSL source code.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905985#M11671</guid>
      <dc:creator>Tony_Garratt</dc:creator>
      <dc:date>2009-03-10T15:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Having problems calling MKL BLAS from VS2005 mixed language</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905986#M11672</link>
      <description>&lt;BR /&gt;Really? On my side all works fine. Can you get the testcase for reproducing the problem?&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 17:26:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Having-problems-calling-MKL-BLAS-from-VS2005-mixed-language/m-p/905986#M11672</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-10T17:26:24Z</dc:date>
    </item>
  </channel>
</rss>

