forked from llvm/torch-mlir
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-organize project structure to separate PyTorch dependencies from c…
…ore project. (llvm#2542) This is a first step towards the structure we discussed here: https://gist.github.com/stellaraccident/931b068aaf7fa56f34069426740ebf20 There are two primary goals: 1. Separate the core project (C++ dialects and conversions) from the hard PyTorch dependencies. We move all such things into projects/pt1 as a starting point since they are presently entangled with PT1-era APIs. Additional work can be done to disentangle components from that (specifically LTC is identified as likely ultimately living in a `projects/ltc`). 2. Create space for native PyTorch2 Dynamo-based infra to be upstreamed without needing to co-exist with the original TorchScript path. Very little changes in this path with respect to build layering or options. These can be updated in a followup without commingling directory structure changes. This also takes steps toward a couple of other layering enhancements: * Removes the llvm-external-projects/torch-mlir-dialects sub-project, collapsing it into the main tree. * Audits and fixes up the core C++ build to account for issues found while moving things. This is just an opportunistic pass through but roughly ~halves the number of build actions for the project from the high 4000's to the low 2000's. It deviates from the discussed plan by having a `projects/` tree instead of `compat/`. As I was thinking about it, this will better accommodate the follow-on code movement. Once things are roughly in place and the CI passing, followups will focus on more in-situ fixes and cleanups.
- Loading branch information
1 parent
536e45c
commit 6961f0a
Showing
316 changed files
with
249 additions
and
372 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
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
64 changes: 0 additions & 64 deletions
64
externals/llvm-external-projects/torch-mlir-dialects/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
externals/llvm-external-projects/torch-mlir-dialects/README.md
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
externals/llvm-external-projects/torch-mlir-dialects/include/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
externals/llvm-external-projects/torch-mlir-dialects/lib/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
externals/llvm-external-projects/torch-mlir-dialects/lib/Dialect/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
externals/llvm-external-projects/torch-mlir-dialects/test/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
externals/llvm-external-projects/torch-mlir-dialects/test/lit.site.cfg.py.in
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
externals/llvm-external-projects/torch-mlir-dialects/tools/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.