Package Details: python-numpy-mkl 2.2.1-1

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)

Required by (1914)

Sources (1)

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

export LD_LIBRARY_PATH=/opt/intel/oneapi/mkl/2024.1/lib:$LD_LIBRARY_PATH

in ~/.bashrc, ~/.zshrc, etc. In order to avoid this ImportError.

petronny commented on 2022-09-28 08:28 (UTC)

Prebuilt binaries of this package can be found in arch4edu.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 9 Next › Last »

kbipinkumar commented on 2023-08-20 18:05 (UTC) (edited on 2023-08-20 18:08 (UTC) by kbipinkumar)

while building package in clean chroot with this PKGBUILD i am getting following output in build log. it seems mkl libraries despite being installed is not detected. complete log can be seen here

Cythonizing sources
INFO: blas_opt_info:
INFO: blas_armpl_info:
INFO: customize UnixCCompiler
INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: blas_mkl_info:
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:934: UserWarning: Specified path /opt/intel/oneapi/mkl/2023.1.0/lib/32 is invalid.
  return self.get_paths(self.section, key)
INFO:   libraries mkl_rt not found in ['/opt/intel/oneapi/mkl/2023.1.0', '/opt/intel/oneapi/mkl/2023.1.0/include', '/opt/intel/oneapi/mkl/2023.1.0/lib']
INFO:   NOT AVAILABLE
INFO: 
INFO: blas_ssl2_info:
INFO:   libraries fjlapackexsve not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: blis_info:
INFO:   libraries blis not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_info:
INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: accelerate_info:
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries tatlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_blas_info:
INFO:   libraries satlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_blas_info:
INFO:   libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:2154: UserWarning: 
    Optimized (vendor) Blas libraries are not found.
    Falls back to netlib Blas library which has worse performance.
    A better performance should be easily gained by switching
    Blas library.
  if self._calc_info(blas):
INFO: blas_info:
INFO:   libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:2154: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  if self._calc_info(blas):
INFO: blas_src_info:
INFO:   NOT AVAILABLE
INFO: 
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:2154: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  if self._calc_info(blas):
INFO:   NOT AVAILABLE
INFO: 
non-existing path in 'numpy/distutils': 'site.cfg'
INFO: lapack_opt_info:
INFO: lapack_armpl_info:
INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_mkl_info:
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:934: UserWarning: Specified path /opt/intel/oneapi/mkl/2023.1.0/lib/32 is invalid.
  return self.get_paths(self.section, key)
INFO:   libraries mkl_rt not found in ['/opt/intel/oneapi/mkl/2023.1.0', '/opt/intel/oneapi/mkl/2023.1.0/include', '/opt/intel/oneapi/mkl/2023.1.0/lib']
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_ssl2_info:
INFO:   libraries fjlapackexsve not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_lapack_info:
INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_clapack_info:
INFO:   libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: flame_info:
INFO:   libraries flame not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries tatlas,tatlas not found in /usr/local/lib
INFO:   libraries tatlas,tatlas not found in /usr/lib64
INFO:   libraries tatlas,tatlas not found in /usr/lib
INFO:   libraries tatlas,tatlas not found in /usr/lib/
INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_info:
INFO:   libraries satlas,satlas not found in /usr/local/lib
INFO:   libraries satlas,satlas not found in /usr/lib64
INFO:   libraries satlas,satlas not found in /usr/lib
INFO:   libraries satlas,satlas not found in /usr/lib/
INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/
INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_info:
INFO:   libraries f77blas,cblas,atlas not found in /usr/local/lib
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib64
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/
INFO: <class 'numpy.distutils.system_info.atlas_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_info:
INFO:   libraries lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
INFO:   NOT AVAILABLE
INFO: 
/build/python-numpy-mkl/src/numpy-1.25.2/numpy/distutils/system_info.py:1972: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  return getattr(self, '_calc_info_{}'.format(name))()
INFO: lapack_src_info:
INFO:   NOT AVAILABLE

petronny commented on 2022-09-28 08:28 (UTC)

Prebuilt binaries of this package can be found in arch4edu.

4rozenwolves commented on 2022-04-08 12:14 (UTC) (edited on 2022-04-08 12:15 (UTC) by 4rozenwolves)

I made an updated python-numpy-mkl and python-scipy-mkl that uses intel-oneapi-mkl.

Be sure to install the updated oneapi packages from https://github.com/huyz-git/intel-oneapi-aur since the current intel-oneapi-mkl cannot be installed with packages from AUR.

xuanruiqi commented on 2020-12-04 15:34 (UTC)

The bugs are fixed. This was due to hard-coded path in check(), and Python in the official repos has been updated to 3.9.

For scipy, I think you have to use python-scipy-mkl...

ibraheemmoosa commented on 2020-12-03 09:24 (UTC)

Does this work with the python-scipy package in the official arch repo? I installed this and then the python-scipy package from the official repo. But it seems that scipy is linked to lapack. When I try to import scipy.ndimage it gives error that it cannot find liblapack.so. Any solutions?

ibraheemmoosa commented on 2020-12-03 06:21 (UTC) (edited on 2020-12-03 06:28 (UTC) by ibraheemmoosa)

Okay I found a solution. In the PKGBUILD check() section I made the following changes.


-  PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.8/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()'
+  PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.9/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()'

ibraheemmoosa commented on 2020-12-03 05:56 (UTC) (edited on 2020-12-03 06:00 (UTC) by ibraheemmoosa)

I got this error :( What to do?


no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/numpy'
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.swp' found anywhere in distribution
warning: no previously-included files matching '*.bak' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files found matching 'LICENSES_bundled.txt'
writing manifest file 'numpy.egg-info/SOURCES.txt'
removing '/home/ibraheemmoosa/AUR/python-numpy-mkl/src/numpy-1.19.4/tmp_install/usr/lib/python3.9/site-packages/numpy-1.19.4-py3.9.egg-info' (and everything under it)
Copying numpy.egg-info to /home/ibraheemmoosa/AUR/python-numpy-mkl/src/numpy-1.19.4/tmp_install/usr/lib/python3.9/site-packages/numpy-1.19.4-py3.9.egg-info
running install_scripts
Installing f2py script to /home/ibraheemmoosa/AUR/python-numpy-mkl/src/numpy-1.19.4/tmp_install/usr/bin
Installing f2py3 script to /home/ibraheemmoosa/AUR/python-numpy-mkl/src/numpy-1.19.4/tmp_install/usr/bin
Installing f2py3.9 script to /home/ibraheemmoosa/AUR/python-numpy-mkl/src/numpy-1.19.4/tmp_install/usr/bin
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
==> ERROR: A failure occurred in check().
    Aborting...

petronny commented on 2020-08-05 11:48 (UTC)

@RunAndTumble Do you want to add icc back?

Building numpy with icc is introduced in https://software.intel.com/content/www/us/en/develop/articles/numpyscipy-with-intel-mkl.html and I think it's an official document.

We should always use the official way to build every package unless we have to patch it.

monson commented on 2020-07-27 18:17 (UTC)

@RunAndTumble Sorry, I thought you were too busy for that. icc support has been dropped because it doesn't accelerate much, the heavy computing parts are already using mkl. Also we don't need to deal with icc's license.

RunAndTumble commented on 2020-07-27 01:25 (UTC)

Eh, that was unexpected.