Skip to content

Conversation

@CongMa13
Copy link
Collaborator

@CongMa13 CongMa13 commented Jan 19, 2026

Proposed changes

Refactor ck tile sequence_reverse_inclusive_scan from recursive to for-loop.

Tracking issue: #3575

@tenpercent
Copy link
Contributor

Thanks! Could you also measure the build metrics improvements, e.g. number of templates instantiated, or wall time improvement for some target?

template <index_t I, index_t... Is, typename Reduce, index_t Init>
struct sequence_reverse_inclusive_scan<sequence<I, Is...>, Reduce, Init>
template <index_t... Is, typename Reduce, index_t Init>
struct sequence_reverse_inclusive_scan_impl<sequence<Is...>, Reduce, Init>
Copy link
Contributor

Choose a reason for hiding this comment

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

re: implementation, would it help to have separate compile-time functions for sequence reversal (constexpr function with c-array initialized with variadic indices and then reverse using a for-loop logic) and scan (with a similar structure)?

- Add trivial_array for template programming
- Add unit tests of sequence
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.

3 participants