[FFmpeg-devel] [PATCH] swscale/ppc: Move VSX-using code to its own file

Michael Niedermayer michael at niedermayer.cc
Thu Dec 6 22:47:18 EET 2018


On Tue, Dec 04, 2018 at 02:27:22PM +0100, Michael Niedermayer wrote:
> On Tue, Dec 04, 2018 at 11:00:34AM +0100, Dominik 'Rathann' Mierzejewski wrote:
> > On Tuesday, 04 December 2018 at 08:10, Lauri Kasanen wrote:
> > > On Tue, 4 Dec 2018 03:21:30 +0100
> > > Michael Niedermayer <michael at niedermayer.cc> wrote:
> > > 
> > > > On Mon, Dec 03, 2018 at 09:24:47AM +0200, Lauri Kasanen wrote:
> > > > > Also ping on "swscale/output: VSX-optimize
> > > > > nbps yuv2plane1".
> > > > 
> > > > This IIUC has not been tested on BE yet
> > > > 
> > > > my ppc emulation setup is a bit broken and my ppc hw ive not tried using
> > > > since years and it was not in good shape last i used it.
> > > > So i cant just quickly test this ...
> > > 
> > > Raptor offers free POWER9 VMs to open source projects. Since you're the
> > > leader of ffmpeg, if you asked, I'm sure they'd give one or two for
> > > ffmpeg build and fate testing.
> > > 
> > > Ref
> > > https://mobile.twitter.com/RaptorCompSys/status/1067018060777832449?p=v
> > > https://mobile.twitter.com/RaptorCompSys/status/1067029086273486848?p=v
> > > 
> > > "We offer free access to cloud VPS for libre software projects in
> > > partnership with @Integricloud, would that help?"
> > > 
> > > "Contact sales at integricloud.com and tell them what you want to use a
> > > VPS or two for. They will generally grant access to the resources."
> > > 
> > > (I'm developing on a POWER8 VM intended for devs, but ordered a
> > > Blackbird from the cyber monday sale ;))
> > 
> > Red Hat also offers Power 8 VMs, both BE and LE, to open source projects:
> > http://research.redhat.com/powerlinux-openpower-development-hosting/
> 
> these are more suggestions than i expected :)
> but i just got cross build working again and i also just eliminated a
> mysterious ld.so related segfault
> ATM iam re rerunning fate with a freshly rebuilt qemu
> (the past one had an issue with altivec)

i have cross build with ppc and qemu partly working
but it appears gcc or something is just buggy
for example this:
#include <math.h>

main() {
    float f = 0.0/0.0;
    printf("%f\n", floor(f));
}

produces:
510423550381407695195061911147652317184.000000

but if build with -O1 it produces this:
nan

thats with powerpc-linux-gnu-gcc-4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4

also
gcc -O1 behaves different from litterally listing all the options that -O1
is documented to turn on

the remaining issues are:
make: *** [fate-eval] Error 1
make: *** [fate-filter-tremolo] Error 1
make: *** [fate-filter-refcmp-psnr-rgb] Error 1
make: *** [fate-parseutils] Error 1

where eval and parseutils appear to be issues with non finite numbers
not sure iam missing something ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181206/1c70353e/attachment.sig>


More information about the ffmpeg-devel mailing list