Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Matt_Thompson
Novice
246 Views

MKL, macOS, and GNU Fortran

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.

Thanks,

Matt

0 Kudos
5 Replies
Ying_H_Intel
Employee
246 Views

Hi Matt,

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.

Best Regards,
Ying

Zhen_Z_Intel
Employee
246 Views

Hi Matt,

There's indeed some problem with mkl_link_tool, we will investigate. Please refer to use MKL link advisor help you generating link line. Thanks.

Best regards,
Fiona

Matt_Thompson
Novice
246 Views

Fiona,

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.

Ying_H_Intel
Employee
246 Views

Hi Matt,

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?   

Best Regards,

Ying

Matt_Thompson
Novice
246 Views

Ying,

I would definitely like a feature request for supporting gfortran on macOS. I don't imagine it would be that difficult (fingers crossed).

Matt

Reply