Repository navigation
Support GEMM Pipelining *without* Epilogue Peeling - #10388
Merged
Merged
Conversation
manishucsd
requested review from
MaheshRavishankar and
benvanik
as code owners
September 13, 2022 20:59
ThomasRaoux
reviewed
Sep 14, 2022
ThomasRaoux
reviewed
Sep 14, 2022
manishucsd
force-pushed
the
epilogue_peeling_false
branch
8 times, most recently
from
September 15, 2022 04:10
c4a783c to
993f1f6
Compare
ThomasRaoux
reviewed
Sep 15, 2022
Contributor
manishucsd
force-pushed
the
epilogue_peeling_false
branch
from
September 15, 2022 15:30
993f1f6 to
19c3e5f
Compare
ThomasRaoux
approved these changes
Sep 15, 2022
manishucsd
pushed a commit
that referenced
this pull request
Jan 23, 2023
…atrix] (#11817) Adds native Tensor Core (F16) support for NVIDIA GPUs. Specifically, adds support to target `mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16` and `ldmatrix` instructions on NVIDIA A100 GPUs. For now, these instructions are not enabled by default and requires using (`--iree-codegen-llvmgpu-use-mma-sync=true`). IREE runs row-row matmul and the native Tensor Core support requires `ldmatrix` for operandA and `ldmatrix.trans` for operandB. `ldmatrix.trans` transposes the data while loading to use Tensor Core `mma*row.col*` instruction. There are LLVM/MLIR upstream pathes and previous IREE PRs that enable targeting native Tensor Core F16 support. A few LLVM/MLIR upstream patches: - [[mlir][NVGPU] Adding Support for cp_async_zfill via Inline Asm](https://reviews.llvm.org/D132269) - [[mlir][NVGPU] Handle Native mma.sync sizes and ldmatrix(x4) for matrixB](https://reviews.llvm.org/D135749) - [[mlir][NVGPU] Fix affine maps computing indices for LdMatrixOp srcMemref](https://reviews.llvm.org/D138978) - [[mlir][NVGPU] Fix NVGPU Bazel Layering](https://reviews.llvm.org/D141982) Previous IREE PRs: - [Support GEMM Pipelining *without* Epilogue Peeling](#10388) - [Add support for GEMM e2e Test For CUDA backend on F16 input](#10842)
qedawkins
pushed a commit
to qedawkins/iree
that referenced
this pull request
Apr 2, 2023
…atrix] (iree-org#11817) Adds native Tensor Core (F16) support for NVIDIA GPUs. Specifically, adds support to target `mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16` and `ldmatrix` instructions on NVIDIA A100 GPUs. For now, these instructions are not enabled by default and requires using (`--iree-codegen-llvmgpu-use-mma-sync=true`). IREE runs row-row matmul and the native Tensor Core support requires `ldmatrix` for operandA and `ldmatrix.trans` for operandB. `ldmatrix.trans` transposes the data while loading to use Tensor Core `mma*row.col*` instruction. There are LLVM/MLIR upstream pathes and previous IREE PRs that enable targeting native Tensor Core F16 support. A few LLVM/MLIR upstream patches: - [[mlir][NVGPU] Adding Support for cp_async_zfill via Inline Asm](https://reviews.llvm.org/D132269) - [[mlir][NVGPU] Handle Native mma.sync sizes and ldmatrix(x4) for matrixB](https://reviews.llvm.org/D135749) - [[mlir][NVGPU] Fix affine maps computing indices for LdMatrixOp srcMemref](https://reviews.llvm.org/D138978) - [[mlir][NVGPU] Fix NVGPU Bazel Layering](https://reviews.llvm.org/D141982) Previous IREE PRs: - [Support GEMM Pipelining *without* Epilogue Peeling](iree-org#10388) - [Add support for GEMM e2e Test For CUDA backend on F16 input](iree-org#10842)
jpienaar
pushed a commit
that referenced
this pull request
May 1, 2023
…atrix] (#11817) Adds native Tensor Core (F16) support for NVIDIA GPUs. Specifically, adds support to target `mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16` and `ldmatrix` instructions on NVIDIA A100 GPUs. For now, these instructions are not enabled by default and requires using (`--iree-codegen-llvmgpu-use-mma-sync=true`). IREE runs row-row matmul and the native Tensor Core support requires `ldmatrix` for operandA and `ldmatrix.trans` for operandB. `ldmatrix.trans` transposes the data while loading to use Tensor Core `mma*row.col*` instruction. There are LLVM/MLIR upstream pathes and previous IREE PRs that enable targeting native Tensor Core F16 support. A few LLVM/MLIR upstream patches: - [[mlir][NVGPU] Adding Support for cp_async_zfill via Inline Asm](https://reviews.llvm.org/D132269) - [[mlir][NVGPU] Handle Native mma.sync sizes and ldmatrix(x4) for matrixB](https://reviews.llvm.org/D135749) - [[mlir][NVGPU] Fix affine maps computing indices for LdMatrixOp srcMemref](https://reviews.llvm.org/D138978) - [[mlir][NVGPU] Fix NVGPU Bazel Layering](https://reviews.llvm.org/D141982) Previous IREE PRs: - [Support GEMM Pipelining *without* Epilogue Peeling](#10388) - [Add support for GEMM e2e Test For CUDA backend on F16 input](#10842)
rengolin
pushed a commit
to plaidml/iree
that referenced
this pull request
May 2, 2023
…atrix] (iree-org#11817) Adds native Tensor Core (F16) support for NVIDIA GPUs. Specifically, adds support to target `mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16` and `ldmatrix` instructions on NVIDIA A100 GPUs. For now, these instructions are not enabled by default and requires using (`--iree-codegen-llvmgpu-use-mma-sync=true`). IREE runs row-row matmul and the native Tensor Core support requires `ldmatrix` for operandA and `ldmatrix.trans` for operandB. `ldmatrix.trans` transposes the data while loading to use Tensor Core `mma*row.col*` instruction. There are LLVM/MLIR upstream pathes and previous IREE PRs that enable targeting native Tensor Core F16 support. A few LLVM/MLIR upstream patches: - [[mlir][NVGPU] Adding Support for cp_async_zfill via Inline Asm](https://reviews.llvm.org/D132269) - [[mlir][NVGPU] Handle Native mma.sync sizes and ldmatrix(x4) for matrixB](https://reviews.llvm.org/D135749) - [[mlir][NVGPU] Fix affine maps computing indices for LdMatrixOp srcMemref](https://reviews.llvm.org/D138978) - [[mlir][NVGPU] Fix NVGPU Bazel Layering](https://reviews.llvm.org/D141982) Previous IREE PRs: - [Support GEMM Pipelining *without* Epilogue Peeling](iree-org#10388) - [Add support for GEMM e2e Test For CUDA backend on F16 input](iree-org#10842)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AsyncCopyOp) for the last fewgemm-k-iterations.AsyncCopyOpwith zfill to handle OOB access on the last fewgemm-k-iterationsthat moves from peeled epilogue to the GEMM mainloop for an unpeeled epilogue.epilogue-peeling=<bool>) toGPUPipeliningPassto switch between peeled and unpeeled epilogue.epilogue-peelingis set totrueby default, for now, in order to not change the current wmma-based GEMMs, unpeeled epilogue has proven to improve performance of mma.sync-based GEMMs.