Skip to content

Fix simd reshape lazy view - #2930

Open
Alex-PLACET wants to merge 10 commits into
xtensor-stack:masterfrom
Alex-PLACET:fix-simd-reshape-lazy-view
Open

Fix simd reshape lazy view#2930
Alex-PLACET wants to merge 10 commits into
xtensor-stack:masterfrom
Alex-PLACET:fix-simd-reshape-lazy-view

Conversation

@Alex-PLACET

Copy link
Copy Markdown
Contributor

Fix: #2929
provides_simd_interface now also requires the storage to expose lvalue references, so lazybacked strided views fall back to the scalar assign path. Container-backed views keep their SIMD path unchanged.

@Alex-PLACET Alex-PLACET self-assigned this Aug 24, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 1.66%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 253 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation xshape_access[std\:\:array<std\:\:size_t, 4>] 125.3 ns 154.4 ns -18.88%
Simulation xshape_initializer[std\:\:array<std\:\:size_t, 4>] 180.8 ns 151.7 ns +19.23%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing Alex-PLACET:fix-simd-reshape-lazy-view (d8553ad) with master (01798fa)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (37f1372) during the generation of this report, so 01798fa was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@Alex-PLACET

Copy link
Copy Markdown
Contributor Author

The codspeed benchmark regression report is not related to the modifications.

@Alex-PLACET
Alex-PLACET marked this pull request as ready for review August 24, 2026 15:47
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.

XTENSOR_USE_XSIMD: hard compile error for reshape_view over a lazy expression (lvalue required as unary '&' in xstrided_view::load_simd)

1 participant