[113939] trunk/dports/math/OpenBLAS/Portfile

nicos at macports.org nicos at macports.org
Mon Nov 25 22:06:34 PST 2013


Revision: 113939
          https://trac.macports.org/changeset/113939
Author:   nicos at macports.org
Date:     2013-11-25 22:06:34 -0800 (Mon, 25 Nov 2013)
Log Message:
-----------
openblas: force target for newer processors which are not detected

Modified Paths:
--------------
    trunk/dports/math/OpenBLAS/Portfile

Modified: trunk/dports/math/OpenBLAS/Portfile
===================================================================
--- trunk/dports/math/OpenBLAS/Portfile	2013-11-26 05:55:59 UTC (rev 113938)
+++ trunk/dports/math/OpenBLAS/Portfile	2013-11-26 06:06:34 UTC (rev 113939)
@@ -107,6 +107,11 @@
         }
     } else {
         set makeINC [open ${worksrcpath}/Makefile.rule "w"]
+        #Present version of openblas does not detect Haswell correctly.
+        #Revert to Sandy Bridge
+        if { ![catch {sysctl hw.cpufamily} cputype] && $cputype == 280134364 } {
+            puts $makeINC "TARGET=SANDYBRIDGE"
+        }
         puts $makeINC "VERSION = ${version}"
         puts $makeINC "LIBNAMESUFFIX = "
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131125/030a5b4b/attachment.html>


More information about the macports-changes mailing list