-
Notifications
You must be signed in to change notification settings - Fork 663
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
[DT][GPU] Implement EncodingLayoutResolverAttrInterface for GPUEncodingLayoutAttr. #20027
Conversation
compiler/src/iree/compiler/Dialect/Encoding/IR/EncodingInterfaces.td
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/SpecializeEncodings.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/ExternalInterfaces/GPUEncodingExternalModels.cpp
Outdated
Show resolved
Hide resolved
d88b61c
to
4eb88b9
Compare
compiler/src/iree/compiler/Codegen/Common/MaterializeEncoding.cpp
Outdated
Show resolved
Hide resolved
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.
Thanks for addressing the comment, it looks better to me!
compiler/src/iree/compiler/Codegen/ExternalInterfaces/GPUEncodingExternalModels.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/ExternalInterfaces/GPUEncodingExternalModels.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
4eb88b9
to
2c6a819
Compare
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 good, just few final nits.
2c6a819
to
7116165
Compare
7116165
to
0447670
Compare
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.
LGTM, just two final nits.
btw, can you update the PR description to reflect the changes? I think we also update the parameters of GPUEncodingLayout
, and we need the update and why in the PR description.
compiler/src/iree/compiler/Codegen/Common/MaterializeEncoding.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Dialect/Stream/Transforms/test/specialize_encodings.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/test/gpu_materialize_encoding_gfx942.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/test/gpu_materialize_encoding_gfx942.mlir
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/test/gpu_materialize_encoding_gfx942.mlir
Show resolved
Hide resolved
0447670
to
4f00a07
Compare
Signed-off-by: Jorn Tuyls <[email protected]>
4f00a07
to
b6a0d81
Compare
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.
LGTM, thanks!
Implements the EncodingLayoutAttrInterface (
cloneWithSimplifiedConfig
andgetLayout
methods) for GPU.This replaces the
targetAttr
field inGPUEncodingLayoutAttr
with a dictionary for storing the serialized encoding info.This PR also removes an unused /unneeded
encoding = #iree_cpu.cpu_encoding_layout<>
attribute from the llvmcpu encoding materialization tests which leads to confusion on what this does.I will implement the SerializedEncodingLayoutAttrInterface in a separate PR.