Hello,
I'm trying to link MKL with the clang compiler (on Linux), and I'm using the following link-line:
clang-5.0 -std=c++17 -O3 -Wall -Wextra -Wno-missing-braces -Wunreachable-code -stdlib=libstdc++ -fopenmp -msse2 -msse3 -msse4 -D EIGEN_USE_MKL_VML -m64 -O3 -DNDEBUG -lstdc++ -fopenmp -lpthread -Wl,--start-group /path/to/mkl/libmkl_intel_ilp64.a /path/to/mkl/libmkl_gnu_thread.a /path/to/mkl/libmkl_core.a -Wl,--end-group -lgomp -lpthread -ldl [objects] -o [executable] -lm
I get the following errors:
... undefined reference to `MKL_malloc' ... undefined reference to `MKL_free' ... undefined reference to `feastinit' ... undefined reference to `dfeast_sygv'
I followed the instructions from the link advsior for the GCC compiler. This seems as if the library I provided for mkl_core is either somehow not being linked correctly or does not contain the references to "MKL_malloc" (my code has "mkl_malloc" instead, so I'm not sure why it's trying to find this different spelling).
What am I missing? Thanks!
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #fdfffe; background-color: #000000; background-color: rgba(0, 0, 0, 0.75)}
span.s1 {font-variant-ligatures: no-common-ligatures}