-
Notifications
You must be signed in to change notification settings - Fork 15
Multi-cgra mapper integration #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
87cb9a0
feat(taskflow): integrate MapTaskOnCgraPass for multi-CGRA placements
guosran 273610a
Refined fallback logic
guosran 798fe84
refactor(taskflow): cascading shape search in MapTaskOnCgraPass place…
guosran 1b41e8d
refactor(taskflow): cascading placement search with fallback, clean u…
guosran 8f37f89
fix(taskflow): multi-CGRA aware SRAM centroid and SSA scoring
guosran c17d7fc
refactor: rename MapToAcceleratorPass to MapOperationOnTilePass
guosran 2d00d5a
refactor: rename MapTaskOnCgraPass to AllocateCgraToTaskPass
guosran 5b1b33b
Merge remote-tracking branch 'origin/main' into feature/multi-cgra-ma…
guosran 9112303
fix: resolve merge conflicts with main (FuseTaskPass, CMakeLists)
guosran 27b7bcf
refactor: rename CGRAPosition to CgraPosition for consistency
guosran f584835
Merge branch 'main' into feature/multi-cgra-mapper-integration
guosran ea0a0b6
resolve TODOs, add post-placement re-profiling
guosran a2c4da4
Add CGRA placement utilities and integrate them into task allocation …
guosran eabe7be
Add implementation for CGRA task mapping and shared placement utilities
guosran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,7 +61,7 @@ def ClassifyCounters : Pass<"classify-counters", "ModuleOp">{ | |
| let constructor = "taskflow::createClassifyCountersPass()"; | ||
| } | ||
|
|
||
| def MapTaskOnCgra : Pass<"map-task-on-cgra", "func::FuncOp"> { | ||
| def AllocateCgraToTask : Pass<"allocate-cgra-to-task", "func::FuncOp"> { | ||
| let summary = "Maps Taskflow tasks onto a 2D CGRA grid array"; | ||
| let description = [{ | ||
| This pass maps Taskflow tasks onto a 2D CGRA grid array. | ||
|
|
@@ -70,7 +70,7 @@ def MapTaskOnCgra : Pass<"map-task-on-cgra", "func::FuncOp"> { | |
|
|
||
| Uses a default 3x3 CGRA grid. | ||
|
||
| }]; | ||
| let constructor = "taskflow::createMapTaskOnCgraPass()"; | ||
| let constructor = "taskflow::createAllocateCgraToTaskPass()"; | ||
| } | ||
|
|
||
| def FuseTask : Pass<"fuse-task", "func::FuncOp"> { | ||
|
|
||
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should create two utility folders in
include/TaskflowDialect/Utilorlib/TaskflowDialect/Utiland put these utility functions in these folders. You can refer to the folder structure inNeuraDialect.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created.