<?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 Quote:OP wrote: Thanks mecej4 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170280#M28511</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;OP wrote:&lt;BR /&gt; Thanks mecej4 - but shouldn't an interface argument inconsistency be detected by the compiler?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have enabled the compiler to see an explicit interface to GEMV, which is a generic subprogram name, through the USE BLAS95 statement. The compiler will have checked the arguments in that call.&lt;/P&gt;&lt;P&gt;For the other BLAS routine that you call, DZGEMV, only an implicit interface is available to the compiler, and that one is incorrect. The compiler can detect such errors only if you provide an explicit and correct interface, or if there is more than one call from the same program unit to the same BLAS routine and the calls are mutually inconsistent.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2020 14:13:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2020-04-24T14:13:00Z</dc:date>
    <item>
      <title>Strangeness with DZGEMV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170274#M28505</link>
      <description>&lt;P&gt;The following code produces different outputs for DZGEMV and GEMV. The code is built with default 64-bit integer and real numbers; The parallel version of the MKL library is used (using ILP64 interfaces).&lt;/P&gt;&lt;P&gt;The path to the module files is: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\mkl\include\intel64\ilp64&lt;/P&gt;&lt;P&gt;Using the link advisor, the libraries used are: mkl_blas95_ilp64.lib mkl_lapack95_ilp64.lib mkl_intel_ilp64_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib libiomp5md.lib (library directory: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\mkl\lib\intel64_win).&lt;/P&gt;&lt;P&gt;GEMV and MATMUL produce the expected result. I can't explain what DZGEMV does here.&lt;/P&gt;&lt;P&gt;This is on a WIN 10 machine, with Intel Parallel Studio XE 2019 Update 3 Cluster Edition.&lt;/P&gt;
&lt;PRE class="brush:fortran; class-name:dark;"&gt;PROGRAM P
USE BLAS95
IMPLICIT NONE

COMPLEX :: PHI(2,1),V(2),W(1),ALPHA,BETA
INTEGER :: M,N,ONE

PHI = CMPLX(1.0)
V   = CMPLX(2.0)
ALPHA = CMPLX(1.0)
BETA = CMPLX(0.0)
W = CMPLX(0.0)

M   = 2
N   = 1
ONE = 1

CALL DZGEMV('C',M,N,ALPHA,PHI,M,V,ONE,BETA,W,ONE)
WRITE(*,*) W

CALL GEMV(PHI,V,W,ALPHA=ALPHA,BETA=BETA,TRANS='C')
WRITE(*,*) W

W = MATMUL(CONJG(TRANSPOSE(PHI)),V)
WRITE(*,*) W

END PROGRAM P&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt; (2.00000000000000,0.000000000000000E+000)
 (4.00000000000000,0.000000000000000E+000)
 (4.00000000000000,0.000000000000000E+000)
Press any key to continue . . .&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 19:57:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170274#M28505</guid>
      <dc:creator>OP1</dc:creator>
      <dc:date>2020-04-23T19:57:54Z</dc:date>
    </item>
    <item>
      <title>it looks like an issue. we</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170275#M28506</link>
      <description>&lt;P&gt;it looks like an issue. we will check the problem on our side.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 04:19:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170275#M28506</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-24T04:19:47Z</dc:date>
    </item>
    <item>
      <title>yes, I see the same output (0</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170276#M28507</link>
      <description>&lt;P&gt;yes, I see the wrong output either but not exactly what you obtained.&lt;BR /&gt;&amp;nbsp;(0.0000000E+00,0.0000000E+00)&lt;BR /&gt;&amp;nbsp;(4.000000,0.0000000E+00)&lt;BR /&gt;&amp;nbsp;(4.000000,0.0000000E+00)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 04:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170276#M28507</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-24T04:43:00Z</dc:date>
    </item>
    <item>
      <title>the verbose mode shows that</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170277#M28508</link>
      <description>&lt;P&gt;the verbose mode shows that different precisions have been called. dzgemm -- double complex, CSGEMV - single complex&lt;/P&gt;&lt;P&gt;MKL_VERBOSE Intel(R) MKL 2020.0 Update 1 Product build 20200208 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz cdecl intel_thread&lt;BR /&gt;MKL_VERBOSE &lt;STRONG&gt;DZGEMV&lt;/STRONG&gt;(C,2,1,00000075776FFE10,00007FF7679CEB00,2,00007FF7679CEB10,1,00000075776FFE18,00007FF7679CEB20,1) 66.86us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;&amp;nbsp;(0.0000000E+00,0.0000000E+00)&lt;BR /&gt;MKL_VERBOSE &lt;STRONG&gt;CGEMV&lt;/STRONG&gt;(C,2,1,00000075776FFBD8,00007FF7679CEB00,2,00007FF7679CEB10,1,00000075776FFBE0,00007FF7679CEB20,1) 9.17us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;&amp;nbsp;(4.000000,0.0000000E+00)&lt;BR /&gt;&amp;nbsp;(4.000000,0.0000000E+00)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 05:10:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170277#M28508</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-04-24T05:10:17Z</dc:date>
    </item>
    <item>
      <title>If I am not mistaken, OP is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170278#M28509</link>
      <description>&lt;P&gt;If I am not mistaken, OP is passing an incorrect type argument to DZGEMV. The fifth argument, PHI, must be of type double precision real, not default complex or complex(8).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:43:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170278#M28509</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-04-24T11:43:12Z</dc:date>
    </item>
    <item>
      <title>Thanks mecej4 - but shouldn't</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170279#M28510</link>
      <description>&lt;P&gt;Thanks mecej4 - but shouldn't an interface argument inconsistency be detected by the compiler?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 12:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170279#M28510</guid>
      <dc:creator>OP1</dc:creator>
      <dc:date>2020-04-24T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Quote:OP wrote: Thanks mecej4</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170280#M28511</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;OP wrote:&lt;BR /&gt; Thanks mecej4 - but shouldn't an interface argument inconsistency be detected by the compiler?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have enabled the compiler to see an explicit interface to GEMV, which is a generic subprogram name, through the USE BLAS95 statement. The compiler will have checked the arguments in that call.&lt;/P&gt;&lt;P&gt;For the other BLAS routine that you call, DZGEMV, only an implicit interface is available to the compiler, and that one is incorrect. The compiler can detect such errors only if you provide an explicit and correct interface, or if there is more than one call from the same program unit to the same BLAS routine and the calls are mutually inconsistent.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 14:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170280#M28511</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-04-24T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Yes, I see. I just did a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170281#M28512</link>
      <description>&lt;P&gt;Yes, I see. I just did a rookie mistake here, ha ha. Thanks for the clarification!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 15:38:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strangeness-with-DZGEMV/m-p/1170281#M28512</guid>
      <dc:creator>OP1</dc:creator>
      <dc:date>2020-04-24T15:38:33Z</dc:date>
    </item>
  </channel>
</rss>

