<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ok ， thanks your advice and in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092939#M23357</link>
    <description>&lt;P&gt;Ok ， thanks your advice and your helping . &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best，yancy&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 02:14:56 GMT</pubDate>
    <dc:creator>yan_c_</dc:creator>
    <dc:date>2017-05-11T02:14:56Z</dc:date>
    <item>
      <title>Add libmkl_avx2.so to solve Intel MKL FATAL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092934#M23352</link>
      <description>&lt;P&gt;I compiler numpy with MKL, everything is ok. But I come across a peculiar question. I have three case:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;&amp;nbsp;case_1(perinfoMKL1): I add only `mkl_rt` lib in site.cfg file&lt;/LI&gt;
	&lt;LI&gt;&amp;nbsp;case_2(perinfoMKL2): I add `mkl_intel_lp64, mkl_intel_thread, mkl_core, iomp5, mkl_rt` lib in site.cfg file&lt;/LI&gt;
	&lt;LI&gt;&amp;nbsp;case_3(perinfoMKL3): I and `mkl_intel_lp64, mkl_intel_thread, mkl_core, iomp5, mkl_rt, mkl_avx2` in site.cfg file&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;BR /&gt;
	And then, I compiler it, build and install process are ok, no problems. But when I use case_2, a error is occured: Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. &amp;nbsp;I setted LD_LIBRARY_PATH, but when I add mkl_avx2 libs and compiler it again after, test ok.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Based on LD_DEBUG, I use LD_DEBUG="files libs" LD_DEBUG_OUTPUT=log ./test.py to display process for input file. I see relocation dependency words, so I guess the problem is related to this. I am not clear in underlying computer inspect, someone can explain it, thanks. I am confused of it a little.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;My understanding: Because mkl_rtaccording to relocation meaning, I guess that when group_1(mkl_intel_lp64, mkl_intel_thread, mkl_core, iomp5) and group_2(mkl_rt) exist together, executable program will find a new symbol table rather than specific one libs(such as: group_1)， and some aren't associated with the symbol table to link other symbol table. And then, finally executable program will not find a symbols, because function of libs relocataion again, so it's not find. When I add new lib to compiler again, errored symbols link new symbols successfully.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;But according to Intel Forums, someone says that it's bug. So, I am confused of it again:-( &amp;nbsp;[https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/300857]&lt;/P&gt;

&lt;P&gt;Environments:&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; hp computer, CPU——Intel Core i5 4 core，Memory——8G, OS——CentOS 7, miniconda3(Python3.6), numpy 1.13(numpy with mkl, I configure some configuration MKL-information to site.cfg file) I compiled from source code.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	Below followings are my process and attention points:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;I seted LD_LIBRARY_PATH. My setting: LD_LIBRARY_PATH="/tmp/mkl-nfs/lib" (Since I will make my environment clean and tidy)&lt;/LI&gt;
	&lt;LI&gt;Same test code: test.py &amp;nbsp;, and every test-code will be modified suitable Python interpreter path.&lt;/LI&gt;
	&lt;LI&gt;Compiler source code is ok for every case.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ cat test.py
#!/home/yancy/miniconda3/envs/perinfoMKL1/bin/python
# -*- coding: utf-8 -*-

import numpy as np
import time

start_time = time.time()
a = 10 ** 4
A = np.random.random((a, a))
B = np.random.random((a, a))
C = A.dot(B)
print("Time: ", time.time() - start_time)

&lt;/PRE&gt;

&lt;PRE class="brush:python;"&gt;(perinfoMKL1)$ tail numpy/site.cfg
#[fftw]
#libraries = fftw3
#
# For djbfft, numpy.distutils will look for either djbfft.a or libdjbfft.a . 
#[djbfft]
#include_dirs = /usr/local/djbfft/include
#library_dirs = /usr/local/djbfft/lib
[mkl]
library_dirs = /tmp/mkl-nfs/lib
mkl_libs = mkl_rt


# No error, execute successfully
(perinfoMKL1) $ ./test.py 
Time:  35.454288959503174

