Repository navigation
[hipblaslt][G-F-A] fix MFMA_BF16_1K KeyError of install build #6217
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4743,7 +4743,7 @@ def readWriteVectors(mat, vw, kernel): | |
| elif not ( self.states.asmCaps["HasMFMA"] or self.states.asmCaps["HasWMMA"]): | ||
| raise RuntimeError("MatrixInstruction not supported for {0}".format(self.states.version)) | ||
|
|
||
| if kernel["MFMA_BF16_1K"] and not self.states.asmCaps["HasMFMA_bf16_1k"]: | ||
| if kernel.get("MFMA_BF16_1K") and not self.states.asmCaps["HasMFMA_bf16_1k"]: | ||
| raise RuntimeError("BF16_1k MatrixInstruction not supported for {0}".format(self.states.version)) | ||
|
Comment on lines
4744
to
4747
|
||
|
|
||
| if kernel["ProblemType"]["Sparse"] and not self.states.asmCaps["HasSMFMA"]: | ||
|
|
||
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.
isCustomKernelConfignow returnsTruewhenCustomKernelNameis set, but multiple call sites assumeTrueimpliesconfig["CustomKernel"]["name"]exists (e.g.Tensile/TensileLogic/HandleCustomKernel.py:52immediately indexessol["CustomKernel"]["name"]). With this change, configs that only setCustomKernelNamewill trigger aKeyError/TypeErrordownstream.Suggested fix: either (1) keep
isCustomKernelConfigstrictly tied to the presence ofCustomKernel.name, or (2) update downstream code to consistently derive the name viaconfig.get("CustomKernelName") or config.get("CustomKernel", {}).get("name")and, if needed, populateconfig["CustomKernel"]["name"]when onlyCustomKernelNameis provided.