<?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 error LNK2019 when calling BLAS95 from Fortran in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771102#M628</link>
    <description>Hello Frank,&lt;DIV&gt;I cannot find where user's manualcontainsis inconsistency. I am searching to the version of MKL 10.2 Update 6 ( the similar version is bundled with Compiler 11.1\067. &lt;/DIV&gt;&lt;DIV&gt;Could you indicate this in the userguide?&lt;/DIV&gt;&lt;DIV&gt;and one more noteregardingthe issue - we have the article:&lt;A href="http://software.intel.com/en-us/articles/using-mkl-in-intel-compiler-mkl-qmkl-options/?wapkw=(/Qmkl)"&gt;"Using MKL in Intel Compiler - mkl, Qmkl options"&lt;/A&gt;where the similar issue has been described.&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;H1&gt;&lt;/H1&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Dec 2010 15:07:54 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2010-12-16T15:07:54Z</dc:date>
    <item>
      <title>error LNK2019 when calling BLAS95 from Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771098#M624</link>
      <description>Using VS2008 and IVF 11.1.067 I'm getting the error &lt;BR /&gt;&lt;BR /&gt;Error1 error LNK2019: unresolved external symbol _DGEMV_F95 referenced in function _POLYMULT&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]      INCLUDE 'blas.f90'
		
      SUBROUTINE POLYMULT(poly1, poly1len, poly2, poly2len, poly3, poly3len)
        USE mkl95_precision
        USE BLAS95, ONLY: GEMV
        IMPLICIT NONE
        INTEGER, INTENT(IN) :: poly1len, poly2len, poly3len
        REAL(8), DIMENSION(poly1len), INTENT(IN) :: poly1
        REAL(8), DIMENSION(poly2len), INTENT(IN) :: poly2
        REAL(8), DIMENSION(poly3len), INTENT(INOUT) :: poly3
        REAL(8), DIMENSION(:,:), ALLOCATABLE :: matrixA
        REAL(8) :: alpha, beta
        CHARACTER(len = 1) :: trans
        INTEGER :: i, j, status
        ALLOCATE(matrixA(poly2len,poly1len+poly2len-1), STAT = status)
        alpha = 1.0_8
        beta = 0.0_8
        trans = 'N'
        matrixA = 0.0_8
        FORALL(i = 1: poly2len, j = 1: poly1len) matrixA(j, j+i-1) = poly2(i)
        CALL GEMV(matrixA, poly1, poly3, alpha, beta, trans)
        DEALLOCATE(matrixA)
        RETURN
      END SUBROUTINE POLYMULT[/fortran]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The c++ version works.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]#include "mkl.h"

