Community
cancel
Showing results for 
Search instead for 
Did you mean: 
i_yura
Beginner
25 Views

Link MKL to Xcode (beginner)

Hi
I can not start using MKL in Xcode (3.2.5). (Fortran Compiler is Intel Fortran Compiler XE 12.0) What I have done is next
1) In Target, Build tab I set User Header Search Path to/Developer/opt/intel/composerxe-2011.0.085/mkl/include
2) Library Search Path set to/Developer/opt/intel/composerxe-2011.0.085/compiler/lib
3) Other Linker Flags to
-mkl
4)DYLD_LIBRARY_PATH=/Developer/opt/intel/composerxe-2011.0.085/mkl/lib
what I got is

dyld: Library not loaded: libiomp5.dylib

Referenced from: /Users/mrusp/Desktop/Phase_shift/build/Debug/Phase_shift

Reason: image not found



I have never linked library for Fortran so know nothing about it. I use simple code and want to learn how to use subroutines using vstan example.

thanks in advance for your help
program main
INTEGER*8 N

real ( kind = 8 ), allocatable, dimension ( : ) :: U

real ( kind = 8 ), allocatable, dimension ( : ) :: W

N=10

allocate (U(N))

allocate (W(N))

do i=1,N
W(i)=1
enddo

call vstan( N, W, U )

deallocate ( W )

deallocate ( U )

end

0 Kudos
2 Replies
Chao_Y_Intel
Employee
25 Views

Hi,

libiomp5 is Intel Compiler runtime library, and youalso needs to add the compiler dynamic path ( for example /Developer/opt/intel/composerxe-2011.0.085/lib) into DYLD_LIBRARY_PATH

Thanks,
Chao
i_yura
Beginner
25 Views

Hi, Chao
it works and that is awesome
Thanks
Iurii