I am new to MKL on Mac.
I am running code in Fortran as follows:
ifort -o name.x -fast -mkl program.f90
and I get the following error
ipo: warning #11012: unable to find @rpath/libiomp5.dylib
I tried looking online to find a solution but I could find anything straight forward.
The closest I got to a solution is to do the following wich is without '-fast' option
ifort -o name.x -mkl program.f90 -Wl,-rpath,${MKLROOT}/lib -Wl,-rpath,$MKLROOT/../compiler/lib/
This works but when I do the following I get the same error
ifort -o name.x -fast -mkl program.f90 -Wl,-rpath,${MKLROOT}/lib -Wl,-rpath,$MKLROOT/../compiler/lib/
ipo: warning #11012: unable to find @rpath/libiomp5.dylib
How can I add the path?