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

Post-MultiExpr Fusion in the equivalent domain #116

Merged
merged 17 commits into from
Sep 27, 2024

Conversation

hikettei
Copy link
Owner

@hikettei hikettei commented Sep 26, 2024

  • Post-MultiExpr (Completely Equivalent Domain)
  • Post-MultiExpr (where subdomain is the equivalent)
  • Index-Component-Fusion
  • Add the following transform pattern to EXPR:
  • More Restrict Schedule test in nn or ajit (e.g.: Embedding in one kernel)
  • matmul transpose fusion by multiexpr? (subdomain)
  • fix for double free (?) (rng-counter might be related to this)
val_445[(_gid0+0)] = (val_456_0^((val_445[(_gid0+0)]*32768)+(uint32_t)((float)val_445[(_gid0+0)]*7.6293945e-6)));
->
float _tmp_0 = val_445[_gid0+0];
val_445[_gid0+0] = (val_456_0^((_tmp_0*32768)+(uint32_t)((float)_tmp_0*7.6293945e-6)));
  • Fix: 6d transposed matmul scheduler

  • randn < 2 kernels including scalar parts

    • Tests for In-place Embedding, 2 Kernel Randn
    • Accuracy tests for RMSNorm, Embedding, etc ...
  • Deleting the dead code:

void main500811_e229_k0(uint32_t* val_400, uint32_t* val_123, uint32_t val_397) {
  (*val_123) = 4;
  (*val_400) = (val_397+(*val_123));
  uint32_t val_124 = (*val_400);
}

@hikettei hikettei changed the title wip: Post-MultiExpr Fusion Post-MultiExpr Fusion in the equivalent domain Sep 27, 2024
@hikettei hikettei marked this pull request as ready for review September 27, 2024 07:37
@hikettei hikettei merged commit e361c75 into main Sep 27, 2024
4 checks passed
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.

1 participant