Package Details: python-numpy-mkl 1.13.3-2

Git Clone URL: https://aur.archlinux.org/python-numpy-mkl.git (read-only)
Package Base: python-numpy-mkl
Description: Scientific tools for Python compiled with intel mkl
Upstream URL: http://numpy.scipy.org/
Keywords: numpy
Licenses: custom
Conflicts: python-numpy, python3-numpy
Provides: python-numpy=1.13.3, python3-numpy=1.13.3
Replaces: python3-numpy
Submitter: bred
Maintainer: bred
Last Packager: bred
Votes: 23
Popularity: 0.582689
First Submitted: 2012-08-25 16:55
Last Updated: 2017-10-23 18:39

Required by (364)

Sources (3)

Latest Comments

arvidsaur commented on 2017-11-29 16:02

python-numpy gives me a pass each time I run it.

python -c "from numpy import test; test('full')"
Running unit tests for numpy
NumPy version 1.13.3
NumPy relaxed strides checking option: True
NumPy is installed in /usr/lib/python3.6/site-packages/numpy
Python version 3.6.3 (default, Oct 24 2017, 14:48:20) [GCC 7.2.0]
nose version 1.3.7

Ran 6823 tests in 99.402s

OK (KNOWNFAIL=7, SKIP=13)

bred commented on 2017-11-14 10:48

Yes with python-numpy-mkl I've the same error as you.

Try to run the test for two time with python-numpy.
On a new try I've not seen the error on the first run, but it has appeared on the second run (with python-numpy).

Strange!

arvidsaur commented on 2017-11-13 11:52

That is weird first that we do not have the same failed test, and secondly that python-numpy has no errors for me.

Did you get the chance to test python-numpy-mkl as well?

bred commented on 2017-11-08 15:41

In python-numpy (normal archlinux package) I've this error:

======================================================================
FAIL: test_refcount_vdot (test_regression.TestRegression)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/numpy/core/tests/test_regression.py", line 659, in test_refcount_vdot
_assert_valid_refcount(np.vdot)
File "/usr/lib/python3.6/site-packages/numpy/testing/utils.py", line 1336, in _assert_valid_refcount
assert_(sys.getrefcount(i) >= rc)
File "/usr/lib/python3.6/site-packages/numpy/testing/utils.py", line 92, in assert_
raise AssertionError(smsg)
AssertionError

----------------------------------------------------------------------
Ran 6610 tests in 55.926s

FAILED (KNOWNFAIL=7, SKIP=13, failures=1)

It seems to be a bug in numpy.

I'll test also the numpy with MKL.

arvidsaur commented on 2017-11-08 14:32

Running numpy.test() with this pkgbuild I get the following failure:
FAIL: test_noncommutative_reduce_accumulate (test_regression.TestRegression)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/numpy/core/tests/test_regression.py", line 674, in test_noncommutative_reduce_accumulate
np.array([2., 4., 16.]))
File "/usr/lib/python3.6/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/usr/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 33.33333333333333%)
x: array([ 2., 4., 0.])
y: array([ 2., 4., 16.])

----------------------------------------------------------------------
Ran 6610 tests in 21.417s

FAILED (KNOWNFAIL=7, SKIP=14, failures=1)

with the 'normal' python-numpy this test passes, anyone else have this issue?

bred commented on 2017-10-22 15:44

As experimental option I've added the possibility to compile with gcc and MKL!

gwaterst commented on 2017-10-19 17:39

@derdigge:

You need to obtain a license for your intel software:
https://software.intel.com/en-us/parallel-studio-xe/choose-download

derdigge commented on 2017-10-18 15:08

Buils failed for me even using the PKGBUIL mentioned by gwaterst.

https://pastebin.com/ZpBKGwfk

gwaterst commented on 2017-10-05 11:09

Sorry there indeed was a typo. The line was supposed to be:

export __INTEL_PRE_CFLAGS="$__INTEL_PRE_CFLAGS -D_Float128=__float128"

