- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bjoern,
Please add libmatmul.a from the compiler distribution to your link line.
Best regards,
Vladimir
Please add libmatmul.a from the compiler distribution to your link line.
Best regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page