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

matmul_mkl

Deleted_U_Intel
Employee
879 Views
Hi all,
after our admins recently upgraded the Intel Compiler/MKL, I started getting errors during linking:
isoepsilon_matrix_RPA.f90:(.text+0x29d1): undefined reference to `matmul_mkl_'
I compile the source files with
ifort -openmp -parallel -heap-arrays -O3 -lmkl -c
and link using
ifort -openmp -parallel -heap-arrays *.o
-Wl,--start-group /sw/linux/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_intel_lp64.a /sw/linux/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_intel_thread.a /sw/linux/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_core.a -Wl,--end-group -openmp -lpthread
Linking is only successful, if I use -no-opt-matmul during the source file compilation.
Any ideas what is causing this?
Bjoern
0 Kudos
2 Replies
Vladimir_Petrov__Int
New Contributor III
879 Views
Hi Bjoern,

Please add libmatmul.a from the compiler distribution to your link line.

Best regards,
Vladimir
0 Kudos
bacchiocchi__corrado
879 Views

Hi everybody,

I have a similar problem when trying to compile using the Fortran Compiler of Intel® Parallel Studio XE 2018.

I use the following flags for compilation: -fast -parallel -qopenmp -qopt-matmul -axCOMMON-AVX512 -ftz -ip -pad -unroll-aggressive

and these for linking: -parallel -qopenmp -lmatmul -qopt-report=5

At the linking stage I keep getting this kind of message:

ipo_out.f:(.text+0x255af): undefined reference to `matmul_mkl_f64_'

Any suggestion?

Thanks a lot in advance

Corrado

 

0 Kudos
Reply