I did the changes suggested by @bear in the site files(hint: edit site files and install using --skipinteg) and it found the mkl library which previously didn't (FOUND: libraries = ['mkl_rt', 'pthread']). The thing is that if you dont make those changes it doesn't found the mkl library and still builds, so it's easy to believe that everything is working but your numpy is using another blas library.
Search Criteria
Package Details: python-numpy-mkl 2.2.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-numpy-mkl.git (read-only, click to copy) |
---|---|
Package Base: | python-numpy-mkl |
Description: | Scientific tools for Python, compiled with Intel MKL |
Upstream URL: | https://numpy.org |
Keywords: | numpy |
Licenses: | BSD-3-Clause |
Conflicts: | python-numpy |
Provides: | python-numpy |
Submitter: | bred |
Maintainer: | petronny (AutoUpdateBot, carlosal1015) |
Last Packager: | AutoUpdateBot |
Votes: | 38 |
Popularity: | 0.000000 |
First Submitted: | 2012-08-25 16:55 (UTC) |
Last Updated: | 2024-12-22 08:04 (UTC) |
Dependencies (12)
- intel-oneapi-mkl (intel-oneapi-hpckitAUR, intel-oneapi-basekit-2025AUR, intel-oneapi-basekit)
- python (python37AUR, python311AUR, python310AUR)
- cython (cython-gitAUR, cython0AUR) (make)
- gcc-fortran (gcc-fortran-gitAUR, gcc11-fortranAUR, gcc-fortran-snapshotAUR) (make)
- meson-python (make)
- procps-ng (procps-ng-gitAUR, busybox-coreutilsAUR) (make)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools (make)
- python-hypothesis (check)
- python-pytest (check)
- python-threadpoolctl (optional) – for show_runtime() support
Required by (1915)
- akhelper-git (requires python-numpy)
- alsa-control (requires python-numpy)
- amdfan (requires python-numpy)
- amdgpu-fan (requires python-numpy)
- amulet-map-editor (requires python-numpy)
- amulet-map-editor-git (requires python-numpy)
- apicula-git (requires python-numpy)
- apitrace-git (requires python-numpy)
- apriltag (requires python-numpy) (make)
- apsynsim (requires python-numpy) (make)
- archlinux-tweak-tool-git (requires python-numpy)
- ardupilot-copter-sitl (requires python-numpy)
- art-rawconverter-imageio (requires python-numpy)
- asammdf-git (requires python-numpy)
- astrometry.net (requires python-numpy)
- asus-numberpad-driver-b7402-git (requires python-numpy)
- asus-numberpad-driver-e210ma-git (requires python-numpy)
- asus-numberpad-driver-g513-git (requires python-numpy)
- asus-numberpad-driver-g533-git (requires python-numpy)
- asus-numberpad-driver-gx551-git (requires python-numpy)
- Show 1895 more...
Sources (1)
matrs commented on 2016-03-05 05:37 (UTC) (edited on 2016-03-05 16:00 (UTC) by matrs)
<deleted-account> commented on 2016-02-26 04:51 (UTC)
@bear
Thanks ! It works.
BTW, when compile, -openmp may be deprecated, it suggests using -qopenmp
bear commented on 2016-02-25 18:07 (UTC)
The site.cfg is not correct, after changed to the following, can import correctly after installed.
[mkl]
library_dirs = /opt/intel/mkl/lib/intel64
include_dirs = /opt/intel/mkl/include
mkl_libs = mkl_rt
lapack_libs =
<deleted-account> commented on 2016-02-25 14:44 (UTC)
and can this package be compiled using -iopm5 instead of -openmp ?
<deleted-account> commented on 2016-02-25 14:32 (UTC)
@trovao
Thanks ! I install the patchelfmod in aur (this package needs update, for example the pkgname is patchelfmod however the source dir is patchelf), and numpy.test() works fine.
and i think a patch in linking to libirc.so is needed :)
anyway, thanks for your solution !
<deleted-account> commented on 2016-02-25 14:18 (UTC)
@trovao
I can only find patchelf in my archlinux, where could I get patchelfmod ?
BTW: I also tried to add -lirc in LDFLAGS, is it correct to do so?
trovao commented on 2016-02-25 11:51 (UTC)
@liubenyuan, @benob
I've solved this with patchelfmod by adding a dependency explicitly on the shared object files:
$ sudo patchelfmod -a libirc.so /usr/lib/python2.7/site-packages/numpy/linalg/_umath_linalg.so
sudo patchelfmod -a libirc.so /usr/lib/python3.5/site-packages/numpy/linalg/_umath_linalg.cpython-35m-x86_64-linux-gnu.so
I've tried tweaking the intelccompiler.py to include -lirc, but it seems my flags weren't enough.
<deleted-account> commented on 2016-02-25 02:20 (UTC)
@benob
same problem here. using intel-mkl 2016.1.30
<deleted-account> commented on 2015-07-14 09:51 (UTC)
Installs fine with intel parallel studio xe 2015, but when I import numpy I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
from . import add_newdocs
File "/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
from .polynomial import *
File "/usr/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
from numpy.linalg import eigvals, lstsq, inv
File "/usr/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
from .linalg import *
File "/usr/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /usr/lib/python2.7/site-packages/numpy/linalg/_umath_linalg.so: undefined symbol: _intel_fast_memset
Preloading the libirc.so library fixes the problem, but I would like a better solution.
LD_PRELOAD=/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64/libirc.so python2
Pinned Comments
carlosal1015 commented on 2024-12-23 00:56 (UTC) (edited on 2024-12-23 02:07 (UTC) by carlosal1015)
Important note: After installation, append this line
in
~/.bashrc
,~/.zshrc
, etc. In order to avoid thisImportError
.petronny commented on 2022-09-28 08:28 (UTC)
Prebuilt binaries of this package can be found in arch4edu.