(perinfoMKL1)$ grep "libmkl_rt.so" log.27250 
     27250:    file=libmkl_rt.so [0];  needed by /home/yancy/miniconda3/envs/perinfoMKL1/lib/python3.6/site-packages/numpy-1.13.0.dev0+4408f74-py3.6-linux-x86_64.egg/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so [0]
     27250:    find library=libmkl_rt.so [0]; searching
     27250:      trying file=/home/yancy/miniconda3/envs/perinfoMKL1/lib/tls/x86_64/libmkl_rt.so
     27250:      trying file=/home/yancy/miniconda3/envs/perinfoMKL1/lib/tls/libmkl_rt.so
     27250:      trying file=/home/yancy/miniconda3/envs/perinfoMKL1/lib/x86_64/libmkl_rt.so
     27250:      trying file=/home/yancy/miniconda3/envs/perinfoMKL1/lib/libmkl_rt.so
     27250:      trying file=/home/yancy/miniconda3/envs/perinfoMKL1/bin/../lib/libmkl_rt.so
     27250:      trying file=/tmp/mkl-nfs/lib/libmkl_rt.so
     27250:    file=libmkl_rt.so [0];  generating link map
     27250:    calling init: /tmp/mkl-nfs/lib/libmkl_rt.so
     27250:    file=/tmp/mkl-nfs/lib/libmkl_core.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_rt.so [0]
     27250:    file=/tmp/mkl-nfs/lib/libiomp5.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_rt.so [0]
     27250:    file=/tmp/mkl-nfs/lib/libmkl_intel_thread.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_rt.so [0]
     27250:    file=/tmp/mkl-nfs/lib/libmkl_intel_lp64.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_rt.so [0]
     27250:    calling fini: /tmp/mkl-nfs/lib/libmkl_rt.so [0]
(perinfoMKL1)]$ grep "libmkl_avx2.so" log.27250 
     27250:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_core.so [0]
     27250:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  generating link map
     27250:    file=/tmp/mkl-nfs/lib/libmkl_core.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_avx2.so [0] (relocation dependency)
     27250:    calling init: /tmp/mkl-nfs/lib/libmkl_avx2.so
     27250:    opening file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0]; direct_opencount=1
     27250:    file=/tmp/mkl-nfs/lib/libmkl_intel_thread.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_avx2.so [0] (relocation dependency)
     27250:    calling fini: /tmp/mkl-nfs/lib/libmkl_avx2.so [0]&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;" style="font-size: 13.008px;"&gt;(perinfoMKL2)$ tail numpy/site.cfg
#[fftw]
#libraries = fftw3
#
# For djbfft, numpy.distutils will look for either djbfft.a or libdjbfft.a . 
#[djbfft]
#include_dirs = /usr/local/djbfft/include
#library_dirs = /usr/local/djbfft/lib
[mkl]
library_dirs = /tmp/mkl-nfs/lib
mkl_libs = mkl_intel_lp64, mkl_intel_thread, mkl_core, iomp5, mkl_rt
(perinfoMKL2)$ ./test.py 
Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.


# Error occur, LD_LIBRARY_PATH I setted.
(perinfoMKL2)$ ./test.py 
Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.
(perinfoMKL2)$ grep "libmkl_rt.so" test.log.26855 
     26855:    file=libmkl_rt.so [0];  needed by /home/yancy/miniconda3/envs/perinfoMKL2/lib/python3.6/site-packages/numpy-1.13.0.dev0+4408f74-py3.6-linux-x86_64.egg/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so [0]
     26855:    find library=libmkl_rt.so [0]; searching
     26855:      trying file=/home/yancy/miniconda3/envs/perinfoMKL2/lib/libmkl_rt.so
     26855:      trying file=/home/yancy/miniconda3/envs/perinfoMKL2/bin/../lib/libmkl_rt.so
     26855:      trying file=/tmp/mkl-nfs/lib/libmkl_rt.so
     26855:    file=libmkl_rt.so [0];  generating link map
     26855:    file=/tmp/mkl-nfs/lib/libmkl_intel_lp64.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_rt.so [0] (relocation dependency)
     26855:    file=/tmp/mkl-nfs/lib/libmkl_core.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_rt.so [0] (relocation dependency)
     26855:    calling init: /tmp/mkl-nfs/lib/libmkl_rt.so
     26855:    calling fini: /tmp/mkl-nfs/lib/libmkl_rt.so [0]
(perinfoMKL2) $ grep "libmkl_avx2.so" test.log.26855 
     26855:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_core.so [0]
     26855:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  generating link map
     26855:    /tmp/mkl-nfs/lib/libmkl_avx2.so: error: symbol lookup error: undefined symbol: mkl_dft_fft_fix_twiddle_table_32f (fatal)
     26855:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  destroying link map
     26855:    file=/home/yancy/miniconda3/envs/perinfoMKL2/bin/libmkl_avx2.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_core.so [0]
     26855:    file=libmkl_avx2.so [0];  dynamically loaded by /tmp/mkl-nfs/lib/libmkl_core.so [0]
     26855:    find library=libmkl_avx2.so [0]; searching
     26855:      trying file=/home/yancy/miniconda3/envs/perinfoMKL2/lib/libmkl_avx2.so
     26855:      trying file=/home/yancy/miniconda3/envs/perinfoMKL2/bin/../lib/libmkl_avx2.so
     26855:      trying file=/tmp/mkl-nfs/lib/libmkl_avx2.so
     26855:    file=libmkl_avx2.so [0];  generating link map
     26855:    /tmp/mkl-nfs/lib/libmkl_avx2.so: error: symbol lookup error: undefined symbol: mkl_dft_fft_fix_twiddle_table_32f (fatal)
     26855:    file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0];  destroying link map



