<?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 test7.py has lots of in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091373#M380</link>
    <description>&lt;P&gt;test7.py has lots of dependencies on my own wrapped c++ code&lt;/P&gt;

&lt;P&gt;I think if you can build an intel version of cvxopt maybe that will fix it&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 11:22:52 GMT</pubDate>
    <dc:creator>Becker__Neal</dc:creator>
    <dc:date>2016-06-10T11:22:52Z</dc:date>
    <item>
      <title>Cannot load libmkl_avx.so or libmkl_def.so.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091367#M374</link>
      <description>&lt;P&gt;Any clues how I can debug this?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;python test7.py&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.&lt;/P&gt;

&lt;P&gt;I do have these libraries. &amp;nbsp;I also tried setting LD_LIBRARY_PATH to where these libraries reside, in&lt;/P&gt;

&lt;P&gt;../ext/lib&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:54:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091367#M374</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-06-09T17:54:28Z</dc:date>
    </item>
    <item>
      <title>LD_DEBUG="files libs" LD</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091368#M375</link>
      <description>&lt;P&gt;LD_DEBUG="files libs" LD_DEBUG_OUTPUT=ld.log&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;python test7.py&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;And then looking in ld.log.* might give a hint since it will show libraries being loaded and search paths. Let me know if that doesn't help and I can ask MKL team. MKL might be using dlopen to load this library.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 18:23:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091368#M375</guid>
      <dc:creator>Robert_C_Intel</dc:creator>
      <dc:date>2016-06-09T18:23:58Z</dc:date>
    </item>
    <item>
      <title>I think the problems are</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091369#M376</link>
      <description>I think the problems are caused by cvxopt.  I have cvxopt from conda install (not intel, which lacks it).

I had tried to pip install cvxopt, but the build failed, couldn't find lapack and blas.  Strange, because mkl supplies lapack and blas, and because I tried installing openblas, which should also supply them.</description>
      <pubDate>Fri, 10 Jun 2016 11:00:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091369#M376</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-06-10T11:00:41Z</dc:date>
    </item>
    <item>
      <title>9993:	file=/home/nbecker</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091370#M377</link>
      <description>9993:	file=/home/nbecker/anaconda/envs/idp/bin/libmkl_avx.so [0];  dynamically loaded by /home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../../libmkl_core.so [0]
      9993:	
      9993:	file=libmkl_avx.so [0];  dynamically loaded by /home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../../libmkl_core.so [0]
      9993:	find library=libmkl_avx.so [0]; searching
      9993:	 search path=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././tls/x86_64:/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././tls:/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././x86_64:/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../../.		(RPATH from file /home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../../libmkl_core.so)
      9993:	  trying file=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././tls/x86_64/libmkl_avx.so
      9993:	  trying file=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././tls/libmkl_avx.so
      9993:	  trying file=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././x86_64/libmkl_avx.so
      9993:	  trying file=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././libmkl_avx.so
      9993:	
      9993:	file=libmkl_avx.so [0];  generating link map
      9993:	  dynamic: 0x00007f10c99b81c0  base: 0x00007f10c769e000   size: 0x0000000002365aa0
      9993:	    entry: 0x00007f10c7767400  phdr: 0x00007f10c99b8000  phnum:                  8
      9993:	
      9993:	/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././libmkl_avx.so: error: symbol lookup error: undefined symbol: mkl_sparse_optimize_bsr_trsm_i8 (fatal)
      9993:	
      9993:	file=/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../.././libmkl_avx.so [0];  destroying link map
      9993:	/home/nbecker/anaconda/envs/idp/lib/python3.5/site-packages/cvxopt/../../../libmkl_core.so: error: symbol lookup error: undefined symbol: COIProcessLoadSinkLibraryFromFile (fatal)
      9993:</description>
      <pubDate>Fri, 10 Jun 2016 11:00:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091370#M377</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-06-10T11:00:58Z</dc:date>
    </item>
    <item>
      <title>pip install -v cvxopt</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091371#M378</link>
      <description>pip install -v cvxopt
[...]

/home/nbecker/anaconda/envs/idp/ext/lib -L/home/nbecker/anaconda/envs/idp/ext/lib -z noexecstack -z relro -z now -fstack-protector build/temp.linux-x86_64-3.5/src/C/base.o build/temp.linux-x86_64-3.5/src/C/dense.o build/temp.linux-x86_64-3.5/src/C/sparse.o -L/usr/lib -L/home/nbecker/anaconda/envs/idp/lib -lm -llapack -lblas -lpython3.5m -o build/lib.linux-x86_64-3.5/cvxopt/base.cpython-35m-x86_64-linux-gnu.so
    /usr/bin/ld: cannot find -llapack
    /usr/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1</description>
      <pubDate>Fri, 10 Jun 2016 11:03:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091371#M378</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-06-10T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Can you send me test7.py so I</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091372#M379</link>
      <description>&lt;P&gt;Can you send me test7.py so I can try to reproduce the original problem:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;python test7.py&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 11:20:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091372#M379</guid>
      <dc:creator>Robert_C_Intel</dc:creator>
      <dc:date>2016-06-10T11:20:02Z</dc:date>
    </item>
    <item>
      <title>test7.py has lots of</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091373#M380</link>
      <description>&lt;P&gt;test7.py has lots of dependencies on my own wrapped c++ code&lt;/P&gt;

