- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
I am having problems linking the MKL libraries to my project.
Here is a sample code for matrix inversion
program sample
use mkl95_lapack,only : getrf,getri
implicit none
integer, parameter :: N = 4
integer :: i,j
real(8), dimension(N,N) :: A = (/ 5,7,6,5,7,10,8,7,6,8,10,9,5,7,9,10/)
integer, dimension(N) :: piv
integer :: info
call getrf( a, piv, info )
call getri( a, piv, info )
write(*,10)((a(i,j),j=1,N),i=1,N)
stop
10 format(1x,4F12.6)
end program sample
I tried to link the MKL by following:
I am having problems linking the MKL libraries to my project.
Here is a sample code for matrix inversion
program sample
use mkl95_lapack,only : getrf,getri
implicit none
integer, parameter :: N = 4
integer :: i,j
real(8), dimension(N,N) :: A = (/ 5,7,6,5,7,10,8,7,6,8,10,9,5,7,9,10/)
integer, dimension(N) :: piv
integer :: info
call getrf( a, piv, info )
call getri( a, piv, info )
write(*,10)((a(i,j),j=1,N),i=1,N)
stop
10 format(1x,4F12.6)
end program sample
I tried to link the MKL by following:
Go to Project > Properties > Libraries > Use Intel Math Kernel Library and select Parallel, Sequential, or Cluster as appropriate
but it did not work (unresolved reference external symbols _DGETRF_MKL95 and _DGETRF_MKL95 was obtained as response from the compiler).
what is wrong? Is the code correct?
In general I do not really understand what to "use" or to "include" for correctly linking MKL subroutines (I am quite a beginner user). Could you please hel me with this.
Thank you,
Antonio
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your program compiled without errors, so there are probably no errors in your INCLUDE and USE statements.
Add mkl_lapack95.lib (and, if needed, mkl_blas95.lib) to the list of additional libraries to search.
Add mkl_lapack95.lib (and, if needed, mkl_blas95.lib) to the list of additional libraries to search.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page