Skip to content

Conversation

@meiravgri
Copy link
Collaborator

@meiravgri meiravgri commented Sep 2, 2025

This PR includes:

Manual backport of #505 to 0.6.

Changes from original PR:

  • 0.6 doesn't include:
    1. aligned memory allocations
    2. preprocess wrapper

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 return ARCH_OPT_NONE instead of detecting NEON/SVE optimizations 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

  • Problem: build_arm_funcs_array_fp32 initializes funcs array size with ARCH_OPT_SVE2 (value 3), but code was accessing funcs[ARCH_OPT_SVE2] (index 3), which is out of bounds for a 3-element array.
  • Solution: Added ARCH_OPT_SIZE = 4 as the last enum value of Arch_Optimization to represent the total count, then used it for array sizing.

@meiravgri meiravgri changed the title avoid vla [0.6] [MOD-7297] Replace Variable Length Array on stack with heap allocation Sep 2, 2025
alonre24
alonre24 previously approved these changes Sep 2, 2025
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.04%. Comparing base (e07f1ae) to head (8c395c9).
⚠️ Report is 1 commits behind head on 0.6.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

alonre24
alonre24 previously approved these changes Sep 2, 2025
@meiravgri meiravgri added this pull request to the merge queue Sep 2, 2025
github-merge-queue bot pushed a commit that referenced this pull request Sep 2, 2025
…ocation (#762)

* avoid vla

* install cmake only if doesnt exist
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@meiravgri meiravgri enabled auto-merge September 3, 2025 11:39
@meiravgri meiravgri requested a review from alonre24 September 3, 2025 11:43
ARCH_OPT_NEON,
ARCH_OPT_SVE,
ARCH_OPT_SVE2,
ARCH_OPT_SIZE,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ARCH_OPT_SIZE,
ARCH_OPT_EDGE,

or something like that, so it will be clearer that we are using the optimization in the test

@meiravgri meiravgri added this pull request to the merge queue Sep 3, 2025
Merged via the queue into 0.6 with commit 520531a Sep 3, 2025
20 checks passed
@meiravgri meiravgri deleted the backport-505-to-0.6 branch September 3, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants