MFH: r485112 (build fix blanket)
math/openblas: fix compile on newer Ryzen 2 - Added model IDs for Ryzen 2nd generation PR: 231538 Submitted by: Philip Homburg <pch-freebsd-bugs@u-1.phicoh.com> Reviewed by: rozhuk.im@gmail.com, jonc@chen.org.nz Approved by: phd_kimberlite@yahoo.co.jp (maintainer) Approved by: portmgr (implicit)
This commit is contained in:
parent
a9ce917196
commit
c55ffee979
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q4/; revision=485113
18
math/openblas/files/patch-cpuid_x86.c
Normal file
18
math/openblas/files/patch-cpuid_x86.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user