Skip to content

Fuse the OpenMP 110 spectral passes (#407) - #499

Merged
kaanolgu merged 3 commits into
mainfrom
407-fuse-omp-110-spectral
Nov 26, 2026
Merged

kaanolgu merged 3 commits into
mainfrom
407-fuse-omp-110-spectral

Conversation

@kaanolgu

Copy link
Copy Markdown
Collaborator

Closes #407

Fuse the OpenMP 110 spectral passes. Each of process_spectral_110_fw, process_spectral_110_solve and process_spectral_110_bw now does one loop over the mode pairs. The interfaces do not change, so the multirank path is the same as before

The table gives the time per call of process_spectral_110 on one CPU node with 48 OpenMP threads. Each value is the median of 50 calls

grid main (ms) fused (ms) speedup
128^3 1.49-1.54 0.95-1.03 1.5x
256^3 16.6-16.8 9.8-9.9 1.7x

The largest difference between the fused output and main is 1.5e-20. The test_poisson_bc tests pass. On the 257x129x64 cylinder 110 case, the time per step does not change and the enstrophy agrees with main to 1e-15

@kaanolgu
kaanolgu requested a review from ia267 November 23, 2026 11:02
@ia267 ia267 added the enhancement New feature or request label Nov 25, 2026
@ia267 ia267 added this to the Version 0.1.0 milestone Nov 25, 2026
@kaanolgu
kaanolgu merged commit ce79e1c into main Nov 26, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuse the OpenMP 110 spectral passes

2 participants