svn commit: r485112 - head/math/openblas/files

Kurt Jaeger pi at FreeBSD.org
Sat Nov 17 03:14:22 UTC 2018


Author: pi
Date: Sat Nov 17 03:14:21 2018
New Revision: 485112
URL: https://svnweb.freebsd.org/changeset/ports/485112

Log:
  math/openblas: fix compile on newer Ryzen 2
  
  - Added model IDs for Ryzen 2nd generation
  
  PR:		231538
  Submitted by:	Philip Homburg <pch-freebsd-bugs at u-1.phicoh.com>
  Reviewed by:	rozhuk.im at gmail.com, jonc at chen.org.nz
  Approved by:	phd_kimberlite at yahoo.co.jp (maintainer)

Added:
  head/math/openblas/files/patch-cpuid_x86.c   (contents, props changed)

Added: head/math/openblas/files/patch-cpuid_x86.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/openblas/files/patch-cpuid_x86.c	Sat Nov 17 03:14:21 2018	(r485112)
@@ -0,0 +1,18 @@
+--- cpuid_x86.c.orig	2017-07-24 04:03:35 UTC
++++ cpuid_x86.c
+@@ -1329,6 +1329,7 @@ int get_cpuname(void){
+       case 8:
+ 	switch (model) {
+ 	case 1:
++	case 8:
+ 	  // AMD Ryzen
+ 	  if(support_avx())
+ #ifndef NO_AVX2
+@@ -1865,6 +1866,7 @@ int get_coretype(void){
+       } else if (exfamily == 8) {
+ 	switch (model) {
+ 	case 1:
++	case 8:
+ 	  // AMD Ryzen
+ 	  if(support_avx())
+ #ifndef NO_AVX2


More information about the svn-ports-all mailing list