Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL with gnu 4.2/4.3 compilers

TimP
Honored Contributor III
255 Views
I just completed some testing with gcc and gfortran, including gnu openmp, on linux x86-64. Apparently, it's inadvisable to activate gnu OpenMP when calling MKL OpenMP functions, due to incompatibilities between the OpenMP versions, although it "works" fairly often.
gfortran 4.3 implements an option -fexternal-blas, which implements MATMUL directly as a call to ?gemm. Performance calling MKL by this option may be better than the MATMUL incorporated in either gfortran or ifort libraries, but not as good as implementing the BLAS call directly.
I have also tested gfortran successfully on MPI applications, using the Intel MPI and MKL libraries.
0 Kudos
2 Replies
Intel_C_Intel
Employee
255 Views

This sounds like a status report as much as anything.

You don't state anything about the impact on performance when using threaded gnu SW and MKL. In general, at the current time, this is an inadvisable thing to do, as noted in the user notes with MKL. In time, MKL will have a solution for this (successful threading in both the user program and MKL using, and using a non-Intel compiler for the user program).

0 Kudos
TimP
Honored Contributor III
255 Views
Performance of MKL DGEMM was reduced when gfortran -fopenmp was used, even though DGEMM is called from a serial region.
0 Kudos
Reply