I'm an absolute newbie concerning the MKL. I aspire like to accelerate some of my Fortran routines using the MKL.
I'm using the ifort compiler under macOS 10.13.6 High Sierra
I have already used the Link Line Advisor. There I have found at lot of usefull information such as what compiler options I have to use and the web application emits the so called „link line˝ that I need to use. But, I just don't know how tu use it.
If I only paste the compiler options in the command line when executing ifort the compiler builds the script without complaining but the binary doesn't work and reports that it hasn't found the Library. This doesn't make me wonder because I might need the so called „Link Line˝.
dyld: Library not loaded: @rpath/libmkl_intel_ilp64.dylib Referenced from: /Users/pascal/Documenten/Fortran/./matmul.out Reason: image not found Abort trap: 6
What is this „Link Line˝ ? How shall I use it? Where do I have to paste it?
Sorry for this question and perhaps, it's ridiculous and I have to apologise for it, but I really can't find related information elsewhere.
it seems you need to start with developer guide following this link: https://software.intel.com/en-us/mkl-macos-developer-guide
please check first - https://software.intel.com/en-us/mkl-macos-developer-guide-setting-environment-variables and https://software.intel.com/en-us/mkl-macos-developer-guide-linking-quick-start
It is possible that you do not have the environment variable LD_LIBRARY_PATH set properly before running your generated binary. Type the command
and examine the output to see if it contains the directory within which the DYLIB file is located. If not, you need to set that variable. See the MKL documentation for details.
Normally, if you use the Intel Fortran or C compilers to build your MKL application, the start-up script compilervars.sh will have set LD_LIBRARY_PATH.