| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Update docs and .env file to reflect PYTHONPATH variability (#4332) This updates the docs and build_tools/write_env_file.sh to correctly identify the PYTHONPATH based on in-tree vs. out-of-tree builds. Additionally, I've updated various build configure commands to include a directive to align Python with Python3, since having conflicting versions of python can cause issues when not explicitly setting both to the same python executable. Resolves https://github.com/llvm/torch-mlir/issues/4331 --------- Signed-off-by: zjgarvey <zjgarvey@gmail.com> | 10 个月前 | |
Handle pytorch pybind11 changes and bump nightly pins (#4352) I think this is the simplest approach, for now, to resolve https://github.com/llvm/torch-mlir/issues/4343 It would be good to eventually finish https://github.com/llvm/torch-mlir/pull/4348 ; however, it became a bit too much to rework the generated sources scripts in a timely fashion. See also another parallel attempt to address the ci problems: #4345 This PR modifies the Cmake pytorch configure function to simply not set any TORCH_CXX_FLAGS whenever pytorch is missing the old PYBIND_BUILD_ABI tag. I think whatever compiler flags we were pushing through to make pybind think we are GCC and to use a specific ABI version is just completely unnecessary now. I was worried we might need to update our pybind version in the requirements, but it appears to not be relevant. Additionally, nightly pins are updated and small fixes are made to resolve misc failures in tests after the bump. --------- Signed-off-by: zjgarvey <zjgarvey@gmail.com> | 10 个月前 | |
Dockerize CI + Release builds (#1234) Gets both CI and Release builds integrated in one workflow. Mount ccache and pip cache as required for fast iterative builds Current Release docker builds still run with root perms, fix it in the future to run as the same user. There may be some corner cases left especially when switching build types etc. Docker build TEST plan: tl;dr: Build everythin: Releases (Python 3.8, 3.9, 3.10) and CIs. TM_PACKAGES="torch-mlir out-of-tree in-tree" 2.57s user 2.49s system 0% cpu 30:33.11 total Out of Tree + PyTorch binaries: Fresh build (purged cache): TM_PACKAGES="out-of-tree" 0.47s user 0.51s system 0% cpu 5:24.99 total Incremental with ccache: TM_PACKAGES="out-of-tree" 0.09s user 0.08s system 0% cpu 34.817 total Out of Tree + PyTorch from source Incremental TM_PACKAGES="out-of-tree" TM_USE_PYTORCH_BINARY=OFF 1.58s user 1.81s system 2% cpu 1:59.61 total In-Tree + PyTorch binaries: Fresh build and tests: (purge ccache) TM_PACKAGES="in-tree" 0.53s user 0.49s system 0% cpu 6:23.35 total Fresh build/ but with prior ccache TM_PACKAGES="in-tree" 0.45s user 0.66s system 0% cpu 3:57.47 total Incremental in-tree with all tests and regression tests TM_PACKAGES="in-tree" 0.16s user 0.09s system 0% cpu 2:18.52 total In-Tree + PyTorch from source Fresh build and tests: (purge ccache) TM_PACKAGES="in-tree" TM_USE_PYTORCH_BINARY=OFF 2.03s user 2.28s system 0% cpu 11:11.86 total Fresh build/ but with prior ccache TM_PACKAGES="in-tree" TM_USE_PYTORCH_BINARY=OFF 1.58s user 1.88s system 1% cpu 4:53.15 total Incremental in-tree with all tests and regression tests TM_PACKAGES="in-tree" TM_USE_PYTORCH_BINARY=OFF 1.09s user 1.10s system 1% cpu 3:29.84 total Incremental without tests TM_PACKAGES="in-tree" TM_USE_PYTORCH_BINARY=OFF TM_SKIP_TESTS=ON 1.52s user 1.42s system 3% cpu 1:15.82 total In-tree+out-of-tree + Pytorch Binaries TM_PACKAGES="out-of-tree in-tree" 0.25s user 0.18s system 0% cpu 3:01.91 total To clear all artifacts: rm -rf build build_oot llvm-build libtorch docker_venv externals/pytorch/build | 3 年前 | |
Bump the manylinux image used by build_linux_packages.sh (#4376) The current manylinux image ships GCC 10, which has recently started failing to compile torch-mlir (*), see failing CI job: * https://github.com/llvm/torch-mlir-release/actions/runs/19329445043/job/55288631613). This PR bumps manylinux to the next version which happens to bump GCC from 10 to 14. This fixes the build issue. While there may be narrower fixes, the image we use is also quite dated, so updating it is a reasonable path. (*) More specifically, StablehloOptimizationPasses inside the StableHLO submodule. | 9 个月前 | |
Enable TOSA conversions in bazel build rules (#4023) Follows https://github.com/llvm/torch-mlir/pull/4021. Also pushes a small pre-commit fix. Bazel CI triggered here: https://github.com/sjain-stanford/torch-mlir/actions/runs/13297425038/job/37132415527 | 1 年前 | |
[LTC] Support torch.ones/zeros/arange ops (#2440) | 2 年前 | |
Fix typos in comments (#2539) Fix typos in comments | 2 年前 | |
build: improve robustness of cmake and shell scripts (#1018) On my local machine, unzip didn't exist (producing a "command not found" error), but CMake ignored the error. Although the build did succeed (because it found a previously-built version of libtorch), it seems better to abort builds on such failures, so this patch checks the return code of all external process invocations. Along similar lines, this patch also updates the shell scripts in build_tools to extensively use double-quoting to prevent unintentional word splitting or globbing. Since some of the scripts execute rm while using shell variables, this patch also adds the preamble set -u to abort execution if an undefined variable is referenced, so that we reduce the chances of executing rm -rf / if the path expression happens to refer to an undefined variable. | 4 年前 | |
[CI] Enable building StableHLO in CI (#4170) Context: Due to the LLVM version upgrade, stablehlo CI tests have been temporarily disabled. Ref link of discussion: https://github.com/llvm/torch-mlir/pull/4152 | 1 年前 | |
Define Python_FIND_VIRTUALENV in addition to Python3_FIND_VIRTUALENV (#4004) MLIR searches for both Python3 and Python. If both variables are not defined equally and there multiple python versions on the system, CMake may behave really weirdly. More details here: https://github.com/llvm/llvm-project/issues/126162 So I grepped for all instances of Python3_FIND_VIRTUALENV and added similar Python_FIND_VIRTUALENV definition. | 1 年前 | |
[NFC] Update black version (#3256) * Update black version to support 3.11/3.12 * Reformat code | 2 年前 | |
Migrate ci.yml to AKS cpubuilder cluster. (#3967) This commit contains the ccache and python changes neccessary to migrate the ci.yml workflow to an azure kubernetes cpubuilder cluster. Timings before and after the infra change are in the same ballpark (~10 mins). Previously, test/python/compile.py was unnecessarily excluding the python site packages, which needed to be changed for the cluster. We also make use of hendrikmuhs/ccache-action now and use a key of ${{ github.job }}-${{ matrix.torch-version }} which works as intended: https://github.com/llvm/torch-mlir/actions/runs/12828039126/job/35771248056#step:7:4657 | 1 年前 | |
Migrate ci.yml to AKS cpubuilder cluster. (#3967) This commit contains the ccache and python changes neccessary to migrate the ci.yml workflow to an azure kubernetes cpubuilder cluster. Timings before and after the infra change are in the same ballpark (~10 mins). Previously, test/python/compile.py was unnecessarily excluding the python site packages, which needed to be changed for the cluster. We also make use of hendrikmuhs/ccache-action now and use a key of ${{ github.job }}-${{ matrix.torch-version }} which works as intended: https://github.com/llvm/torch-mlir/actions/runs/12828039126/job/35771248056#step:7:4657 | 1 年前 | |
Update docs and .env file to reflect PYTHONPATH variability (#4332) This updates the docs and build_tools/write_env_file.sh to correctly identify the PYTHONPATH based on in-tree vs. out-of-tree builds. Additionally, I've updated various build configure commands to include a directive to align Python with Python3, since having conflicting versions of python can cause issues when not explicitly setting both to the same python executable. Resolves https://github.com/llvm/torch-mlir/issues/4331 --------- Signed-off-by: zjgarvey <zjgarvey@gmail.com> | 10 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 10 个月前 | ||
| 10 个月前 | ||
| 3 年前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 10 个月前 |