Repository navigation
Functional support mma.sync + ldmatrix for F16 datatype - #11817
Merged
Merged
Conversation
manishucsd
requested review from
MaheshRavishankar and
ThomasRaoux
as code owners
January 12, 2023 19:12
ThomasRaoux
reviewed
Jan 12, 2023
manishucsd
force-pushed
the
unrolling_mma_ops_jan_1
branch
2 times, most recently
from
January 12, 2023 20:05
c6b091b to
5c298bd
Compare
Collaborator
|
Drive by: Please add some description (people do see and appreciate PR hygeine) |
manishucsd
force-pushed
the
unrolling_mma_ops_jan_1
branch
4 times, most recently
from
January 12, 2023 23:19
65f4742 to
028a137
Compare
Contributor
Author
Thank you for bringing this to my attention. I was hoping to start this PR and start CI pipelines, clean it, and add the description as I finalize the PR by fixing build issues and incorporating review comments. Not fully ready to merge yet, but added the description. I will add the description as the first thing from the next time :). |
manishucsd
force-pushed
the
unrolling_mma_ops_jan_1
branch
6 times, most recently
from
January 18, 2023 07:04
576a7d2 to
57d7211
Compare
Contributor
Author
|
Thanks for taking a look at this PR. We are waiting for iree llvm-integrate to include the latest upstream NGPU Bazel layering patch. Once the llvm-integrate has the Bazel patch, @manishucsd will rebase and merge this PR. |
added 11 commits
January 20, 2023 16:59
… -> output vectorized IR)
…s, llvmgpuUseMMASync);
added 14 commits
January 20, 2023 16:59
manishucsd
force-pushed
the
unrolling_mma_ops_jan_1
branch
from
January 21, 2023 01:29
f2e0559 to
6ae2f7f
Compare
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.
Adds native Tensor Core (F16) support for NVIDIA GPUs. Specifically, adds support to target
mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16andldmatrixinstructions 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
ldmatrixfor operandA andldmatrix.transfor operandB.ldmatrix.transtransposes the data while loading to use Tensor Coremma*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:
Previous IREE PRs: