caps package sse optimalization

Alessandro Ghedini ghedo at debian.org
Thu Aug 29 07:41:12 UTC 2013


On mer, ago 28, 2013 at 06:20:56 -0400, Felipe Sateler wrote:
> On Wed, Aug 28, 2013 at 5:50 PM, Alessandro Ghedini <ghedo at debian.org> wrote:
> > On Wed, Aug 28, 2013 at 09:56:16PM +0200, Jaromír Mikeš wrote:
> >> Hi,
> >>
> >> can we build package which having SSE optimization enabled on some archs?
> >> Upstream of caps wishes that.
> >
> > AFAICT, caps already enables SSE by default... that's why it currently FTBFS
> > everywhere except on (kfreebsd-)amd64 [0]. This seems to be fixed in the new
> > upstream release (currently in git) though, which includes the "#ifdef __SSE__"
> > checks.
> >
> > So IMO there's no need for you to do anything, since SSE already gets enabled
> > only where it's supported (in the upstream version currently in git).
> 
> Debian is supposed to support i486 computers. What happens if caps
> detects SSE in the buildd? i386 binaries should not have such
> optimizations by default.

The i386 toolchain defaults to not enabling SSE, but the configure.py script
may detect it from /proc/cpuinfo and enable it by passing -msse to gcc. IMO the
configure checks can be removed, since the -msse and -mfpmath=sse (and probably
-msse3 too, but I'm not sure) are already enabled by default on amd64, which is
the only place where it's safe to enable SSE optimizations. ATM i386 seems to
build fine (without SSE) so this is not very urgent.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20130829/00adb977/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list