commit | c75b6860e6c182f7fcfa0e1aaab4a552b1d12f24 | [log] [tgz] |
---|---|---|
author | Zhuoran Yin <zhuoryin@amd.com> | Wed Jan 08 13:37:04 2025 -0500 |
committer | GitHub <noreply@github.com> | Wed Jan 08 13:37:04 2025 -0500 |
tree | 5ee2df6b15117580c723127b2363d0f34b03a207 | |
parent | 7b9aa284500d1cef0711965ca5b45efd43ce9742 [diff] |
[GPU][Codegen] Allowing mfma for narrow problem config sizes (#19615) The motivation of this PR is convolution performance for resnet50 configs. With this PR (and a few pending ones), conv performance with igemm pipeline get decent speedup in situation where a standalone dimension size is smaller than intrinsic size. (Take dispatch 69 as example, the select tile m:7, n:512, k:4608 will be rejected from mfma because m tile is smaller than intrinsic size of 16). This happens because previously we are too defensive about when to use intrinsic: in situation when alignment is not required, we still enforce mfma to be picked up only when m/n/k tiles are all larger than intrinsic size. With @nirvedhmeshram's https://github.com/iree-org/iree/pull/19271 and https://github.com/iree-org/iree/pull/19484, padding is allowed in tile and fuse matmul and igemm tile and fuse pipelines, it is no longer necessary to be as conservative as before. I am therefore getting rid of the conditional check that blocks mfma from being picked up. This will impact a few pipelines that use `canTargetIntrinsic()`: - `LLVMGPUPadAndVectorDistribute` will allow narrow m/n/k dimension sizes for batch matmul - In `iree-codegen-rocdl-configuration-pipeline`, will allow narrow m/n/k dimension sizes for matmul (instead of warp reduction) --------- Signed-off-by: jerryyin <zhuoryin@amd.com>
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
Releases notes are published on GitHub releases.
Package | Release status |
---|---|
GitHub release (stable) | |
GitHub release (nightly) | |
Python iree-base-compiler | |
Python iree-base-runtime |
Operating system | Build status |
---|---|
Linux | |
macOS | |
Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
Date | Title | Recording | Slides |
---|---|---|---|
2021-06-09 | IREE Runtime Design Tech Talk | recording | slides |
2020-08-20 | IREE CodeGen (MLIR Open Design Meeting) | recording | slides |
2020-03-18 | Interactive HAL IR Walkthrough | recording | |
2020-01-31 | End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting) | recording | slides |
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.