Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

MKL BLAS 2

brunocalado
初學者
502 檢視
I'm trying to call:

[cpp]call gemv(a, x, y [,alpha][,beta] [,trans])[/cpp]

From the Fortran 95 interface but I always get a message of:

Description Resource Path Location Type
error #6285: There is no matching specific subroutine for this generic subroutine call. [GEMV] main.f90 FORGATRAN/src line 12 C/C++ Problem



My full code is:

[cpp]PROGRAM main
    use mkl95_blas

    IMPLICIT NONE
    INTEGER :: A(3, 3), B(3, 1)
    integer :: xA, yA, xB, yB
    xA = 3
    yA = 3
    xB = 3
    yB = 1

    call gemv(A, B)

END PROGRAM[/cpp]

It compile when I comment ''call gemv(A, B)"

I'm using
Ubuntu + Eclipse + Photran
0 積分
2 回應
TimP
榮譽貢獻者 III
502 檢視
This question may get more attention on the MKL Fortran. However, the documentation for optional arguments is not to be taken literally. If you use all 6 possible arguments, simply list them in ordinary style without square brackets. If you use less than 6, but skip one or more, you must specify the keywords for any after a skip, no square brackets, e.g. gemv(A,B,Y,TRANS=yourtrans) (but I didn't test this). It all follows f90 rules, no different special magic.
Steven_L_Intel1
502 檢視
Tim, I think the square brackets are from the documentation.

The documentation would appear to require that you pass at least three arguments, but you've passsed only two.
回覆