Intel MKL Gurus,
A quick question: why is GNU Fortran not an accepted compiler for MKL on macOS?
(1264) $ $MKLROOT/tools/mkl_link_tool --os=mac -libs --compiler=gnu_f --parallel=no Intel(R) Math Kernel Library (Intel(R) MKL) Link Tool v4.4 ========================================================== Not supported compiler for current configuration:gnu_f. Supported values for compiler: intel_c|intel_f|gnu_c|clang|pgi_f|pgi_c Configuration ============= OS: mac Architecture: intel64 Compiler: gnu_f Linking: dynamic Interface layer: lp64 Parallel: no OpenMP library: iomp5
I'm sure there is a good reason, but as I use GNU Fortran a lot on my Macbook (hey, free compiler) and MKL is free(-ish) at least for my experimenting/fiddling so it would be a nice option to use if I could.
Thank you for raising the question here. we will check and get back to you later.
It seems because historical reason - in some early version, the MKL for Mac OS is packaged as subcomponent of Intel parallel studio composer. So mainly support Intel fortran Compiler on Mac OS.
Sadly it looks like the online MKL Advisor doesn't have the option for gfortran+macOS either (probably because it's just running the command line tool underneath somewhere, I assume). I'm currently trying to figure out a good way to automate getting link lines in a make system. ifort is the easy one, it's PGI, GNU, etc. that take some auto-entry into the tool.
Right, both MKL link tool and advisor haven't such option. We don't support gfortran on Mac OS for a while. What i can recommend may be to use Intel fortran or PGI so far. Do you like we to create a feature request to support gfortran?