From 18845ae70bdac462551e130db42caad547ea090f Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Thu, 23 Mar 2017 01:49:35 +0000 Subject: 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. --- community/openblas/APKBUILD | 2 ++ 1 file changed, 2 insertions(+) (limited to 'community/openblas/APKBUILD') 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 -- cgit v1.2.3