Add build variants with conditional compilation#11
Merged
5000user5000 merged 1 commit intomainfrom Nov 9, 2025
Merged
Conversation
- Support naive/openmp/simd/full build targets - Use ENABLE_SIMD and ENABLE_OPENMP flags
Closed
5000user5000
commented
Nov 9, 2025
Owner
Author
5000user5000
left a comment
There was a problem hiding this comment.
可以參考目前 make 支援選項,選擇要測試單種加速或是所有加速的加成
Comment on lines
+127
to
+143
| help: | ||
| @echo "ZenANN Build System - Multiple Optimization Versions" | ||
| @echo "" | ||
| @echo "Available targets:" | ||
| @echo " make naive - Build naive version (no parallelization)" | ||
| @echo " make openmp - Build OpenMP-only version" | ||
| @echo " make simd - Build SIMD-only version (AVX2)" | ||
| @echo " make full - Build fully optimized version (OpenMP + SIMD)" | ||
| @echo " make cuda - Build CUDA version (not yet implemented)" | ||
| @echo " make all - Build full version (default)" | ||
| @echo " make clean - Remove all built files" | ||
| @echo "" | ||
| @echo "Note: All versions output to build/zenann.so" | ||
| @echo "Each build will overwrite the previous one." | ||
| @echo "" | ||
| @echo "Usage:" | ||
| @echo " import build.zenann as zenann # Always works regardless of version" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Goal