Source: gf-complete
Severity: wishlist
X-Debbugs-CC: b...@debian.org

Dear Maintainer,

I would like to propose to enable SSE3/SSE4 again on amd64.

Previously it was disabled due to https://bugs.debian.org/894670

Quote from bunk:

        You cannot pass -mfpu or -msse functions to gcc when compiling
        a file unless the complete contents of the file is protected
        by runtime protection elsewhere.


Upstream is not active, so it's unlikely to let them rewrite the code.

But we can do test to ensure the runtime detection working on machine
lacking of SIMD(also suggested in
http://lab.jerasure.org/jerasure/gf-complete/issues/16 ).

For example, we can use qemu to test during build.

$ qemu-x86_64-static -cpu qemu64,-sse3,-sse2 bin/gf_div 1 2 3
5
$ qemu-x86_64-static -cpu qemu64,-sse3 bin/gf_div 1 2 3
#gf_cpu_supports_intel_sse2
5
$ qemu-x86_64-static -cpu qemu64 bin/gf_div 1 2 3
#gf_cpu_supports_intel_sse3
#gf_cpu_supports_intel_sse2
5
$ qemu-x86_64-static -cpu qemu64,+sse4.1 bin/gf_div 1 2 3
#gf_cpu_supports_intel_sse4
#gf_cpu_supports_intel_sse3
#gf_cpu_supports_intel_sse2
5
$ qemu-x86_64-static -cpu qemu64,+sse4.2 bin/gf_div 1 2 3
#gf_cpu_supports_intel_sse4
#gf_cpu_supports_intel_sse3
#gf_cpu_supports_intel_sse2
5

qemu-x86_64-static is from package qemu-user-static.
The '#gf_cpu_supports_xxx' line is printed if configured with --enable-debug-cpu

also CCed bunk, I want to know if there's any objection.

Thanks

Attachment: signature.asc
Description: PGP signature

Reply via email to