View | Details | Raw Unified | Return to bug 238868
Collapse All | Expand All

(-)Makefile (+6 lines)
Lines 40-45 Link Here
40
OPTIONS_DEFINE=		INTERFACE64 OPENMP
40
OPTIONS_DEFINE=		INTERFACE64 OPENMP
41
OPTIONS_DEFINE_i386=	DYNAMIC_ARCH AVX AVX2
41
OPTIONS_DEFINE_i386=	DYNAMIC_ARCH AVX AVX2
42
OPTIONS_DEFINE_amd64=	${OPTIONS_DEFINE_i386}
42
OPTIONS_DEFINE_amd64=	${OPTIONS_DEFINE_i386}
43
OPTIONS_DEFINE_powerpc64=	POWER6
43
44
44
.if defined(BATCH) || defined(PACKAGE_BUILDING)
45
.if defined(BATCH) || defined(PACKAGE_BUILDING)
45
OPTIONS_DEFAULT_i386=	DYNAMIC_ARCH
46
OPTIONS_DEFAULT_i386=	DYNAMIC_ARCH
Lines 51-61 Link Here
51
OPENMP_DESC=		Use OpenMP for threading
52
OPENMP_DESC=		Use OpenMP for threading
52
AVX_DESC=		Support Advanced Vector Extensions (AVX)
53
AVX_DESC=		Support Advanced Vector Extensions (AVX)
53
AVX2_DESC=		Support Advanced Vector Extensions 2 (AVX2)
54
AVX2_DESC=		Support Advanced Vector Extensions 2 (AVX2)
55
POWER6_DESC=		Optimize for POWER6, instead of the default PPC970
54
56
55
.include <bsd.port.options.mk>
57
.include <bsd.port.options.mk>
56
58
57
.if ${ARCH} == powerpc64
59
.if ${ARCH} == powerpc64
60
.  if ${PORT_OPTIONS:MPOWER6}
58
TARGET_CPU_ARCH=	POWER6
61
TARGET_CPU_ARCH=	POWER6
62
.else
63
TARGET_CPU_ARCH=	PPC970
64
.  endif
59
.endif
65
.endif
60
66
61
.if defined(TARGET_CPU_ARCH)
67
.if defined(TARGET_CPU_ARCH)
(-)files/patch-common__power.h (-1 / +10 lines)
Lines 1-5 Link Here
1
--- common_power.h.orig	2019-06-26 10:25:04 UTC
1
--- common_power.h.orig	2017-07-24 04:03:35 UTC
2
+++ common_power.h
2
+++ common_power.h
3
@@ -241,7 +241,7 @@ static inline int blas_quickdivide(blasint x, blasint 
4
 #define HAVE_PREFETCH
5
 #endif
6
 
7
-#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8)
8
+#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(PPC970)
9
 #define DCBT_ARG	0
10
 #else
11
 #define DCBT_ARG	8
3
@@ -499,7 +499,7 @@ static inline int blas_quickdivide(blasint x, blasint 
12
@@ -499,7 +499,7 @@ static inline int blas_quickdivide(blasint x, blasint 
4
 
13
 
5
 #if defined(ASSEMBLER) && !defined(NEEDPARAM)
14
 #if defined(ASSEMBLER) && !defined(NEEDPARAM)
(-)files/patch-param.h (+11 lines)
Line 0 Link Here
1
--- param.h.orig	2019-06-28 14:19:50 UTC
2
+++ param.h
3
@@ -1877,7 +1877,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILI
4
 #define ZGEMM_DEFAULT_UNROLL_M 2
5
 #define ZGEMM_DEFAULT_UNROLL_N 2
6
 
7
-#ifdef OS_LINUX
8
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
9
 #if L2_SIZE == 1024976
10
 #define SGEMM_DEFAULT_P 320
11
 #define DGEMM_DEFAULT_P 256

Return to bug 238868