aboutsummaryrefslogtreecommitdiffstats
path: root/community/openblas/APKBUILD
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-03-23 01:49:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-23 14:35:34 +0000
commit18845ae70bdac462551e130db42caad547ea090f (patch)
tree5d45088e03fae289b3151cce1806d07a519ef238 /community/openblas/APKBUILD
parentfe8377461e520e3e9e6c82d96ea7941ea2ba0310 (diff)
downloadaports-18845ae70bdac462551e130db42caad547ea090f.tar.bz2
aports-18845ae70bdac462551e130db42caad547ea090f.tar.xz
community/openblas: Enable ppc64le
Enabling build on ppc64le. Currently minimal processor for ppc64le is POWER8, so, we using TARGET=POWER8 instead of PPCG4. Also targeting 64 threads as done on Debian/ppc64el. Not using DYNAMIC arch also.
Diffstat (limited to 'community/openblas/APKBUILD')
-rw-r--r--community/openblas/APKBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/community/openblas/APKBUILD b/community/openblas/APKBUILD
index dcefcaa6cd..1fc323e2ff 100644
--- a/community/openblas/APKBUILD
+++ b/community/openblas/APKBUILD
@@ -33,6 +33,7 @@ _flags="USE_OPENMP=0
MAJOR_VERSION=3
NO_AFFINITY=1"
case "$CARCH" in
+ppc64le) _flags="$_flags NUM_THREADS=64";; # POWER machines are big
*64) _flags="$_flags NUM_THREADS=32";; # match kernel's CONFIG_NR_CPUS
*) _flags="$_flags NUM_THREADS=8";; # 32bit machines usually have less cores
esac
@@ -42,6 +43,7 @@ case "$CARCH" in
x86*) _flags="$_flags TARGET=core2 DYNAMIC_ARCH=1";;
armhf) _flags="$_flags TARGET=ARMV7 DYNAMIC_ARCH=0";;
aarch64) _flags="$_flags TARGET=ARMV8 DYNAMIC_ARCH=0";;
+ppc64le) _flags="$_flags TARGET=POWER8 DYNAMIC_ARCH=0";;
*) _flags="$_flags DYNAMIC_ARCH=0";;
esac