&lt;/PRE&gt;

&lt;PRE class="brush:python;"&gt;(perinfoMKL3)$ tail numpy/site.cfg

#[fftw]
#libraries = fftw3
#
# For djbfft, numpy.distutils will look for either djbfft.a or libdjbfft.a . 
#[djbfft]
#include_dirs = /usr/local/djbfft/include
#library_dirs = /usr/local/djbfft/lib
[mkl]
library_dirs = /tmp/mkl-nfs/lib
mkl_libs = mkl_intel_lp64, mkl_intel_thread, mkl_core, iomp5, mkl_rt, mkl_avx2

# No error when I add mkl_avx2
(perinfoMKL3)$ ./test.py 
Time:  33.996660232543945

(perinfoMKL3) $ grep "libmkl_rt.so" log.27384 
     27384:    file=libmkl_rt.so [0];  needed by /home/yancy/miniconda3/envs/perinfoMKL3/lib/python3.6/site-packages/numpy-1.13.0.dev0+4408f74-py3.6-linux-x86_64.egg/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so [0]
     27384:    find library=libmkl_rt.so [0]; searching
     27384:      trying file=/home/yancy/miniconda3/envs/perinfoMKL3/lib/libmkl_rt.so
     27384:      trying file=/home/yancy/miniconda3/envs/perinfoMKL3/bin/../lib/libmkl_rt.so
     27384:      trying file=/tmp/mkl-nfs/lib/libmkl_rt.so
     27384:    file=libmkl_rt.so [0];  generating link map
     27384:    file=/tmp/mkl-nfs/lib/libmkl_intel_lp64.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_rt.so [0] (relocation dependency)
     27384:    file=/tmp/mkl-nfs/lib/libmkl_core.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_rt.so [0] (relocation dependency)
     27384:    calling init: /tmp/mkl-nfs/lib/libmkl_rt.so
     27384:    calling fini: /tmp/mkl-nfs/lib/libmkl_rt.so [0]
(perinfoMKL3)$ grep "libmkl.avx2.so" log.27384 
     27384:    file=libmkl_avx2.so [0];  needed by /home/yancy/miniconda3/envs/perinfoMKL3/lib/python3.6/site-packages/numpy-1.13.0.dev0+4408f74-py3.6-linux-x86_64.egg/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so [0]
     27384:    find library=libmkl_avx2.so [0]; searching
     27384:      trying file=/home/yancy/miniconda3/envs/perinfoMKL3/lib/libmkl_avx2.so
     27384:      trying file=/home/yancy/miniconda3/envs/perinfoMKL3/bin/../lib/libmkl_avx2.so
     27384:      trying file=/tmp/mkl-nfs/lib/libmkl_avx2.so
     27384:    file=libmkl_avx2.so [0];  generating link map
     27384:    file=/tmp/mkl-nfs/lib/libmkl_core.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_avx2.so [0] (relocation dependency)
     27384:    file=/tmp/mkl-nfs/lib/libmkl_intel_lp64.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_avx2.so [0] (relocation dependency)
     27384:    file=/tmp/mkl-nfs/lib/libmkl_intel_thread.so [0];  needed by /tmp/mkl-nfs/lib/libmkl_avx2.so [0] (relocation dependency)
     27384:    calling init: /tmp/mkl-nfs/lib/libmkl_avx2.so
     27384:    opening file=/tmp/mkl-nfs/lib/libmkl_avx2.so [0]; direct_opencount=1
     27384:    calling fini: /tmp/mkl-nfs/lib/libmkl_avx2.so [0]&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 02:51:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092934#M23352</guid>
      <dc:creator>yan_c_</dc:creator>
      <dc:date>2017-04-27T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Hi Yan Cy,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092935#M23353</link>
      <description>&lt;P&gt;Hi Yan Cy,&lt;/P&gt;

&lt;P&gt;Thank you for raising the issue here.&amp;nbsp; So let me clarify&lt;/P&gt;

&lt;P&gt;1) mkl_rt.so&amp;nbsp; , which is correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2) mkl_intel_lp64, mkl_intel_thread,&amp;nbsp; mkl_core, iomp5&amp;nbsp; mkl_rt&amp;nbsp;. the run incorrect.&amp;nbsp; but the usage is&amp;nbsp;not correct either.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please refer to MKL link advisor,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;as&amp;nbsp; "mkl_intel_lp64, mkl_intel_thread,&amp;nbsp; mkl_core, iomp5"&amp;nbsp;&amp;nbsp;&amp;nbsp;use multi-layer interfaces , it&amp;nbsp;is &amp;nbsp;same functionality of mkl_rt.&amp;nbsp; So you should use either of them, not all of them.&lt;/P&gt;

&lt;P&gt;3) mkl_intel_lp64, mkl_intel_thread,&amp;nbsp; mkl_core, iomp5&amp;nbsp; mkl_rt&amp;nbsp; mkl_avx2.&lt;/P&gt;

&lt;P&gt;which can run, but the link line is not recommended unless the error &amp;nbsp;&lt;STRONG&gt;Cannot load neither &lt;/STRONG&gt;&amp;nbsp;, please see more discussion below.&lt;/P&gt;

&lt;P&gt;I recalled, there are some discussion in forum and other places about&amp;nbsp; &lt;STRONG&gt;MKL FATAL ERROR: Cannot load neither&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/300857"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/300857&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/BVLC/caffe/issues/3884"&gt;https://github.com/BVLC/caffe/issues/3884&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/13951953/linking-intels-mkl-within-python-c-c-fortran-2003-program"&gt;http://stackoverflow.com/questions/13951953/linking-intels-mkl-within-python-c-c-fortran-2003-program&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As we understand, the issue &amp;nbsp;do related to the system and mkl libraries.&lt;/P&gt;

&lt;P&gt;Regarding the MKL libraries,&amp;nbsp; the issue may be that&amp;nbsp;&amp;nbsp;MKL has cascading&amp;nbsp;libraries structure. for example,&amp;nbsp; mkl_rt.so&amp;nbsp; will&amp;nbsp;load the&amp;nbsp;libmkl_avx2.so automatically at run time,&amp;nbsp; while mkl_rt.so is &amp;nbsp; runtime single dynamic libraries (SDL) library&amp;nbsp; and libmkl_avx2.so is processor specific libraries&lt;/P&gt;

&lt;P&gt;Please see the article : &lt;A href="https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103/"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103/" target="_blank"&gt;https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The runtime single dynamic libraries (SDL) library was introduced originally for solving the &lt;A href="https://software.intel.com/en-us/forums/showthread.php" rel="nofollow"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;declared issue&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt; related to the processor specific libraries not getting loaded when dlopen(RTLD_GLOBAL) was called. &amp;nbsp;The typical error message is&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;MKL FATAL ERROR: Cannot load neither libmkl_mc3.so nor libmkl_def.so&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The single library is added allowing&amp;nbsp;user to&amp;nbsp;link to a single interface library which loads dependent libraries dynamically at runtime depending on runtime CPU detection and/or library function calls.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;it seems in python and Center OS , the load&amp;nbsp; processing was blocked anyway. &lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thus, it&amp;nbsp;is also&amp;nbsp;related to the system.&amp;nbsp;&amp;nbsp;&amp;nbsp;We usually run on Redhat Linux in local machine,&amp;nbsp;&amp;nbsp;although get such issue report, but we&amp;nbsp; can't&amp;nbsp;reproduce the issue&amp;nbsp;(for example,&amp;nbsp; we create &lt;A href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt;&amp;nbsp; without the issue)&lt;/P&gt;

&lt;P&gt;One probable&amp;nbsp;reason&amp;nbsp;was&amp;nbsp;discussed in &amp;nbsp;the article &lt;A href="https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu" target="_blank"&gt;https://software.intel.com/en-us/articles/symbol-lookup-error-when-linking-intel-mkl-with-gcc-on-ubuntu&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So far the solution&amp;nbsp;we can see are&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1) as you did, add&amp;nbsp; libmkl_avx2.so&amp;nbsp; explicitly.&amp;nbsp; but it may be same&amp;nbsp;issue when the run machine don't support the avx2 instructions.&lt;/P&gt;

&lt;P&gt;2) there is some problem in FINDLAPACK.cmake processing(&amp;nbsp;OpenCVFindMKL.cmake).&amp;nbsp; the&amp;nbsp;fix is&amp;nbsp; CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=-Wl,--no-as-needed&lt;/P&gt;

