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

[Dev] Bug fix for Block Reduce Template and improve TL #183

Merged
merged 58 commits into from
Sep 17, 2024

Conversation

LeiWang1999
Copy link
Contributor

Fix bugs for incorrect thread binding and assignment for K Tile Size.

Improve TL Pass MergeStaticSharedMemory to Handle complex Memory Planing (For example, Stream-K).

Enhance LowerThreadAllReduce Pass to Auto Select Memory Scope based on the IR Script.

@LeiWang1999
Copy link
Contributor Author

Also enhance auto tune.

@autotune(configs=get_configs(), keys=['block_row_warps', 'block_col_warps', 'warp_rows', 'warp_cols', 'chunk', 'reduce_k', 'num_stages', 'splitk_factor'], warmup=5, rep=20)
    @jit(out_idx=[2], supply_type=tl.TensorSupplyType.Normal, ref_prog=ref_program, rtol=1, skip_check=True, profiler='tvm')

Now we have profiler option ['tvm', 'torch'] to enable accurate kernel profile with TVM Runtime.

Also introduce tqdm to reveal the tune proc.
image

@LeiWang1999 LeiWang1999 merged commit 916a54c into microsoft:main Sep 17, 2024
6 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