void i_poly_mult(double* ppoly1, int poly1len, double* ppoly2, int poly2len, double* ppoly3)
{
	MKL_INT         incpoly;
    double          alpha, beta;
    CBLAS_ORDER     order;
    CBLAS_TRANSPOSE trans;

	order = CblasRowMajor;
	trans = CblasTrans;
	alpha = 1.0;
	beta = 0.0;
	incpoly = 1;
	
	int i,j;
	int poly3len;
	poly3len = poly1len + poly2len - 1;
	double* parray;
	parray = new double[poly3len * poly1len];
  
	j=0;
	for(i = 0; i &amp;lt; poly1len -1; i++)
	{
		iuni_copy(ppoly2,parray+j,poly2len);
		j = j + poly2len;
		iuni_assign(parray+j,0.0,poly1len);
		j = j + poly1len;
	}
	iuni_copy(ppoly2,parray+j,poly2len);
// call mkl 
	cblas_dgemv(order, trans, poly1len, poly3len, alpha, parray, poly3len, ppoly1, incpoly, beta, ppoly3, incpoly);
	delete [] parray;
	parray = 0;
}[/bash]&lt;/PRE&gt;&lt;BR /&gt;I must have something configured wrong but what? Fortran has no problem linking with other MKL functions. &lt;BR /&gt;I'm stumpt. Please help.&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Dec 2010 15:20:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771098#M624</guid>
      <dc:creator>Frank_M</dc:creator>
      <dc:date>2010-12-05T15:20:56Z</dc:date>
    </item>
    <item>
      <title>error LNK2019 when calling BLAS95 from Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771099#M625</link>
      <description>The F95 BLAS routines are contained in &lt;B&gt;mkl_blas95.lib. &lt;/B&gt;The CBLAS routines are contained in &lt;B&gt;mkl_intel_c.lib.&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;You probably did not add the appropriate library to your Fortran build.&lt;BR /&gt;&lt;BR /&gt;That the C++ version "worked" whereas the F95 version "failed" amounts to nothing, as there is no parity between the two builds.&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Dec 2010 17:24:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771099#M625</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-12-05T17:24:26Z</dc:date>
    </item>
    <item>
      <title>error LNK2019 when calling BLAS95 from Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771100#M626</link>
      <description>&lt;P&gt;My settings in Configuration Properties -&amp;gt; Fortran -&amp;gt; Libraries :&lt;BR /&gt;&lt;BR /&gt;RunTime Library -&amp;gt; Debug Multithreaded (/libs:static /threads /dbglibs)&lt;BR /&gt;Use Common Windows Library -&amp;gt; No&lt;BR /&gt;Use Portlib Library -&amp;gt; No&lt;BR /&gt;Use Intel Math Kernel Library -&amp;gt; Sequential(/Qmkl:sequential)&lt;BR /&gt;Disable Default Library Search Rules -&amp;gt; No&lt;BR /&gt;Disable OBJCOMMENT Library Names in Object -&amp;gt; No&lt;BR /&gt;&lt;BR /&gt;According to the fortran users manual, the above is all that is required to use the MKL library.&lt;BR /&gt;&lt;BR /&gt;The MKLusers manualis a bit dfferent. It states that under Project-&amp;gt; Properties -&amp;gt; Linker -&amp;gt; General -&amp;gt; Additional Library Directories " Add the architecture specific lib folder."&lt;BR /&gt;and under Project-&amp;gt; Properties -&amp;gt; Linker -&amp;gt; Input -&amp;gt; Additional Dependicies &lt;BR /&gt;"Insertmkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib"&lt;BR /&gt;&lt;BR /&gt;Fortran does not have a path Project-&amp;gt; Properties -&amp;gt; Linker -&amp;gt; General so I assume it means Configuration Properties -&amp;gt; Librarian -&amp;gt; General&lt;/P&gt;&lt;P&gt;Here the settings I've tried are: ( with and without Use Intel Math Kernel Library -&amp;gt; Sequential(/Qmkl:sequential) )&lt;BR /&gt;&lt;BR /&gt;Output File -&amp;gt; $(OutDir)/$(ProjectName).libAdditional Dependencies -&amp;gt; mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;BR /&gt;Additional Library Directories -&amp;gt; C:\Program Files\Intel\Compiler\11.1\067\mkl\ia32\libSuppress Startup Banner -&amp;gt; Yes(/NOLOGO)&lt;BR /&gt;Model Definition File Name -&amp;gt; empty&lt;BR /&gt;Ignore All Default Libraries -&amp;gt; No&lt;BR /&gt;Ignore Specific Library -&amp;gt; empty&lt;BR /&gt;Export Named Functions -&amp;gt; empty&lt;BR /&gt;Force Symbol Reference -&amp;gt; empty&lt;BR /&gt;Link Library Dependencies -&amp;gt; Yes &lt;/P&gt;&lt;P&gt;The above settings make no changes to the error, but they do increase compile time as the library has to be rebuilt at each compile. There is also a large warning list for second definitions.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2010 05:03:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771100#M626</guid>
      <dc:creator>Frank_M</dc:creator>
      <dc:date>2010-12-06T05:03:33Z</dc:date>
    </item>
    <item>
      <title>error LNK2019 when calling BLAS95 from Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771101#M627</link>
      <description>Found the answer.&lt;BR /&gt;&lt;BR /&gt;The user's manual lies in the table on page 5 - 5. The library mkl_blas95.lib is not in the library mkl_core.lib.&lt;BR /&gt;&lt;BR /&gt;If I set &lt;BR /&gt;&lt;BR /&gt;Use Intel Math Kernel Library -&amp;gt; Sequential(/Qmkl:sequential)&lt;BR /&gt;&lt;BR /&gt;Additional Dependencies -&amp;gt; mkl_blas95.lib&lt;BR /&gt;&lt;BR /&gt;Additional Library Directories -&amp;gt; C:\Program Files\Intel\Compiler\11.1\067\mkl\ia32&lt;BR /&gt;&lt;BR /&gt;It links!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2010 11:36:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771101#M627</guid>
      <dc:creator>Frank_M</dc:creator>
      <dc:date>2010-12-06T11:36:05Z</dc:date>
    </item>
    <item>
      <title>error LNK2019 when calling BLAS95 from Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771102#M628</link>
      <description>Hello Frank,&lt;DIV&gt;I cannot find where user's manualcontainsis inconsistency. I am searching to the version of MKL 10.2 Update 6 ( the similar version is bundled with Compiler 11.1\067. &lt;/DIV&gt;&lt;DIV&gt;Could you indicate this in the userguide?&lt;/DIV&gt;&lt;DIV&gt;and one more noteregardingthe issue - we have the article:&lt;A href="http://software.intel.com/en-us/articles/using-mkl-in-intel-compiler-mkl-qmkl-options/?wapkw=(/Qmkl)"&gt;"Using MKL in Intel Compiler - mkl, Qmkl options"&lt;/A&gt;where the similar issue has been described.&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;H1&gt;&lt;/H1&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Dec 2010 15:07:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-LNK2019-when-calling-BLAS95-from-Fortran/m-p/771102#M628</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-12-16T15:07:54Z</dc:date>
    </item>
  </channel>
</rss>

