ports/math/openblas/files/patch-param.h
Piotr Kubaj 2e85347e59 math/openblas: fix build on powerpc64 with TARGET=PPC970 and switch to PPC970
This patch fixes build for PPC970 target. Since most people that run FreeBSD on powerpc64 use PowerPC 970 CPU's, switch to it by default and add non-default option to optimize for POWER6 (optimizing for newer POWER doesn't work on BE).

Bump PORTREVISION because of package change.

PR:		238868
Approved by:	phd_kimberlite@yahoo.co.jp (maintainer), linimon (mentor)
Differential Revision:	https://reviews.freebsd.org/D21010
2019-07-30 12:11:21 +00:00

11 lines
345 B
C

--- param.h.orig 2019-06-28 14:19:50 UTC
+++ param.h
@@ -1877,7 +1877,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILI
#define ZGEMM_DEFAULT_UNROLL_M 2
#define ZGEMM_DEFAULT_UNROLL_N 2
-#ifdef OS_LINUX
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
#if L2_SIZE == 1024976
#define SGEMM_DEFAULT_P 320
#define DGEMM_DEFAULT_P 256