Bug 1223168 - dlib: compile time CPU detection
Summary: dlib: compile time CPU detection
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Atri Bhattacharya
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1100677
  Show dependency treegraph
 
Reported: 2024-04-21 06:55 UTC by Bernhard Wiedemann
Modified: 2024-04-22 07:26 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2024-04-21 06:55:13 UTC
While working on reproducible builds for openSUSE, I found that
our dlib package build results depend on the build machine's CPU capabilities.

This is likely related to this buildroot diff:

dlib-19.24.4/build/temp.linux-x86_64-cpython-311/CMakeCache.txt
@@ -474,7 +474,7 @@
 PYTHON_LIBRARY:FILEPATH=/usr/lib64/libpython3.11.so

 //Compile your program with AVX instructions
-USE_AVX_INSTRUCTIONS:BOOL=ON
+USE_AVX_INSTRUCTIONS:BOOL=OFF


Please ensure AVX is used consistently - never or always.
Comment 1 Atri Bhattacharya 2024-04-21 15:46:14 UTC
Appreciate the report. Fix on its way:
https://build.opensuse.org/request/show/1169495
Comment 2 Atri Bhattacharya 2024-04-22 07:26:03 UTC
Fix was accepted into devel project and is on its way to Factory. Thanks Bernhard for checking that the fix works.

Marking as resolved.