After update to MKL 10.2, code chrashes with undefined symbol: mkl_serv_mkl_malloc

Ying H (Intel)
Total Points:
5,217
Status Points:
4,717
Brown Belt
June 30, 2009 3:28 AM PDT
Rate
 
#2

Hi Jasperjones, 

Your assumption is right. The libmkl_VML_* library include both VML and VSL function (no libmkl_VSL * library) . So when you call VSL function, the library was needed.  

We introduced the symbol: mkl_serv_mkl_malloc in recent libmkl_VML library in MKL 10.2 version, that may why the error arise when you upgade to 10.2. But the symbol were defined in libmkl_core library

$ nm libmkl_core.so | grep mkl_serv_mkl_malloc
0000000000026e76 T mkl_serv_mkl_malloc

And in general, we always use the mkl libraries together. 
for example, 
$  ifort vslTest_main.F90 vslTest.F90 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 

Thus, the symbol would be resolved automatically. 
So could you please check where your application or the matlab link the MKL library and in which way?  The key is to link to mkl_core library at the same time. 

Best Regards,
Ying  



Intel Software Network Forums Statistics

8488 users have contributed to 31627 threads and 100752 posts to date.
In the past 24 hours, we have 33 new thread(s) 138 new posts(s), and 198 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member chat1983