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

[tune_gemm] Update the filter for LDS usage for stream-pipelineV2 #661

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

zhanglx13
Copy link

No description provided.

Copy link

@guacamoleo guacamoleo left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together so quick!

LDSB = BLOCK_SIZE_K * BLOCK_SIZE_N * elemBytes_b
if num_stages <= 1:
# No pipeline, buffer A and buffer B can re-use each other
LDS = min(LDSA, LDSB)

Choose a reason for hiding this comment

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

I think we want max(LDSA, LDSB) to be able to store the larger.

@jtang10
Copy link

jtang10 commented Nov 12, 2024

I'd suggest to still consider num_stages=0 for now, change it to 2 and add a warning for deprecation, considering some ppl might still be using older version.

@zhanglx13
Copy link
Author

I'd suggest to still consider num_stages=0 for now, change it to 2 and add a warning for deprecation, considering some ppl might still be using older version.

We have a warning here to make sure user will change num_stages = 0 to 2: https://github.com/triton-lang/triton/blob/9d6736a501d0499348d48d192b6260338ca19da0/third_party/amd/backend/compiler.py#L219

@zhanglx13 zhanglx13 requested a review from guacamoleo November 12, 2024 16:20
@zhanglx13 zhanglx13 requested a review from guacamoleo November 12, 2024 21:58
@zhanglx13 zhanglx13 merged commit 279cfa7 into main_perf Nov 13, 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.

3 participants