Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
11 Views

MKL error DGEMM

Hello,
I am a beginner and I have no idea about Fortran programming. I am using a code written in Fortran and using UNIX system Fortran 77 compiler for compiling.
I am just feeding the data files to this program and it does the job. I am getting MKL Error: Parameter 5 was incorrect on entry to DGEMM.
Its very radom if i use the same input files after some times it runs propely. Please help.
I know adding code here would make it easier but since the code works properly I doubt if anything wrong in there also since its not my code I can not put it here without permission.
Thanks
0 Kudos
1 Reply
Highlighted
Employee
11 Views

Hello,

5th paramater for DGEMM is the K value. You may be entering a negative K value to the DGEMM.

If you could print the input paramaters to DGEMM, it'd be easier to find out what's going wrong.

Here is the stub for dgemm (see that 5th paramater is k):

call dgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)

Efe
0 Kudos