-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CanonicalizeDoublyStridedOp] Make single dims explicit by default an…
…d require this in LowerToAIE (#576) NPU DMA operations with implicit addressing on L3 side behave incorrectly on some cases and while the correct strides and sizes can be derived from other places, this is quite indirect and easily leads to bugs. For example, in the following case it can be derived from the input `%circ_dma` that the explicit source access pattern is `[0] [1024] [1]` or `[0, 0] [32, 32] [32, 1]` by inspecting at the **target** side of that operation: ``` %circ_dma = amdaie.circular_dma_cpy_nd(%obj0[] [] [], %obj1[] [] []) : (!amdaie.logicalobjectfifo<memref<32x32xi32, 1>>, !amdaie.logicalobjectfifo<memref<1024x1024xi32>>) ... %npu_dma = amdaie.npu.dma_cpy_nd %circ_dma ([] [] [], [] [] [] bd_id = %bd_id_0) ``` However, it would be more clear and simple to just keep the access patterns explicit (when there is one) like this: ``` %circ_dma = amdaie.circular_dma_cpy_nd(%obj0[] [] [], %obj1[] [] []) : (!amdaie.logicalobjectfifo<memref<32x32xi32, 1>>, !amdaie.logicalobjectfifo<memref<1024x1024xi32>>) ... %npu_dma = amdaie.npu.dma_cpy_nd %circ_dma ([] [] [], [0] [1024] [1] bd_id = %bd_id_0) ```
- Loading branch information
Showing
7 changed files
with
328 additions
and
221 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.