Skip to content

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Nov 26, 2025

For the tests to make sense, some vectors need to be longer than the
maximum small vector size. This maximum size is compiler and
architecture dependent. For RVec<int> on ARM64 with gcc 14, the
small vector capacity turns out to be 60, which is larger than the
current test vector size of 18.

Therefore, the test is refactored to adapt the large vector size
automatically, according to the maximum small vector size.

We can see in another PR how the commit in this PR would be doing on Alma 10 ARM 64 (gcc 14):

@github-actions
Copy link

github-actions bot commented Nov 27, 2025

Test Results

    22 files      22 suites   3d 21h 2m 39s ⏱️
 3 777 tests  3 777 ✅ 0 💤 0 ❌
81 186 runs  81 186 ✅ 0 💤 0 ❌

Results for commit bd71f9b.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek changed the title [vecops] Increase size of long test RVec instances in RVec test [vecops] Increase size of long RVec instances in RVec test Nov 27, 2025
For the tests to make sense, some vectors need to be longer than the
maximum small vector size. This maximum size is compiler and
architecture dependent. For `RVec<int>` on ARM64 with gcc 14, the
small vector capacity turns out to be 60, which is larger than the
current test vector size of 18.

Therefore, the test is refactored to adapt the large vector size
automatically, according to the maximum small vector size.
@guitargeek guitargeek changed the title [vecops] Increase size of long RVec instances in RVec test [vecops] Adaptive size of long RVec instances in RVec test Nov 27, 2025
Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

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

Thanks!

@guitargeek guitargeek merged commit b3dbec2 into root-project:master Nov 27, 2025
28 of 29 checks passed
@guitargeek guitargeek deleted the rvec_tests branch November 27, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants