[FFmpeg-devel] Test PowerPC cpu detection
Aurelien Jacobs
aurel
Sun Nov 11 23:27:26 CET 2007
Reimar D?ffinger wrote:
> Hello,
> On Sun, Nov 11, 2007 at 04:10:10PM +0100, Reimar D?ffinger wrote:
> > could some of you PowerPC users test attached patch?
>
> Wow, I wrote patch out of habit. I meant program...
> Attached is a version that should correctly print if you have altivec or
> not.
> Runtime detection based on this is only a possibility if optional IMO,
> since at least it would break on ever kernel older than 2.6.16, and
> probably all other OS as well...
Test on a G3 (no Altivec):
$ uname -a
Linux ned 2.6.8-powerpc #1 Thu Dec 9 10:27:54 CET 2004 ppc GNU/Linux
$ cat /proc/cpuinfo
processor : 0
cpu : 740/750
temperature : 15-17 C (uncalibrated)
clock : 400MHz
revision : 131.0 (pvr 0008 8300)
bogomips : 796.67
machine : PowerMac2,1
motherboard : PowerMac2,1 MacRISC Power Macintosh
detected as : 66 (iMac FireWire)
pmac flags : 00000005
L2 cache : 512K unified
memory : 128MB
pmac-generation : NewWorld
$ ./ppcver
PVR: 00088300
Lacks Altivec
It seems this test works on a 2.6.8 kernel !
(Maybe this kernel is patched to support this... It's a Debian
Sarge kernel)
I did the same test with a 2.6.22 kernel and got the same result.
Aurel
More information about the ffmpeg-devel
mailing list