Bug 1223168

Summary: dlib: compile time CPU detection
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bernhard Wiedemann <bwiedemann>
Component: OtherAssignee: Atri Bhattacharya <badshah400>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1100677    

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.