Skip to content

Conversation

@5000user5000
Copy link
Owner

@5000user5000 5000user5000 commented Nov 9, 2025

Summary

  • Support naive/openmp/simd/full build targets
  • Use ENABLE_SIMD and ENABLE_OPENMP flags

Goal

  • To make it easier to test performance across different versions

  - Support naive/openmp/simd/full build targets
  - Use ENABLE_SIMD and ENABLE_OPENMP flags
@5000user5000 5000user5000 added the enhancement New feature or request label Nov 9, 2025
@5000user5000 5000user5000 mentioned this pull request Nov 9, 2025
Copy link
Owner Author

@5000user5000 5000user5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以參考目前 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"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make help
說明 make 選項

@5000user5000 5000user5000 merged commit e8ca93d into main Nov 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants