[139389] trunk/dports/math/OpenBLAS/Portfile
nicos at macports.org
nicos at macports.org
Fri Aug 14 22:31:40 PDT 2015
Revision: 139389
https://trac.macports.org/changeset/139389
Author: nicos at macports.org
Date: 2015-08-14 22:31:40 -0700 (Fri, 14 Aug 2015)
Log Message:
-----------
OpenBLAS: adding warning for disabled instrutions depending on compiler (ticket #48381)
Modified Paths:
--------------
trunk/dports/math/OpenBLAS/Portfile
Modified: trunk/dports/math/OpenBLAS/Portfile
===================================================================
--- trunk/dports/math/OpenBLAS/Portfile 2015-08-15 04:42:10 UTC (rev 139388)
+++ trunk/dports/math/OpenBLAS/Portfile 2015-08-15 05:31:40 UTC (rev 139389)
@@ -140,6 +140,10 @@
puts $makeINC "NO_LAPACK = 1"
}
if {![variant_isset clang]} {
+ if { ![catch {sysctl hw.optional.avx1_0} has_avx] && $has_avx == 1 } {
+ ui_msg "Warning: the chosen compiler cannot handle advanced optimisation instructions."
+ ui_msg " AVX instructions are disabled."
+ }
puts $makeINC "NO_AVX = 1"
}
close $makeINC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150814/357a747b/attachment.html>
More information about the macports-changes
mailing list