<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head> <!-- <DEFANGED_STYLE type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --> --> </DEFANGED_STYLE><title>Re: [GRASSLIST:6151] Re: Altivec optimization for
GRASS mo</title></head><body>
<div>Hi</div>
<blockquote type="cite" cite>&gt; Just curious.... has anyone thought
about adding the possibility for<br>
&gt; Altivec acceleration to the source for any of the GRASS
modules?<br>
<br>
<br>
for anyone (like me) who has no idea what Altivec is:<br>
</blockquote>
<blockquote type="cite" cite>&nbsp;
http://en.wikipedia.org/wiki/Altivec<br>
<br>
<br>
<br>
Hamish</blockquote>
<div><br></div>
<div>It's a flag question from compiler (gcc 3.3) but remember, for
example, now Grass use FFTW 2.1.5 library and it's not compatible with
3.0 lib that has Altivec inside.</div>
<div>Now blas and lapack libs are substituted with flag<font
face="Helvetica" color="#000000"> -framework vecLib<font
size="-4">&nbsp;</font></font></div>
<div>http://developer.apple.com/releasenotes/MacOSX/vecLib.html</div>
<div><br></div>
<div>In the future will be possible to optimize Grass for 64 bit G5
processor. From user reviews on OS X the performances are very good
now with the normal flags. These compiler flags are more compatible
for all OS X versions (10.2, 10.3, 10.4) and all processors (G3, G4
altivec, G5 64 bit)</div>
<div><br></div>
<div><br></div>
<div>There are info about Altivec with a new good version of gcc 4.0
but only for 10.3 at http://hpc.sf.net</div>
<div><br></div>
<div>From site</div>
<blockquote><font face="Optima" color="#660033"><b>GCC 4.0
(auto-vectorizing)</b></font><font face="Optima" color="#000000"><b>
:</b></font></blockquote>
<blockquote><font face="Optima"
color="#000000"><b><br></b></font></blockquote>
<blockquote><font face="Optima" color="#000000">Recently compiled
using source code from the GNU CVS servers,<b> autovect-branch</b> .&nbsp;
This contains beta versions of gfortran (GNU F95) and gcc (GNU C)
compilers that can&nbsp; perform limited auto-vectorization (i.e.
modify code to take advantage of AltiVec, automatically).&nbsp; Use
flags<b> -ftree-vectorize -maltivec</b> to enable that option. For
more information,&nbsp; see</font><font face="Optima"
color="#000066"><b> this webpage</b></font><font face="Optima"
color="#000000"> .&nbsp; Download my binaries, and<b> cd</b> to the
download folder. Then<b> gunzip gcc-vec-bin.tar.gz</b> (if your
browser didn't do so already) and<b> sudo tar -xvf gcc-vec-bin.tar -C
/</b> .&nbsp; It installs everything in<b> /usr/local</b> .&nbsp; You
invoke g95 by typing<b> gfortran</b> . Note that you may need to add
the flag<b> -lstdc++</b> for getting it recognize some of the
unimplemented standard functions.&nbsp; You will also need to have
Apple's Developer Tools installed. They are included on a&nbsp;
separate CD in the retail version of OS X and also available as a free
download from</font><font face="Optima" color="#000066"><b> Apple's
Developer Site</b></font><font face="Optima" color="#000000"> .&nbsp;
Please install the most current version of Developer
Tools.</font></blockquote>
<blockquote><font face="Optima"
color="#000000"><br></font></blockquote>
<div><br></div>
<div><br></div>
<div>Bye</div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><font face="Courier New" size="-4"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
<div><font color="#000000">||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorenzo
Moretti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:
lorenzo.moretti@bologna.enea.it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></div
>
<div><font color="#000000">||/|/|&nbsp; ENEA
prot/idr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web:
http://wwwamb.bologna.enea.it/&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font color="#000000">||&nbsp;&nbsp; |&nbsp; via Don Fiammelli,
2&nbsp;&nbsp; FTP:
ftp://ftpamb.bologna.enea.it/&nbsp;(res.)</font></div>
<div><font color="#000000">~~~~~~&nbsp; 40128 BOLOGNA - ITALY&nbsp;
Ph: +39-0516098086&nbsp; Fax: +39-0516098131</font></div>
<div><font
color="#000000"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>Download GRASS for MAC OS
X:&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font
color="#000000"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
http://wwwamb.bologna.enea.it/forgrass/</font></div>
<div><font
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>