I am writing some code right now and I have a placeholder with matmul
that seems to be working pretty well, but I'd like to use a LAPACK
dgemm
implementation. I am only using gfortran
right now and getting very good speeds with matmul
, but I wonder if I can get better.
The current call is:
C = transpose(matmul( transpose(A), B))
where A
, B
, and C
are non-square, double precision
matrices. I can easily write a wrapper for dgemm
with the current gfortran
implementation of LAPACK
, but I like that I can do this all as a function (rather than worrying about call
for a surbroutine and having to deal with the transpose
).
I am wondering if I compile with ifort
and include the MKL
, will this matmul
magically change to a MKL
dgemm
function for me with no wrapper?