I am sorry for posting a lame question but I am just starting to use Fortran. I translated some of my programs from MATLAB and I want to see what the improvement in speed will be. So far using ifort -O3 I can get them to run about 5 times faster and now I want to use BLAS to see if there will be further improvement.
Unfortunately, I haven't yet figured out how to link with BLAS95 correctly. I have built the BLAS95 routines with ifort and have the mkl95_blas.mod and mkl95_precision.mod in the standard dir ../lib/emt64t.
Suppose I want to run the simpliest program using just gemm:
real(8), dimension(2,2) ::a,b,c
!/ matrices defined here
end program myprog
Could you please tell me which options (-L, -I paths, libraries) should I invoke with ifort to get it working (I only want BLAS95 for a start). Because I am lost as I always get the error:
/tmp/ifortbs5xfm.o: In function `MAIN__':
myprog.f90:(.text+0x204): undefined reference to `dgemm_mkl95_'
Hope somebody will help me get started