(Someone might have defined __INTEL_PRE_CFLAGS system-wide so I keep the previous definition and append the float128 option to it)

Here is my entire functional (at least for me) PKGBUILD:

################################################################################
################################################################################
pkgbase="python-numpy-mkl"
pkgname="python-numpy-mkl"
true && pkgname=('python-numpy-mkl' 'python2-numpy-mkl')
#pkgname=('python-numpy')
pkgver=1.13.2
pkgrel=1
pkgdesc="Scientific tools for Python compiled with intel mkl"
arch=('i686' 'x86_64')
license=('custom')
options=('staticlibs')
url="http://numpy.scipy.org/"
depends=( 'intel-mkl' 'python' 'python2' )
makedepends=( 'python-setuptools' 'python2-setuptools' 'intel-compiler-base' 'intel-fortran-compiler' 'python-nose' 'python2-nose' 'cython' 'glibc')

source=( https://github.com/numpy/numpy/archive/v${pkgver}.tar.gz
'site64.cfg'
'site32.cfg')

sha256sums=( '11add7a40a868e70b7de8e568e5f20504f4dbfc7fce18887472220c2f5167ae4' # main pkg§
'86cd68a695a5e1d76f8e53cda70c888c4ed04349f15c8096d4492e346e7187e1' # site64
'882f2717deca0fd6a2e2384aac2dc7973c566f9cd2ba46777c3b5ffdffa814df' # site32
)

build() {

cd "${srcdir}"

if [ "$CARCH" = "i686" ]; then
cp ${srcdir}/site32.cfg ${srcdir}/site.cfg
_compiler=intel
else
cp ${srcdir}/site64.cfg ${srcdir}/site.cfg
_compiler=intelem
fi


cp -a numpy-${pkgver} numpy-py2-${pkgver}

export Atlas=None
export LDFLAGS="$LDFLAGS -shared"
export __INTEL_PRE_CFLAGS="$__INTEL_PRE_CFLAGS -D_Float128=__float128"

echo "Building Python2"
cd "${srcdir}"
cp ${srcdir}/site.cfg "${srcdir}/numpy-py2-${pkgver}"
cd "${srcdir}/numpy-py2-${pkgver}"

python2 setup.py config --compiler=${_compiler} build_clib --compiler=${_compiler} build_ext --compiler=${_compiler}

echo "Building Python3"
cd "${srcdir}"
cp ${srcdir}/site.cfg "${srcdir}/numpy-${pkgver}"
cd "${srcdir}/numpy-${pkgver}"

python setup.py config --compiler=${_compiler} build_clib --compiler=${_compiler} build_ext --compiler=${_compiler}
}

package_python2-numpy-mkl() {

depends=('intel-mkl' 'python2')
provides=( "python2-numpy=${pkgver}" )
replaces=( "python2-numpy" )
conflicts=( "python2-numpy" )
optdepends=('python-nose: testsuite')

cd "${srcdir}/numpy-py2-${pkgver}"
python2 setup.py config_fc install --prefix=/usr --root="${pkgdir}" --optimize=1

install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy"
install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/"

sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
$(find ${pkgdir} -name '*.py')
}

package_python-numpy-mkl() {

depends=('intel-mkl' 'python')
provides=("python3-numpy=${pkgver}" "python-numpy=${pkgver}")
replaces=('python3-numpy')
conflicts=('python3-numpy' 'python-numpy')

cd "${srcdir}/numpy-${pkgver}"
python setup.py config_fc install --prefix=/usr --root="${pkgdir}" --optimize=1

install -m755 -d "${pkgdir}/usr/share/licenses/python3-numpy"
install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python3-numpy/"
}
################################################################################
################################################################################

invik commented on 2017-10-04 08:45

@arvidsaur

I think gwaterst had a typo. Should be:

export __INTEL_PRE_CFLAGS=" -D_Float128=__float128"

It worked for me by putting it like that right under the "build() {" line.

All comments