&lt;P&gt;I think if you can build an intel version of cvxopt maybe that will fix it&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 11:22:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091373#M380</guid>
      <dc:creator>Becker__Neal</dc:creator>
      <dc:date>2016-06-10T11:22:52Z</dc:date>
    </item>
    <item>
      <title>You are probably right. The</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091374#M381</link>
      <description>&lt;P&gt;You are probably right. The conda cvxopt depends on mkl and there is probably a conflict. I will try to make a simpler reproducer.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 11:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091374#M381</guid>
      <dc:creator>Robert_C_Intel</dc:creator>
      <dc:date>2016-06-10T11:47:11Z</dc:date>
    </item>
    <item>
      <title>I think the problems are</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091375#M382</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;EM&gt;&lt;STRONG&gt;I think the problems are caused by cvxopt. I have cvxopt from conda install (not intel, which lacks it).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;EM&gt;&lt;STRONG&gt;I had tried to pip install cvxopt, but the build failed, couldn't find lapack and blas. Strange, because mkl supplies lapack and blas, and because I tried installing openblas, which should also supply them.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 20:12:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091375#M382</guid>
      <dc:creator>Islam_A_</dc:creator>
      <dc:date>2016-08-10T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Hi guys, we are running into</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091376#M383</link>
      <description>&lt;P&gt;Hi guys, we are running into the exact undefined symbols.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;My use case is caffe build with mkl and python bindings. we're using 2018.0.128 .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Caffe command line works fine but the issue came when we import caffe in python.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;"pip install cvxopt" doesn't work.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;similar thread on this issue:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;A href="https://github.com/BVLC/caffe/issues/3884" target="_blank"&gt;https://github.com/BVLC/caffe/issues/3884&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Pls share if we have a solution.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 21:06:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091376#M383</guid>
      <dc:creator>VuiSeng_C_Intel</dc:creator>
      <dc:date>2017-09-29T21:06:18Z</dc:date>
    </item>
    <item>
      <title>Hi Vui Seng,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091377#M384</link>
      <description>&lt;P&gt;Hi Vui Seng,&lt;/P&gt;

&lt;P&gt;Thanks for reporting. Are you attempting to build your own Intel Caffe with Intel Python, or are you seeing this issue when using the Caffe that comes bundled with Intel Python?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091377#M384</guid>
      <dc:creator>Christophe_H_Intel2</dc:creator>
      <dc:date>2017-10-02T14:40:00Z</dc:date>
    </item>
    <item>
      <title>I am struggling with the same</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091378#M385</link>
      <description>&lt;P&gt;I am struggling with the same issues with python calling C code that calls MKL.Was this resolved?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 23:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091378#M385</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2017-10-31T23:43:00Z</dc:date>
    </item>
    <item>
      <title>My understanding is that</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091379#M386</link>
      <description>&lt;P&gt;My understanding is that Python sets a default for the loading of dynamic modules that results in this error.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 01:57:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091379#M386</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2017-11-01T01:57:21Z</dc:date>
    </item>
    <item>
      <title>Solved the issue. Needed to</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091380#M387</link>
      <description>&lt;P&gt;Solved the issue. Needed to make sure that the Makefile that builds the Python module has -lmkl_rt and -lmkl_def on the link line.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 03:02:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091380#M387</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2017-11-01T03:02:02Z</dc:date>
    </item>
    <item>
      <title>If you require cvxopt to</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091381#M388</link>
      <description>&lt;P&gt;If you require cvxopt to utilize blas and lapack routines from Intel MKL (i.e. shipped with IDP), you can build cvxopt from its sources. The instructions are as follows:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;lt;IDP_installation&amp;gt;/bin/conda create -n cvxopt_install python=3.6 setuptools mkl
. &amp;lt;IDP_installation&amp;gt;/bin/activate cvxopt_install

#Fetch sources for cvxopt
git clone &lt;A href="https://github.com/cvxopt/cvxopt.git" target="_blank"&gt;https://github.com/cvxopt/cvxopt.git&lt;/A&gt;
cd cvxopt
git checkout `git describe --abbrev=0 --tags`

#Fetch SuiteSparse (a runtime requirement)
wget &lt;A href="http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.4.tar.gz" target="_blank"&gt;http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.4.tar.gz&lt;/A&gt;
tar -xf SuiteSparse-4.5.4.tar.gz

#Export variables required for building cvxopt with MKL
export PREFIX_LIB=`which python`/../lib
export CVXOPT_LAPACK_LIB=mkl_rt
export CVXOPT_BLAS_LIB=mkl_rt
export CVXOPT_SUITESPARSE_SRC_DIR=`pwd`/SuiteSparse
export CVXOPT_BLAS_LIB_DIR=${PREFIX_LIB}
export CVXOPT_BLAS_EXTRA_LINK_ARGS="-L${PREFIX_LIB};-Wl,-rpath,${PREFIX_LIB};-lmkl_rt"

python setup.py install

#post-build clean-up:
for i in `env | grep -E "CVXOPT|PREFIX_LIB" | cut -d '=' -f 1`; do unset $i; done
#cd ..; rm -rf cvxopt&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Rohit&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:02:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Cannot-load-libmkl-avx-so-or-libmkl-def-so/m-p/1091381#M388</guid>
      <dc:creator>Rohit_J_Intel</dc:creator>
      <dc:date>2017-11-17T14:02:04Z</dc:date>
    </item>
  </channel>
</rss>

