torch-mlir/cmake/modules
Stella Laurenzo f6d7ee06ef Make torch_mlir compatible with binary PyTorch installations.
* This has been anticipated for a long time in that it is quite hard to keep C++ binary compatibility across a system landscape as diverse as PyTorch, LLVM, and this project. This is why we based the PyTorch extension on the MLIR and NPCOMP C APIs only: that is the only sane linkage story for the entire matrix.
* Removes the few LLVM'isms in torch_mlir that had snuck in, using either STL or PyTorch support utilities. The new rule here is that LLVM C++ includes are forbidden at this level and (as stated in the design), torch_mlir should use the PyTorch runtime and support libraries (not introduce an incidental C++ dependency on LLVM).
* Also deletes mnist-playground as it was proving impossible to keep the grid of PyTorch vs system ABI divisions functioning. I am open to a less drastic course here (optional/disabled by default?)
* This gets us pretty close to just using PyTorch's extension builder API, which will be nice for distribution (i.e. it integrates well with the PyTorch ecosystem for deployment). I ended up just simplifying the in-tree CMake support for now.
* Fixes #138
2020-12-14 09:51:00 -08:00
..
AddNPCOMP.cmake Start reworking towards a shared library build. 2020-10-09 16:02:58 -07:00
ConfigurePyTorch.cmake Make torch_mlir compatible with binary PyTorch installations. 2020-12-14 09:51:00 -08:00
NpcompDetectPythonEnv.cmake Make torch_mlir compatible with binary PyTorch installations. 2020-12-14 09:51:00 -08:00
NpcompPython.cmake Create public API for torch_mlir python code. 2020-10-13 16:36:49 -07:00