[111734] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Mon Sep 30 04:09:09 PDT 2013
Revision: 111734
https://trac.macports.org/changeset/111734
Author: vince at macports.org
Date: 2013-09-30 04:09:09 -0700 (Mon, 30 Sep 2013)
Log Message:
-----------
Disable AVX on FMA machines compiling with GCC 4.x
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-09-30 10:50:49 UTC (rev 111733)
+++ trunk/dports/math/atlas/Portfile 2013-09-30 11:09:09 UTC (rev 111734)
@@ -6,8 +6,7 @@
categories math
license BSD
name atlas
-version 3.10.1
-revision 5
+version 3.11.13
# additional versions
set lapackversion 3.4.2
@@ -24,7 +23,7 @@
with machine-specific tuned libraries.
# No precompiled binaries
-archive_sites
+#archive_sites
homepage http://math-atlas.sourceforge.net/
@@ -35,13 +34,13 @@
${lapackdist}:lapack
patchfiles patch-emit_mm_c.diff \
- patch-ATL_cmm4x4x128_av_c.diff
-# patch-archinfo_x86_c.diff\
+ patch-ATL_cmm4x4x128_av_c.diff\
+ patch-archinfo_x86_c.diff
# patch-tfc_c.diff
-checksums atlas3.10.1.tar.bz2 \
- rmd160 67f928ad900caa300b23e2f824b8a495f416c8d6 \
- sha256 a215b492204aae0205f4028e7c4076492a5d6a564f8f859ff062fd79587bcc86 \
+checksums atlas3.11.13.tar.bz2 \
+ rmd160 d7872e0210f390001da88c19624396ce492ed7a3 \
+ sha256 0ffdf01641214c519ce99515c5ef3c47c53b9a6ecd841a09d350eab196baf3c7\
lapack-3.4.2.tgz \
rmd160 8740c35c9a85b71424fe1ffeed192256aebeb431 \
sha256 60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0
@@ -92,11 +91,6 @@
variant clang conflicts gcc46 gcc47 gcc48 mpclang33 \
description {use XCode clang and gfortran} {
- pre-fetch {
- return -code error "Use of clang is temporarily disabled.\
- Please choose gcc47 instead."
- }
-
configure.compiler clang
}
@@ -231,21 +225,8 @@
-fno-schedule-insns2 -fPIC"
# Clang
- if {${use_clang} == "XCode" } {
+ set clang_flags "-O3 -fomit-frame-pointer -fPIC"
- pre-fetch {
- ui_warn "Compiling Atlas with this version of clang is\
- likely *NOT* to work. Please use clang-3.3 or\
- higher."
- }
- set clang_flags "-O3 -fomit-frame-pointer -fPIC"
- } else {
-
- # Clang 3.3 – Use loop and straight vectorizer
- set clang_flags "-O3 -fomit-frame-pointer -fPIC"
-
- }
-
# Vectorizing unit flags
if {${has_fma} == "yes"} {
@@ -253,7 +234,13 @@
set gvct_flag "-msse4.2"
# downgrade FMA to AVX for the time being
set cvct_flag "-mavx"
- configure.args-append -A 26 -V 480
+
+ if {${use_clang} != ""} {
+ configure.args-append -A 26 -V 480
+ } else {
+ # No AVX when using GCC
+ configure.args-append -A 26 -V 448
+ }
} elseif {${has_avx2} == "yes"} {
set gvct_flag "-msse4.2"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130930/8386184a/attachment-0001.html>
More information about the macports-changes
mailing list