Changeset 93701


Ignore:
Timestamp:
May 28, 2012, 4:29:10 PM (8 years ago)
Author:
vince@…
Message:

Makes atlas configure correctly on PPC/PPC64 machines.

Location:
trunk/dports/math/atlas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r93577 r93701  
    322322        reinplace "s|-MPFORTRAN-|${ff}|" ${worksrcpath}/CONFIG/src/probe_comp.c
    323323        reinplace "s|-MPPATH-|${prefix}/bin|" ${worksrcpath}/CONFIG/src/probe_comp.c
    324                 if {${build_arch} == "ppc" || ${build_arch} == "ppc64"} {
    325 
    326                         reinplace "s|XXX|'${cc}' '-fomit-frame-pointer \
    327                                 -O2 -fno-schedule-insns2'|" \
     324                if {${build_arch} == "ppc"} {
     325
     326                        reinplace "s|XXX|'${cc}' '-O3 -maltivec \
     327                                -mabi=altivec -mcpu=7400 -mtune=7400 \
     328                                -fno-schedule-insns \
     329                                -fschedule-insns2'|" \
     330                                ${worksrcpath}/CONFIG/src/atlcomp.txt
     331                } elseif {${build_arch} == "ppc64"} {
     332
     333                        reinplace "s|XXX|'${cc}' '-O3 -maltivec \
     334                                -mabi=altivec -mcpu=970 -mtune=970 \
     335                                -mvrsave -mpowerpc64 \
     336                                -fno-schedule-insns \
     337                                -fno-schedule-insns2'|" \
    328338                                ${worksrcpath}/CONFIG/src/atlcomp.txt
    329339                } else {
  • trunk/dports/math/atlas/files/patch-atlcomp_txt.diff

    r93299 r93701  
    1 --- CONFIG/src/atlcomp.txt.orig 2012-05-05 18:11:44.000000000 +0200
    2 +++ CONFIG/src/atlcomp.txt      2012-05-18 21:24:03.000000000 +0200
     1--- CONFIG/src/atlcomp.txt.orig 2012-05-28 17:29:16.000000000 +0200
     2+++ CONFIG/src/atlcomp.txt      2012-05-28 17:33:21.000000000 +0200
    33@@ -43,16 +43,20 @@
    44    'gcc-4' '-fomit-frame-pointer -mfpmath=sse -O2 -fno-schedule-insns2'
     
    3333 MACH=AMD64K10h OS=ALL LVL=1000 COMPS=f77
    3434    'gfortran' '-fomit-frame-pointer -mfpmath=sse -O2'
     35@@ -177,6 +183,8 @@
     36    'gcc' '-Os -maltivec -mabi=altivec -mcpu=7400 -mtune=7400'
     37 MACH=PPCG4 OS=ALL LVL=1000 COMPS=icc,skc,dkc,xcc,gcc
     38    'gcc' '-O3 -maltivec -mabi=altivec -mcpu=7400 -mtune=7400 -fno-schedule-insns -fschedule-insns2'
     39+MACH=PPCG4 OS=ALL LVL=1010 COMPS=smc,dmc,skc,dkc,icc,gcc,xcc
     40+    XXX
     41 #
     42 # PowerPC970
     43 #
     44@@ -186,6 +194,8 @@
     45    'gcc' '-mpowerpc64 -maltivec -mabi=altivec -mcpu=970 -mtune=970 -O2'
     46 MACH=PPCG5 OS=ALL LVL=1000 COMPS=skc
     47    'gcc' '-mpowerpc64 -maltivec -mabi=altivec -mcpu=970 -mtune=970 -O2 -mvrsave'
     48+MACH=PPCG5 OS=ALL LVL=1010 COMPS=smc,dmc,skc,dkc,icc,gcc,xcc
     49+    XXX
     50 MACH=POWER7 OS=ALL LVL=1010 COMPS=icc,smc,dmc,skc,dkc,xcc,gcc
     51    'gcc' '-O2 -mvsx -mcpu=power7 -mtune=power7 -m64 -mvrsave -funroll-all-loops'
     52 MACH=POWER7 OS=ALL LVL=1010 COMPS=f77
Note: See TracChangeset for help on using the changeset viewer.