MKL Error for DGEMVX (MKL 6.1)

MKL Error for DGEMVX (MKL 6.1)

Hi,

I got this error for my own code, so tried the example code and the error still occurs. I wonder if anyone can help me?

"MKL ERROR : Parameter 6 was incorrect on entry to DGEMV"

command line : dgemvx &lt dgemvx.d

I used the following makefile for simplicity

LIBPATH="C:Program FilesIntelFortrancompiler80IA32LIB"

test.exe: dgemvx.obj common_func.obj
link /libpath:$(LIBPATH) dgemvx.obj common_func.obj c:mkl_s.lib

dgemvx.obj: dgemvx.f
ifort /c dgemvx.f

common_func.obj: common_func.f
ifort /c common_func.f

Output was:

D G E M V EXAMPLE PROGRAM
m= 4
n= 5

INPUT DATA
M=4 N=5
ALPHA= 0.56 BETA= 1.00
TRANS=T
VECTOR X INCX=-1
1.000 2.000 3.000 4.000
VECTOR Y INCY= 1
1.000 1.000 1.000 1.000 1.000
ARRAY A LDA=4
-1.300 2.300 3.700 4.300 5.900
-1.800 2.800 3.200 4.600 5.700
1.100 2.200 3.000 4.500 5.400
1.900 2.800 3.400 4.200 5.100
MKL ERROR : Parameter 6 was incorrect on entry to DGEMV

OUTPUT DATA
VECTOR Y INCY=**

I've used the equivalent Cblas routine without any trouble from this same library.

Any thoughts would be appreciated,

Chris

(Wouldn't let me post HTML so the formatting is mildly unclear)

publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Chris,

Have you filed an issue with IntelPremier support? Parameter 6 of dgemv is of course the leading dimension of the matrix A. Trying the example program is the right thing to do and should work. I built this example on my system using the makefile provided by typing 'nmake lib32 function=dgemv+' at the command line. Perhaps you could give that a try.Off hand,I don't see anything wrong with your code or makefile.

Anyone else having this difficulty?

Todd

Aha! I had to try your makefile to see it.One should use the cdeclinterface to MKL with theIntel compilers;mkl_c.lib rather than mkl_s.lib.

-Todd

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya