-
Notifications
You must be signed in to change notification settings - Fork 647
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
Conversation
Signed-off-by: Bangtian Liu <[email protected]>
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Bangtian Liu <[email protected]>
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.td
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.td
Outdated
Show resolved
Hide resolved
Signed-off-by: Bangtian Liu <[email protected]>
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
8019bb2
to
976d388
Compare
1483a9c
to
95a46e2
Compare
Signed-off-by: Bangtian Liu <[email protected]>
There was a problem hiding this 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
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Bangtian Liu <[email protected]>
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/MaterializeTuningSpecsPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.td
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Bangtian Liu <[email protected]>
There was a problem hiding this 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]>
8c5ff94
to
e7dd660
Compare
Signed-off-by: Bangtian Liu <[email protected]>
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/KnownTargets.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Bangtian Liu <[email protected]>
// 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 \ |
There was a problem hiding this comment.
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.
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]>
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]>
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]>
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]>
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.