Commit 45b4814c authored by Jakub Jirutka's avatar Jakub Jirutka

community/openblas: enable for aarch64 without -ilp64

https://github.com/xianyi/OpenBLAS/issues/956#issuecomment-246162047
parent c78ee4be
......@@ -7,35 +7,34 @@ pkgver=0.2.19
pkgrel=0
pkgdesc="A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK"
url="http://www.openblas.net"
arch="all !aarch64"
arch="all"
license="BSD"
depends=""
depends_dev="gfortran"
makedepends="$depends_dev perl linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://github.com/xianyi/$_pkgname/archive/v$pkgver.tar.gz
"
source="$pkgname-$pkgver.tar.gz::http://github.com/xianyi/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
_builddir64="$builddir-64"
# ILP64 is not supported on aarch64 (https://github.com/xianyi/OpenBLAS/issues/956)
_ilp64=false
if [ "$CARCH" = "x86_64" ]; then
subpackages="$subpackages $pkgname-ilp64"
_ilp64=true
fi
# USE_OPENMP=0: see GCC bug 60035
# NO_AFFINITY: don't expect to work on musl, also breaks R and not
# recommended for Julia
_flags="USE_OPENMP=0
NO_LAPACK=0
MAJOR_VERSION=3
NO_AFFINITY=1
"
NO_AFFINITY=1"
case "$CARCH" in
x86_64 | aarch64)
subpackages="$subpackages $pkgname-ilp64"
_flags="$_flags NUM_THREADS=32" # match kernel's CONFIG_NR_CPUS
_ilp64=true
;;
*)
_flags="$_flags NUM_THREADS=8" # 32bit machines usually have less cores
_ilp64=false
;;
*64) _flags="$_flags NUM_THREADS=32";; # match kernel's CONFIG_NR_CPUS
*) _flags="$_flags NUM_THREADS=8";; # 32bit machines usually have less cores
esac
# DYNAMIC_ARCH is supported on x86* only, see https://github.com/xianyi/OpenBLAS/issues/709
......@@ -91,7 +90,7 @@ package() {
ilp64() {
pkgdesc="$pkgdesc (ILP64)"
arch="x86_64 aarch64"
arch="x86_64"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libopenblas64_* "$subpkgdir"/usr/lib/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment