I'm new to using ifort for Mac, and am attempting to use the Fortran95 interfaces to blas but I can't get it to work.
I'm trying to use dot(x,y) but when I compile I get an error.
real,dimension(2) :: x,y
x = (/1,1/)
y = (/2,2/)
res = dot(x,y)
When I compile I do:
ifort test.f90 -o test -mkl
and get the error:
Undefined symbols for architecture x86_64:
"_sdot_mkl95_", referenced from:
_MAIN__ in ifortSsxXlV.o
ld: symbol(s) not found for architecture x86_64
I think I'm missing someting in the compile options, but I don't know what.
If compiler reports unresolved symbols/references: _*_mkl95, then you may add these libraries: mkl_blas95.lib mkl_blas95_lp64.lib mkl_lapack95.lib manually. see the KB article as an example from here: http://software.intel.com/en-us/articles/using-mkl-in-intel-compiler-mkl-qmkl-options or there are many linking examples into User's Guide.