This website requires JavaScript.
Explore
Help
Register
Sign In
llvm
/
torch-mlir
mirror of
https://github.com/llvm/torch-mlir
Watch
1
Star
0
Fork
You've already forked torch-mlir
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
4678a7fedd
torch-mlir
/
tools
/
CMakeLists.txt
4 lines
94 B
CMake
Raw
Normal View
History
Unescape
Escape
Add npcomp-opt and lit runner.
2020-04-27 08:55:15 +08:00
add_subdirectory
(
npcomp-opt
)
Add bare-bones npcomp-run-mlir. The code isn't super clean, but is a useful incremental step establishing most of the boilerplate for future enhancements. We can't print or return tensors yet so correctness TBD, but I've stepped into the running code in the debugger so I know it definitely is running. This is the first step to building out an npcomp mini-runtime. The mini-runtime doesn't have to be fancy or complex, but it should at least be layered nicely (which this code and the current compiler interaction with the "runtime" code is not). Now that we have boilerplate for e2e execution in some form, we can build that out.
2020-05-29 07:41:36 +08:00
add_subdirectory
(
npcomp-run-mlir
)
Start reworking towards a shared library build. * Need to have a dag of shared library deps in order to interop across python extensions (as presented in ODM). * Introduced add_npcomp_library and friends to mirror the MLIR setup. * Adds a libNPCOMP.so shared library. * Redirects tools and extensions to link against libNPCOMP.so (instead of static libs). * Moves all libraries to lib/, all binaries to bin/ and all python extensions to python/. The invariant is that the rpaths are setup to have a one level directory structure. * Reworks the _torch_mlir extension to build like the others (still need to come up with a consolidated rule to do this instead of open coded). * Includes an upstream version bump to pick up needed changes. Sizes with dynamic linking (stripped, release, asserts enabled): libNPCOMP.so: 43M (includes much of the underlying LLVM codegen deps) libMLIR.so: 31M _npcomp.so: 1.6M (python extension) _torch_mlir.so: 670K (python extension) npcomp-capi-ir-test: 6.3K npcomp-opt: 351K npcomp-run-mlir: 461K mnist-playground: 530K Still more can be done to normalize and optimize but this gets us structurally to the starting point.
2020-10-09 09:29:59 +08:00
add_subdirectory
(
npcomp-shlib
)