AltiVec Unwrapped
paradesign writes "O'Reilly is running a nice article on AltiVec in the G4 chip. The article includes examples, with code, showing its effectiveness. For everyone who is uneducated as to exactly what Altivec is, this is a must read."
Frist Post muthha's!
oh well, too late, bah
I'm too lame for sigs
Developers, developers, developers, developers!
Oh, wait, wrong company. Never mind.
This is a good article giving a basic overview of SIMD coding using altivec. However, when Apple claims that MHz don't matter, they're only telling the story, because SSE (on PIII and Athlon4/XP), 3DNow! on K6-2, K6-3 and Athlon all do much the same thing. I hate to say it, but the Pentium IV even has double-precision SIMD in the form of SSE2, currently the only consumer-grade processor with souble-precision SIMD. The AMD Hammer will have SSE2 as well when it comes out.
I'm out of my tree just now but please feel free to leave a banana.
We did a simple run of elastic polymer equilibria (for nitrogen, of course) and the RAM sub-bus gave out on us after registering a temperature of 87 farads. So we backed off to a simple newtonian extrapolation using quadrature-integrated gaussian kinetics and while it worked the results are no more accurate than we sould have gotten from DOS 5 on a 386.
In short, unless you are planning to run it above the Antarctic circle, don't buy one.
And why doesn't anyone besides Apple sell this stuff?? Is is possible to get a G4-enabled, AltiVec-enabled board somewhere without paying the Apple Tax?
You will also find faradic temperature measurement in such fields physical proton bombardment, torque pressurization and shotput.
nt
I post a semi-informative piece and all there are are first-posters and trolls at a higher score.
I've had it up to here with slashdot.
It sucks.
I'm out of my tree just now but please feel free to leave a banana.
Mostly out of curiosity (as I don't have a G4 on my desk anymore - it died), what does anyone know about the status of AltiVec support under LinuxPPC (as opposed to OSX, as discussed in the article)? A quick Google search indicates that Motorola made some patches for gcc a couple years ago, but that it wasn't exactly production quality.
There's a website that supposedly has tools, but you have to register for their mailing list to see what they've got (and I get enough mail as it is).
-"Zow"
Ars Technica did an article comparing the AltiVec and SSE/MMX2/3DNow! architectures. Written a while back, but still valid as the architectures have not changed.
--Paul
in each of their vector code examples, they divide n by 4 which seems to be because there are 4 altivec units on the powerpc chip. what happens when there are more units/chip? i think i may be missing something, though because this seems highly illogical. can someone please clear this up for me? i'm thinking maybe it has more to do with the fact that the 128bit unit can handle four floating point words per cycle (as stated toward the beginning of the article). in this case, would you divide n by 8 for 16-bit integers (and thus experience a ~8x performance increase)? can someone help me to get out of the dark?
thanks...