Bug#954917: Do not rely on autodetection for CPU optimisations (SSE, SSE3, AVX)

Sebastiaan Couwenberg sebastic at xs4all.nl
Wed Mar 25 09:54:40 GMT 2020


Control: tags -1 upstream wontfix
Control: severity -1 normal

On 3/25/20 10:39 AM, Laurent Bigonville wrote:
> I see that the configure is autodetecting at buildtime whether several
> CPU optimisations (SSE, SSE3, AVX) should be enabled or not.
> 
> I feel this is not OK as building the package on different hardware
> would result in different binaries being generated.
> 
> AFAICS, the code is detecting at runtime if the CPU is supporting these
> features, so I think that it's fine to force enable these 3 on i386 and
> amd64 and not rely on autodetection in the configure (and force disable
> them on the other architectures).
> 
> On x32 port, the package FTBFS due to an issue related to this.

Since the runtime detection is used, this doesn't seem like much of a
problem. With x32 not being a release architecture, even less so.

We could add `--with-sse=no --with-ssse3=no --with-avx=no` but there
doesn't seem to be real need for that.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Pkg-grass-devel mailing list