<?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 Hi Zhang, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916400#M12638</link>
    <description>&lt;P&gt;Hi Zhang,&lt;/P&gt;
&lt;P&gt;I know that numpy will build with Python 3.3 (I haven't tested it myself yet, but I will) on OSX, and will build with 3.3 and MKL on Windows, so theoretically it's possible. Thanks for your input!&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2013 01:28:03 GMT</pubDate>
    <dc:creator>MattDMo</dc:creator>
    <dc:date>2013-04-02T01:28:03Z</dc:date>
    <item>
      <title>Error building NumPy with MKL on OSX with Python 3.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916398#M12636</link>
      <description>&lt;P&gt;I just asked &lt;A href="http://stackoverflow.com/questions/15743638/error-building-numpy-with-mkl-on-osx-with-python-3-3"&gt;this question&lt;/A&gt; on StackOverflow, so feel free to answer either place.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Using a 2012 iMac with a 2nd-gen Core i7 processor, I'm trying to build &lt;A href="http://www.numpy.org"&gt;NumPy&lt;/A&gt; 1.7.0 (and eventually &lt;A href="http://www.scipy.org"&gt;SciPy&lt;/A&gt;) on OSX 10.8.3 linked to the &lt;A href="http://software.intel.com/en-us/intel-mkl"&gt;MKL&lt;/A&gt; included in the evaluation versions of &lt;A href="https://registrationcenter.intel.com/RegCenter/Evalform.aspx?productid=1771"&gt;C++ Composer XE 2013&lt;/A&gt; and &lt;A href="https://registrationcenter.intel.com/RegCenter/Evalform.aspx?productid=1795"&gt;Fortran Composer XE 2013&lt;/A&gt; for OSX. I am following &lt;A href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;this article&lt;/A&gt; on Intel's site (loosely adapted, as it's not very specific in some cases) for settings, compiler flags, etc.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Problem&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Using either:&lt;/P&gt;
&lt;P&gt;[bash]$ python3 setup.py config build --compiler=intelem --fcompiler=intelem[/bash]&lt;/P&gt;
&lt;P&gt;or:&lt;/P&gt;
&lt;P&gt;[bash]$ python3 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem[/bash]&lt;/P&gt;
&lt;P&gt;I get the same error:&lt;/P&gt;
&lt;P&gt;[bash]&lt;/P&gt;
&lt;P&gt;running build_clib customize IntelEM64TCCompiler customize IntelEM64TCCompiler using build_clib running build_ext customize IntelEM64TCCompiler customize IntelEM64TCCompiler using build_ext building 'numpy.core._dummy' extension compiling C sources C compiler: icc -m64 -march=corei7 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost -DMKL_ILP64 -I/opt/intel/mkl/include compile options: '-Inumpy/core/include -Ibuild/src.macosx-10.8-x86_64-3.3/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -Ibuild/src.macosx-10.8-x86_64-3.3/numpy/core/src/multiarray -Ibuild/src.macosx-10.8-x86_64-3.3/numpy/core/src/umath -c' icc: numpy/core/src/dummymodule.c icc: command line warning #10121: overriding '-marchcorei7' with '-xhost' icc -m64 -march=corei7 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost -DMKL_ILP64 -I/opt/intel/mkl/include -shared build/temp.macosx-10.8-x86_64-3.3/numpy/core/src/dummymodule.o -Lbuild/temp.macosx-10.8-x86_64-3.3 -o build/lib.macosx-10.8-x86_64-3.3/numpy/core/_dummy.so icc: command line warning #10121: overriding '-marchcorei7' with '-xhost' icc: command line warning #10006: ignoring unknown option '-shared' Undefined symbols for architecture x86_64: "_PyModule_Create2", referenced from: _PyInit__dummy in dummymodule.o "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture x86_64 icc: command line warning #10121: overriding '-marchcorei7' with '-xhost' icc: command line warning #10006: ignoring unknown option '-shared' Undefined symbols for architecture x86_64: "_PyModule_Create2", referenced from: _PyInit__dummy in dummymodule.o "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture x86_64 error: Command "icc -m64 -march=corei7 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost -DMKL_ILP64 -I/opt/intel/mkl/include -shared build/temp.macosx-10.8-x86_64-3.3/numpy/core/src/dummymodule.o -Lbuild/temp.macosx-10.8-x86_64-3.3 -o build/lib.macosx-10.8-x86_64-3.3/numpy/core/_dummy.so" failed with exit status 1 [/bash][/bash]&lt;/P&gt;
&lt;P&gt;My &lt;STRONG&gt;LD_LIBRARY_PATH&lt;/STRONG&gt; and &lt;STRONG&gt;DYLD_LIBRARY_PATH&lt;/STRONG&gt; are both:&lt;/P&gt;
&lt;P&gt;[bash]/opt/intel/lib/intel64:/opt/intel/lib:/opt/intel/mkl/lib:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib:/opt/local/lib:/usr/local/lib:/usr/lib[/bash]&lt;/P&gt;
&lt;P&gt;my &lt;STRONG&gt;DYLD_FRAMEWORK_PATH&lt;/STRONG&gt; is:&lt;/P&gt;
&lt;P&gt;[bash]/opt/local/Library/Frameworks:/Library/Frameworks:/System/Library/Frameworks[/bash]&lt;/P&gt;
&lt;P&gt;and my &lt;STRONG&gt;site.cfg&lt;/STRONG&gt; is:&lt;/P&gt;
&lt;P&gt;[bash] [DEFAULT] library_dirs=/opt/intel/lib/intel64:/opt/intel/lib:/opt/intel/mkl/lib:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib:/opt/local/lib:/usr/local/lib:/usr/lib include_dirs=/opt/intel/include:/opt/intel/include/intel64:/opt/intel/mkl/include:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m:/opt/local/include:/usr/local/include:/usr/include [mkl] library_dirs=/opt/intel/lib/intel64:/opt/intel/lib:/opt/intel/mkl/lib:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib:/opt/local/lib:/usr/local/lib:/usr/lib include_dirs=/opt/intel/include:/opt/intel/include/intel64:/opt/intel/mkl/include:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m:/opt/local/include:/usr/local/include:/usr/include mkl_libs= mkl_rt lapack_libs=mkl_lapack[/bash]&lt;/P&gt;
&lt;P&gt;Symlinks to &lt;EM&gt;&lt;STRONG&gt;icc&lt;/STRONG&gt; &lt;/EM&gt;and &lt;EM&gt;&lt;STRONG&gt;ifort&lt;/STRONG&gt;&lt;/EM&gt; are in &lt;STRONG&gt;/usr/bin&lt;/STRONG&gt; and are functional. The contents of &lt;STRONG&gt;dummymodule.c&lt;/STRONG&gt; are available in the numpy repository on &lt;A href="https://github.com/numpy/numpy/blob/master/numpy/core/src/dummymodule.c"&gt;GitHub&lt;/A&gt;. I'm not a C programmer, so I can't immediately see what's wrong. I've gotten this error using both MacPorts python 3.3.0 (using the above settings) and with the python.org 3.3.0, with settings modified to point to it instead of &lt;STRONG&gt;/opt/local&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Plea&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Can anyone help figure this out? Does the &lt;STRONG&gt;PYTHON_PATH &lt;/STRONG&gt;need to be set, and if so to what? I'm not sure where "_PyModule_Create2" is set, so am I missing a library or include path? I'm really stuck, and I &lt;STRONG&gt;really&lt;/STRONG&gt; want to get this to work!&lt;/P&gt;
&lt;P&gt;Thank you for your time!&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 15:06:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916398#M12636</guid>
      <dc:creator>MattDMo</dc:creator>
      <dc:date>2013-04-01T15:06:28Z</dc:date>
    </item>
    <item>
      <title>The procedures of building</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916399#M12637</link>
      <description>&lt;P&gt;The procedures of building NumPy/SciPy with MKL described in &lt;A href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;this article &lt;/A&gt;are only tested for Python 2.6 and 2.7. I haven't got time to try it for Python 3.x.&lt;/P&gt;
&lt;P&gt;The undefined symbol "_PyModule_Create2" surely does not come from MKL. I guess this is a problem of your Python environment settings. I'd suggest you build with Python 2.7. If you insist on using Python 3.3, then please first try to build it without using MKL. If it still doesn't work then you'd better escalate the issue to the NumPy community.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Zhang&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 22:13:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916399#M12637</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-04-01T22:13:15Z</dc:date>
    </item>
    <item>
      <title>Hi Zhang,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916400#M12638</link>
      <description>&lt;P&gt;Hi Zhang,&lt;/P&gt;
&lt;P&gt;I know that numpy will build with Python 3.3 (I haven't tested it myself yet, but I will) on OSX, and will build with 3.3 and MKL on Windows, so theoretically it's possible. Thanks for your input!&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 01:28:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-building-NumPy-with-MKL-on-OSX-with-Python-3-3/m-p/916400#M12638</guid>
      <dc:creator>MattDMo</dc:creator>
      <dc:date>2013-04-02T01:28:03Z</dc:date>
    </item>
  </channel>
</rss>

