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

[Codegen][Tuner] Add support for per-sku tuning spec #19762

Merged
merged 9 commits into from
Jan 24, 2025

Conversation

bangtianliu
Copy link
Contributor

This PR implements support for per-sku tuning specs, and nd then per-architecture as a fallback, which is relevant to task outlined in #19720.

@bangtianliu bangtianliu requested a review from kuhar January 22, 2025 20:46
Signed-off-by: Bangtian Liu <[email protected]>
@bangtianliu bangtianliu requested a review from kuhar January 23, 2025 02:05
@bangtianliu bangtianliu force-pushed the support_per_sku branch 3 times, most recently from 8019bb2 to 976d388 Compare January 23, 2025 17:26
@bangtianliu bangtianliu requested a review from kuhar January 23, 2025 17:27
@bangtianliu bangtianliu force-pushed the support_per_sku branch 2 times, most recently from 1483a9c to 95a46e2 Compare January 23, 2025 18:55
Signed-off-by: Bangtian Liu <[email protected]>
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Looks much better now

@bangtianliu bangtianliu requested a review from kuhar January 23, 2025 21:01
Signed-off-by: Bangtian Liu <[email protected]>
@bangtianliu bangtianliu requested a review from kuhar January 23, 2025 21:51
Signed-off-by: Bangtian Liu <[email protected]>
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

This LGTM % the minor issue above. But let's wait for one more approval before landing, maybe from @MaheshRavishankar or @qedawkins.

Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
@bangtianliu bangtianliu requested a review from kuhar January 24, 2025 15:26
// RUN: iree-opt --split-input-file --iree-gpu-test-target=mi300x@hip \
// RUN: --pass-pipeline="builtin.module(hal.executable(hal.executable.variant(iree-hal-configure-target-executable-variants{target=rocm})))" \
// RUN: --iree-codegen-enable-default-tuning-specs \
// RUN: --iree-codegen-notify-transform-strategy-application \
Copy link
Contributor

Choose a reason for hiding this comment

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

I missed when this flag was added, but it should be named --iree-codegen-test and/or be hidden or something. Not for this PR though.

@bangtianliu bangtianliu merged commit ec6e00b into iree-org:main Jan 24, 2025
40 checks passed
kuhar added a commit to kuhar/iree that referenced this pull request Jan 25, 2025
Add the product name (SKU) naming scheme and explain the difference
compared to the architecture scheme. This scheme has been supported for
a while but not documented. We expect it to become more relevant after
the work related to SKU-specific default tuning specs:
iree-org#19762.

Issue: iree-org#19720
Signed-off-by: Jakub Kuderski <[email protected]>
kuhar added a commit to kuhar/iree that referenced this pull request Jan 25, 2025
This flag is intended for tests only.
Rename it and mark as it as hidden.

Requested by @qedawkins in
iree-org#19762 (comment).

Signed-off-by: Jakub Kuderski <[email protected]>
kuhar added a commit that referenced this pull request Jan 25, 2025
This flag is intended for tests only. Rename it and mark as it as
hidden.

Requested by @qedawkins in
#19762 (comment).

Issue: #19720

Signed-off-by: Jakub Kuderski <[email protected]>
kuhar added a commit that referenced this pull request Jan 25, 2025
Add the product name (SKU) naming scheme and explain the difference
compared to the architecture scheme. This scheme has been supported for
a while but not documented. We expect it to become more relevant after
the work related to SKU-specific default tuning specs:
#19762.

Issue: #19720

Signed-off-by: Jakub Kuderski <[email protected]>
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