&lt;P&gt;3)&amp;nbsp; Set environment variable &amp;gt;export &amp;nbsp;LD_PRELOAD=/path/to/libmkl_avx2.so etc.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 05:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092935#M23353</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-05-02T05:34:00Z</dc:date>
    </item>
    <item>
      <title>@Ying,  I'm very sorry for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092936#M23354</link>
      <description>&lt;P&gt;@Ying, &amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;I'm very sorry for replying later. :-( &amp;nbsp;And thanks your best answer and your helping for me.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Ok, I have payed attention to MKL cascading libraries and structure, and even system issue, and some good solve &amp;nbsp;ways.&lt;/P&gt;

&lt;P&gt;In the meantime, I do another research, and maybe find a little suggestions during this period of time.&lt;A href="https://gehrcke.de/2014/02/numpy-built-with-recent-intel-compilers-mkl-fatal-error/"&gt;https://gehrcke.de/2014/02/numpy-built-with-recent-intel-compilers-mkl-fatal-error/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;Although this article is out of date, I think that this article should serve as reference to help others like me.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Best, thanks again!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 01:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092936#M23354</guid>
      <dc:creator>yan_c_</dc:creator>
      <dc:date>2017-05-06T01:26:00Z</dc:date>
    </item>
    <item>
      <title>Hi, Ying</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092937#M23355</link>
      <description>&lt;P&gt;Hi, Ying&lt;/P&gt;

&lt;P&gt;I have another question, mkl_rt(SDL) automatically load three(interface, threading, and computational libraries) or four library(interface, threading, and computational libraries and even RTL).&lt;/P&gt;

&lt;P&gt;I have posted early stage，concrete information: &lt;A href="https://software.intel.com/en-us/forums/intel-system-studio/topic/733090"&gt;https://software.intel.com/en-us/forums/intel-system-studio/topic/733090&lt;/A&gt;&amp;nbsp;I have known this post weren't placed rightly, sorry.&lt;/P&gt;

&lt;P&gt;Best, looking forward to your reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 03:05:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092937#M23355</guid>
      <dc:creator>yan_c_</dc:creator>
      <dc:date>2017-05-07T03:05:23Z</dc:date>
    </item>
    <item>
      <title>Hi Yan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092938#M23356</link>
      <description>&lt;P&gt;Hi Yan,&lt;/P&gt;

&lt;P&gt;Yes, mkl_rt(SDL) automatically load three(interface mkl_intel_lp64, threading mkl_intel_thread, and computational libraries mkl_core.&amp;nbsp; and&amp;nbsp; mkl_core will load mkl_avx (processor-optimized )&amp;nbsp; library.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Calibri&amp;quot;,sans-serif; font-size: 10.5pt; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;One thing you may note,&amp;nbsp; we build and maintain the Intel Distribution for Python&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/intel-distribution-for-python"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://software.intel.com/en-us/intel-distribution-for-python" target="_blank"&gt;https://software.intel.com/en-us/intel-distribution-for-python&lt;/A&gt;&lt;SPAN style="color: black; font-family: &amp;quot;Calibri&amp;quot;,sans-serif; font-size: 10.5pt; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;, which includes an MKL-accelerated numpy. you don't need to build numpy with MKL.&amp;nbsp; You can get them by Aconda&amp;nbsp; and Yum/apt-get etc. &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-distribution-for-python-with-anaconda"&gt;https://software.intel.com/en-us/articles/using-intel-distribution-for-python-with-anaconda&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo"&gt;https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-yum-repo"&gt;https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-yum-repo&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:23:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092938#M23356</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-05-10T05:23:33Z</dc:date>
    </item>
    <item>
      <title>Ok ， thanks your advice and</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092939#M23357</link>
      <description>&lt;P&gt;Ok ， thanks your advice and your helping . &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best，yancy&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 02:14:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092939#M23357</guid>
      <dc:creator>yan_c_</dc:creator>
      <dc:date>2017-05-11T02:14:56Z</dc:date>
    </item>
    <item>
      <title>I added mkl_def to site.cfg</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092940#M23358</link>
      <description>&lt;P&gt;I added mkl_def to site.cfg to solve the mentioned error. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 18:07:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Add-libmkl-avx2-so-to-solve-Intel-MKL-FATAL-ERROR/m-p/1092940#M23358</guid>
      <dc:creator>Bicici__Ergun</dc:creator>
      <dc:date>2020-04-05T18:07:28Z</dc:date>
    </item>
  </channel>
</rss>

