Add scheduled inverse-residue execution and AVX2 fused d4 inverse codelet#35
Closed
falseywinchnet wants to merge 2 commits into
Closed
Conversation
…nverse-performance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
INV_RES_SCHEDULEstorage and implementbuild_inverse_residue_schedule()to reverseFWD_RES_SCHEDULEand append the final inverseFWD_OP_BINOMIAL, and call it frombuild_forward_schedules()by addingif (!build_inverse_residue_schedule()) return false;.run_inv_residue_schedule_f32andrun_inv_residue_schedulethat iterateINV_RES_SCHEDULEwith prefetch hints and aswitch-based dispatch, and use them ininverse_residues_recursive_f32andinverse_residues_recursivewhenBRUUN_LEVEL == 1.codelet_d3_tw_res_inv_avx2_core, add a fusedcodelet_d4_inv_avx2that merges two child leaves and applies the q==8 inverse before stores, and adaptcodelet_d3_tw_res_invto call the new core on AVX2 builds.inverse_acceleration_notes.txtdocumenting the design decisions, gating strategy, and follow-up tasks.Testing
doubleandfloatacross a range of transform sizes, and the tests passed.BRUUN_LEVELvariants to validate both scheduled and fused-inverse paths, and the builds/tests completed successfully.Codex Task