[Bug 1222752] New: ugrep: build results depend on CPU
https://bugzilla.suse.com/show_bug.cgi?id=1222752 Bug ID: 1222752 Summary: ugrep: build results depend on CPU Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: All Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: Andreas.Stieger@gmx.de Reporter: bwiedemann@suse.com QA Contact: qa-bugs@suse.de Blocks: 1100677 Target Milestone: --- Found By: Development Blocker: --- While working on reproducible builds for openSUSE, I found that our ugrep binaries depend on the build machine CPU again. It seems SR 1166721 reverted my previous SR 818786 related: https://github.com/Genivia/ugrep/pull/50 CPU march=native ; partial fix The buildroot diff shows +++ /home/abuild/rpmbuild/BUILD.unsorted/ugrep-5.1.4/Makefile @@ -327,9 +327,9 @@ SED = /usr/bin/sed SET_MAKE = SHELL = /usr/bin/bash -SIMD_AVX2_FLAGS = -mavx2 +SIMD_AVX2_FLAGS = SIMD_AVX512BW_FLAGS = -SIMD_FLAGS = -msse2 -DHAVE_AVX2 +SIMD_FLAGS = -msse2 -DHAVE_SSE2 There are multiple ways to solve that: - never use AVX2 (as before) - always use AVX2 - detect AVX2 at runtime instead of compile-time -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222752 https://bugzilla.suse.com/show_bug.cgi?id=1222752#c1 --- Comment #1 from Andreas Stieger <Andreas.Stieger@gmx.de> --- I was under the impression that upstream implemented run-time detection correctly. Do you know where binary differences are? The following are supposed to be selected at run-time: lib/matcher.cpp lib/matcher_avx2.cpp lib/matcher_avx512bw.cpp Also is the following constraint not forcing the correct CPU so that the binary result is always the same?
#!BuildConstraint: hardware:cpu:flag x86-64-v3
Does the binary differ even when taking that into account? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222752 https://bugzilla.suse.com/show_bug.cgi?id=1222752#c3 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #3 from Andreas Stieger <Andreas.Stieger@gmx.de> --- I am no longer maintaining this package. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com