Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Using blas95/lapack95

$
0
0

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.

program test
 use mkl95_blas
 use mkl95_precision
implicit none
 real,dimension(2) :: x,y
real res
 x = (/1,1/)
 y = (/2,2/)
 res = dot(x,y)
 print *,res
end program

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.


Viewing all articles
Browse latest Browse all 3005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>