torch-mlir/build_tools
Stella Laurenzo af4edb63ae 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 16:02:58 -07:00
..
cmake_configure.sh Add scripts/documentation for VSCode setup with a docker dev image. 2020-10-07 21:27:20 -07:00
cmake_configure_iree.sh Rework README, add docs, and move some scripts to better locations accordingly. 2020-06-20 11:56:13 -07:00
docker_shell_funcs.sh Fix up the docker script / instructions after attempting to use it. 2020-10-09 10:27:06 -07:00
find_version_hashes.py Add mlir-hlo as a submodule and add a script to find versions. (#20) 2020-08-13 16:42:05 -07:00
format_sources.sh Add boilerplate to do device capture (pytorch 1.6). 2020-09-28 10:30:54 -07:00
install_mlir.sh Start reworking towards a shared library build. 2020-10-09 16:02:58 -07:00
show_python_info.py Rework README, add docs, and move some scripts to better locations accordingly. 2020-06-20 11:56:13 -07:00
test_all.sh Rework e2e flow to use new "npcomprt" 2020-07-08 19:36:19 -07:00