Skip to content

CI: CodSpeed w/ AVX2 - #1634

Merged
ax3l merged 2 commits into
BLAST-ImpactX:developmentfrom
ax3l:ci-avx2-codspeed
Aug 25, 2026
Merged

CI: CodSpeed w/ AVX2#1634
ax3l merged 2 commits into
BLAST-ImpactX:developmentfrom
ax3l:ci-avx2-codspeed

Conversation

@ax3l

@ax3l ax3l commented Aug 25, 2026

Copy link
Copy Markdown
Member

AVX2 is a subset of the CPU features we know exist in -march=x86-64-v3 and are always present on GH action x86-64 cloud runners. Confuses measurements to compile for them and disable at runtime.

Seen as an issue in #1632

AVX2 has been on every Intel Xeon since Haswell (2013) and every AMD EPYC since Zen 1 (2017), which covers every CPU family Azure has ever backed these runners with.

AVX2 is a subset of the CPU features we know exist in
`-march=x86-64-v3` and are always present on GH action x86-64
cloud runners. Confuses measurements to compile for them and
disable at runtime.
@ax3l ax3l added Performance optimization component: tests examples, tests and benchmarks backend: SIMD CPU with SIMD acceleration labels Aug 25, 2026
Comment thread .github/workflows/ubuntu.yml Outdated
Some of the newer GH runners support AVX152

Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
@codspeed-hq

codspeed-hq Bot commented Aug 25, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 11.05%

⚠️ 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

⚡ 13 improved benchmarks
✅ 57 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
test_ExactCFbend[spin] 48.5 ms 41.2 ms +17.65%
test_PolygonAperture[nospin] 8.9 ms 7.7 ms +16.39%
test_PolygonAperture[spin] 8.9 ms 7.7 ms +16.38%
test_ExactCFbend[nospin] 23.2 ms 19.9 ms +16.24%
test_NonlinearLens[nospin] 1.4 ms 1.3 ms +12.61%
test_NonlinearLens[spin] 2.6 ms 2.4 ms +10.35%
test_Sol[spin] 2.2 ms 2 ms +9.34%
test_Sbend[spin] 2.1 ms 1.9 ms +9.18%
test_ExactQuad[nospin] 5.2 ms 4.9 ms +7.83%
test_space_charge_solver[3D_fft] 330.1 ms 307.6 ms +7.32%
test_space_charge_solver[2p5D_fft] 195.7 ms 182.6 ms +7.13%
test_SoftQuadrupole[spin] 823.5 µs 769.1 µs +7.07%
test_space_charge_solver[2D_fft] 197.4 ms 184.4 ms +7.06%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ax3l:ci-avx2-codspeed (3f05481) with development (92ccb0d)

Open in CodSpeed

@ax3l
ax3l merged commit e11fd54 into BLAST-ImpactX:development Aug 25, 2026
18 checks passed
@ax3l
ax3l deleted the ci-avx2-codspeed branch August 25, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend: SIMD CPU with SIMD acceleration component: tests examples, tests and benchmarks Performance optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant