Package Base Details: python-numpy-openblas

Git Clone URL: https://aur.archlinux.org/python-numpy-openblas.git (read-only)
Submitter: xia0er
Maintainer: xia0er
Last Packager: xia0er
Votes: 23
Popularity: 0.058760
First Submitted: 2013-11-21 20:38
Last Updated: 2019-04-15 02:52

Latest Comments

« First ‹ Previous 1 2 3 4 5

xia0er commented on 2013-11-21 20:49

Thank you, Xyne! I incorporated your changes in 1.7.1-5. Since @sftrytry created an openblas-lapack package, this package can now depend on the new package. I deleted my previous comment.

I am a bit ambivalent regarding separating PKGBUILD for python2 and 3. It is a pity that AUR doesn't support split package, but the single PKGBUILD works well on any archlinux box, and even though the python2 and 3 builds do not share any compilation, the commands are identical. So I am slightly leaning the current status - commenting out instead of removing the split package syntax.

xia0er commented on 2013-11-21 20:39

This package is split from python2-numpy-openblas. Since I don't use python3, I haven't tested it. Leave a comment if it doesn't work.

Xyne commented on 2013-11-21 02:03

Hi,

I have cleaned up the PKGBUILD (removal of deprecated variables, removal of "replaces" array, inclusion of "prepare" function, etc.).

You can find it here: http://xyne.archlinux.ca/tmp/pkgbuilds/

You will need to re-comment the pkgbase and pkgname variable. Let me know if you have any questions about my changes.

Given that the split packages do not share any compilation I do not think it makes any sense to keep this as a split package on the AUR. You can always a single local PKGBUILD and change the comments before uploading the source tarball.


Regarding the openblas PKGBUILD below, have you contacted the current maintainer of openblas to request default lapack and cblas support?

Btw, it is against AUR policy to post PKGBUILDs in comments. Please use something like pastebin.com in the future. Aside from keep the page clean, it provides syntax highlighting, proper indentation and easy download of the original file.

Thanks for maintaining this package.

Regards,
Xyne

xia0er commented on 2013-11-19 20:45

To get fully optimized speed (for matrix dot, at least), you will need to compile openblas package with lapack and cblas. This PKGBUILD works for me (removed NO_LAPACK=1 and NO_CLBAS=1 from make arguments):

pkgname=openblas
_pkgname=OpenBLAS
pkgver=0.2.8
pkgrel=1
pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD (compiled with LAPACK and CBLAS)"
arch=('i686' 'x86_64')
url="http://xianyi.github.com/OpenBLAS/"
license=('BSD')
depends=('gcc-libs')
makedepends=('perl' 'gcc-fortran')
provides=('blas=3.4.2')
conflicts=('blas')
options=(!makeflags)
source=(${_pkgname}-v${pkgver}.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
md5sums=('19f38a32bc9e6e56f2b6874d7497baf0')

build() {
cd "$srcdir/$_pkgname-$pkgver"

unset CFLAGS
unset CXXFLAGS
NPROC=`grep "physical id" /proc/cpuinfo|sort|uniq|wc -l`
NCORE4PROC=`grep "cores" /proc/cpuinfo|sort|tail -n 1|sed -e 's/cpu cores.*: //'`
let NCORE=NPROC*NCORE4PROC
make USE_OPENMP=1 NUM_THREADS=$NCORE LIBPREFIX=libblas \
MAJOR_VERSION=3 NO_AFFINITY=1
}

package() {
cd "$srcdir/$_pkgname-$pkgver"

NPROC=`grep "physical id" /proc/cpuinfo|sort|uniq|wc -l`
NCORE4PROC=` grep "cores" /proc/cpuinfo|sort|tail -n 1|sed -e 's/cpu cores.*: //'`
let NCORE=NPROC*NCORE4PROC
make PREFIX="$pkgdir/usr" NUM_THREADS=$NCORE LIBPREFIX=libblas \
MAJOR_VERSION=3 install
rm -f "$pkgdir/usr/include/cblas.h" "$pkgdir"/usr/include/lapacke*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

cd "$pkgdir/usr/lib/"
ln -sf libblas_*-r$pkgver.a libblas.a
ln -sf libblas_*-r$pkgver.so libblas.so
ln -sf libblas_*-r$pkgver.so libblas.so.3
}

# vim:set ts=2 sw=2 et: