[HINT] [Shared_Memory] Support hint the use of shared memory for aipu#29
Merged
Conversation
* When using shared memory, the annotation "@hint: shared_memory" is required. * MemorySpace value 8 of shared memory is only for AIPU backend.
test_02_fused_softmax.py requires support later.
At present in the use of Shared memory, need to comment out mlir/lib/the Dialect/Affine/Analysis/LoopAnalysis.cpp
in the following two lines, and recompile LLVM:
//if (! memRefType.getLayout().isIdentity())
// return memoryOp.emitError("NYI: non-trivial layout map"), false;
Fixed the bug that caused errors in the operation of 2D matrix addition.
…d" attribute. * The extension supports multi-dimensional vector add. * Add the "shared" attribute to the memref.subview carrying offset of shared memory to solve the problem of non-trivial layout.
…d memory address space * Conflicts with DMA hints need to be resolved during merging.
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.
No description provided.