-
Notifications
You must be signed in to change notification settings - Fork 22
[0.6] [MOD-7297] Replace Variable Length Array on stack with heap allocation #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 0.6 #762 +/- ##
==========================================
+ Coverage 95.03% 95.04% +0.01%
==========================================
Files 60 60
Lines 3425 3432 +7
==========================================
+ Hits 3255 3262 +7
Misses 170 170 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ocation (#762) * avoid vla * install cmake only if doesnt exist
| ARCH_OPT_NEON, | ||
| ARCH_OPT_SVE, | ||
| ARCH_OPT_SVE2, | ||
| ARCH_OPT_SIZE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ARCH_OPT_SIZE, | |
| ARCH_OPT_EDGE, |
or something like that, so it will be clearer that we are using the optimization in the test
This PR includes:
Manual backport of #505 to 0.6.
Changes from original PR:
Additional fixes:
Backport #754 to allow building on macOS
Install cmake only if it not present.
Bump cpu_features version from v0.9.0 to v0.10.1.
The previous version had a bug that caused
getArchitectureOptimization()to returnARCH_OPT_NONEinstead of detectingNEON/SVEoptimizations on macOS ARM64, particularly affecting macOS 15 runners. This was fixed in cpu_features v0.10.0 with PR #321 "fix: macos aarch64 detection" (see release notes under Bug Fixes).Fixed out of bound write in test_spaces.cpp
build_arm_funcs_array_fp32initializesfuncsarray size withARCH_OPT_SVE2(value 3), but code was accessingfuncs[ARCH_OPT_SVE2](index 3), which is out of bounds for a 3-element array.ARCH_OPT_SIZE = 4as the last enum value ofArch_Optimizationto represent the total count, then used it for array sizing.