Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor dispatch #38

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from
Open

Conversation

tenpercent
Copy link
Collaborator

@tenpercent tenpercent commented Dec 5, 2024

What does this PR do?

Mark the template dispatch parameters with named types to make the compiled symbols more readable.
E.g. batched_infer_mask_bias_dropout_dispatch<unsigned short, has_mask_t<true>, has_bias_t<false>, has_dropout_t<true>, max_head_dimension_t<64> >::Run(... instead of batched_infer_mask_bias_dropout_dispatch<unsigned short, true, false, true, 64 >::Run(

Also enable offload compression to reduce the compiled binary size approximately 2x

Fix CI issues related to build failures (WIP)

Fix lints

@tenpercent tenpercent requested a review from qianfengz December 5, 2024 00:27
Comment on lines 13 to 27
template <bool v>
struct has_mask_t : ck_tile::bool_constant<v> {};

template <bool v>
struct has_bias_t : ck_tile::bool_constant<v> {};

template <bool v>
struct has_dropout_t : ck_tile::bool_constant<v> {};

template <ck_tile::index_t v>
struct max_head_dimension_t : ck_tile::integral_constant<ck_tile::index_t, v> {
};

template <ck_tile::index_t v>
struct max_query_seqlen_t : ck_tile::integral_constant<ck_tile::index_t, v> {};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you put these definitions in a common file ?

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.

2 participants