torch-mlir/build_tools
Ashay Rane 53e76b8ab6
build: create RollPyTorch to update PyTorch version in Torch-MLIR (#1419)
This patch fetches the most recent nightly (binary) build of PyTorch,
before pinning it in pytorch-requirements.txt, which is referenced in
the top-level requirements.txt file.  This way, end users will continue
to be able to run `pip -r requirements.txt` without worrying whether
doing so will break their Torch-MLIR build.

This patch also fetches the git commit hash that corresponds to the
nightly release, and this hash is passed to the out-of-tree build so
that it can build PyTorch from source.

If we were to sort the torch versions as numbers (in the usual
descending order), then 1.9 appears before 1.13.  To fix this problem,
we use the `--version-sort` flag (along with `--reverse` for specifying
a descending order).  We also filter out lines that don't contain
version numbers by only considering lines that start with a digit.

As a matter of slight clarity, this patch renames the variable
`torch_from_src` to `torch_from_bin`, since that variable is initialized
to `TM_USE_PYTORCH_BINARY`.

Co-authored-by: powderluv <powderluv@users.noreply.github.com>
2022-09-28 15:38:30 -05:00
..
docker Dockerize CI + Release builds (#1234) 2022-08-30 11:07:25 -07:00
python_deploy build: create RollPyTorch to update PyTorch version in Torch-MLIR (#1419) 2022-09-28 15:38:30 -05:00
torchscript_e2e_heavydep_tests Remove "torchscript" association from the e2e framework. 2022-08-29 14:10:03 -07:00
autogen_ltc_backend.py Fix symint ops and blacklist `lift_fresh_copy` (#1373) 2022-09-20 10:16:04 -04:00
autogen_ltc_backend.yaml Fix as_strided/slice symint (#1401) 2022-09-26 12:16:49 -04:00
build_libtorch.sh build: create RollPyTorch to update PyTorch version in Torch-MLIR (#1419) 2022-09-28 15:38:30 -05:00
build_python_wheels.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00
build_standalone.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00
scrape_releases.py Create github action for creating pip-compatible releases index 2022-09-23 15:26:19 -04:00
update_shape_lib.sh Slightly tweak generated file checks 2022-08-31 20:03:25 -07:00
update_torch_ods.sh Slightly tweak generated file checks 2022-08-31 20:03:25 -07:00
write_env_file.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00