Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
1fbf17d
feat: split pytorch requirements into stable and nightly
Apr 12, 2023
6101852
fix: add true to tests to see full output
Apr 17, 2023
5567c2c
Merge branch 'main' into add_stable_pytorch_tests
Apr 17, 2023
fbc8496
refactor: add comments to explain true statement
Apr 17, 2023
47c8e29
Merge remote-tracking branch 'origin/main' into add_stable_pytorch_tests
May 8, 2023
c93354a
feat: move some tests to experimental mode
May 8, 2023
e6906d2
Merge remote-tracking branch 'origin/main' into add_stable_pytorch_tests
May 8, 2023
8597919
lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp: bf16 casts
mgehre-amd May 11, 2023
05efc84
[TOSA] Add torch.prim.NumToTensor.Scalar float support (#1802)
Apr 18, 2023
00cba87
Fixes for bf16
mgehre-amd May 11, 2023
d091717
Add support for aten.split.Tensor followed by prim.ListUnpack
mgehre-amd May 5, 2023
b66ab03
[tosa] support lowering basic torch binary ops with mixed dtypes
tatwaichong May 16, 2023
d6f1d9b
Merge remote-tracking branch 'xlnx/matthias.bf16_tosa' into mixed_types
mgehre-amd May 16, 2023
c9b7bb2
.gitmodules: Move llvm-project to xilinx/llvm-project
mgehre-amd May 16, 2023
6f4d02b
externals/llvm-project: Fix mul fold
mgehre-amd May 16, 2023
47a9745
Update workflow
mgehre-amd May 16, 2023
ca73133
gitmodules: use https
mgehre-amd May 16, 2023
4fa4154
Revert llvm-project changes
mgehre-amd May 16, 2023
5812370
refactor: refactor pipeline into more fine grained difference
May 16, 2023
f3aa805
Merge remote-tracking branch 'origin/main' into add_stable_pytorch_tests
May 16, 2023
80a0a59
Remove a100
mgehre-amd May 16, 2023
28206ad
Don't run macos/windows
mgehre-amd May 16, 2023
1d6ef09
fix
mgehre-amd May 16, 2023
7eaf5dc
fix token?
mgehre-amd May 16, 2023
e35c96e
Revert "Revert llvm-project changes"
mgehre-amd May 16, 2023
70c8839
Workflow update
mgehre-amd May 17, 2023
ff24581
Elevate permissions
mgehre-amd May 17, 2023
9919d2c
Fix test failure
mgehre-amd May 17, 2023
0f054b5
Push to current branch name
mgehre-amd May 17, 2023
ed394fb
More permissions
mgehre-amd May 17, 2023
aaef91b
Merge remote-tracking branch 'upstream/main' into misc_fixes
mgehre-amd May 17, 2023
3c63f53
More bf16 fixes
mgehre-amd May 17, 2023
3f01668
Add torch_mlir.do function
mgehre-amd May 17, 2023
31085ad
.github: Fix release flow
mgehre-amd May 17, 2023
ec44d15
python/torch_mlir/__init__.py: Fix wrapper for single tuple return
mgehre-amd May 17, 2023
30eb097
Tooling to build wheels
mgehre-amd May 17, 2023
70ef112
bf16: fix tests
mgehre-amd May 17, 2023
5ffa57d
build fixes
mgehre-amd May 17, 2023
1ea3632
Fix workflow
May 16, 2023
cd7bc7c
fix wrapper
mgehre-amd May 17, 2023
0364ee4
Add all legal checks from tosa spec to the check of to.dtype operator
May 17, 2023
3f621e7
Merge remote-tracking branch 'xlnx/misc_fixes' into ferdinand.fix_to_…
mgehre-amd May 19, 2023
6e279d2
Update tests
mgehre-amd May 19, 2023
4e40ff1
Merge remote-tracking branch 'upstream/main' into mgehre.bump_torch
mgehre-amd May 19, 2023
c2f166d
.github/workflows/buildAndTest.yml: Also build PRs to branch misc_fixes
mgehre-amd May 19, 2023
e2b9716
Merge pull request #10 from Xilinx/ferdinand.fix_to_dtype_illegal_casts
mgehre-amd May 19, 2023
bd87b53
Make sure that we have ccache entries for misc_fixes
mgehre-amd May 19, 2023
d69263d
Merge pull request #12 from Xilinx/mgehre.ci_for_misc_fixes
mgehre-amd May 19, 2023
328231f
Merge remote-tracking branch 'origin/misc_fixes' into mgehre.bump_torch
mgehre-amd May 19, 2023
010e594
Remove deep_copy
mgehre-amd May 19, 2023
a05004f
Print version
mgehre-amd May 19, 2023
23ff2a3
Merge branch 'add_stable_pytorch_tests' into mgehre.stable_torch
mgehre-amd May 19, 2023
960492c
Build wheels from stable torch
mgehre-amd May 19, 2023
a1abb1c
Merge pull request #11 from Xilinx/mgehre.bump_torch
mgehre-amd May 19, 2023
c536652
SliceCopyMax_Module: Fix crash in attached test case
mgehre-amd May 19, 2023
e36e3eb
Merge pull request #16 from Xilinx/mgehre.version
mgehre-amd May 19, 2023
7fdb269
Merge pull request #13 from Xilinx/mgehre.negative_idx
mgehre-amd May 19, 2023
b4ad592
Merge pull request #15 from Xilinx/mgehre.remove_deepcopy
mgehre-amd May 19, 2023
6efa91b
Exclude some tests for stable versions
mgehre-amd May 19, 2023
915398b
Merge pull request #14 from Xilinx/mgehre.stable_torch
mgehre-amd May 21, 2023
ebf7534
Support aten.pow.scalar
mgehre-amd May 22, 2023
cd3713c
Don't crash when the input to aten.copy is unranked
mgehre-amd May 22, 2023
5e066c1
Add torch-to-tosa legalization for torch.aten.sqrt
ttjost May 19, 2023
d0fec7c
Support aten.sign
mgehre-amd May 22, 2023
c12f76a
Merge pull request #18 from Xilinx/tiagot.legalize_sqrt_to_tosa
mgehre-amd May 22, 2023
f450421
TorchToTosa: Support more cast from f64
mgehre-amd May 22, 2023
6bf21cc
Merge branch 'matthias.aten_split' into mgehre.split_tensor
mgehre-amd May 22, 2023
d996586
e2e_testing/xfail_sets.py: TOSA: Add a tests that pass now
mgehre-amd May 22, 2023
6676e7c
Mark ElementwiseGe as PASS for tosa
mgehre-amd May 22, 2023
e91e2a8
Print name of the backend when tests fail to help debugging issues in CI
mgehre-amd May 22, 2023
b2db85c
Merge pull request #23 from Xilinx/mgehre.help_e2e_reporting
mgehre-amd May 22, 2023
c2fb24e
Use dyn_cast
mgehre-amd May 22, 2023
3984b96
Merge pull request #17 from Xilinx/mgehre.aten.power.scalar
mgehre-amd May 22, 2023
5c401ba
split.tensor: Ignore in LTC backend
mgehre-amd May 22, 2023
2b728ec
Merge pull request #19 from Xilinx/mgehre.fix_crash_decompose_copy_un…
mgehre-amd May 22, 2023
e981d0f
Merge remote-tracking branch 'origin/misc_fixes' into matthias.suppor…
mgehre-amd May 22, 2023
064d817
Merge pull request #20 from Xilinx/matthias.support_aten.sign
mgehre-amd May 22, 2023
116eb05
Mark split as XFAIL for LTC
mgehre-amd May 22, 2023
a2f46e5
Merge pull request #22 from Xilinx/mgehre.split_tensor
mgehre-amd May 22, 2023
331ef78
Add f64 -> f16
mgehre-amd May 22, 2023
feba6b1
Merge pull request #21 from Xilinx/mgehre.f64_todtype
mgehre-amd May 22, 2023
5cec79a
Merge remote-tracking branch 'origin/misc_fixes' into mgehre.f64_todtype
mgehre-amd May 22, 2023
5fd8c58
Fix test failures
mgehre-amd May 22, 2023
d5f7b92
Merge branch 'feature/misc_fixes' into mgehre.f64_todtype
mgehre-amd May 23, 2023
a89d371
Update CI
mgehre-amd May 23, 2023
89b42c5
Merge pull request #21 from Xilinx/mgehre.f64_todtype
mgehre-amd May 23, 2023
6a53517
Merge remote-tracking branch 'upstream/main' into mgehre.bump_torch
mgehre-amd May 23, 2023
a026db2
do(): Add torch.nograd
mgehre-amd May 23, 2023
8e2a0ec
Merge pull request #27 from Xilinx/mgehre.nograd
mgehre-amd May 23, 2023
03ca799
Merge pull request #26 from Xilinx/mgehre.bump_torch
mgehre-amd May 23, 2023
a950b6a
lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp: Just allow all cast…
mgehre-amd May 23, 2023
827a091
feat: adds a folder for torch.aten.broadcast_to operation. (#29)
ttjost May 24, 2023
f144e55
Add reproduce() function (#30)
mgehre-amd May 25, 2023
f57c080
Ignore constants in the legality error (#31)
mgehre-amd May 25, 2023
26cd473
Merge WIP in https://github.com/llvm/torch-mlir/pull/2085 (#34)
ljfitz May 25, 2023
0c9da71
.github/workflows/buildRelease.yml: Also build packages for python 3.…
mgehre-amd May 25, 2023
698307a
upstream slice fixes (#35)
mgehre-amd May 25, 2023
f415bdc
lib/Conversion/TorchToTosa/TorchToTosa.cpp: Fix legalization of compa…
mgehre-amd May 25, 2023
205a76e
Some slice fixes (#37)
mgehre-amd May 25, 2023
a97a393
Fix test failure
mgehre-amd May 25, 2023
2914eb9
e2e_testing/xfail_sets.py: Add passing test to TOSA set
mgehre-amd May 25, 2023
262e3b7
lib/Dialect/Torch/IR/TorchOps.cpp: Canonicalize rank changing broadca…
mgehre-amd May 30, 2023
f8dac6a
Add support for aten.asin and aten.acos. (#38)
ttjost May 30, 2023
30f3902
Merge upstream main (#41)
mgehre-amd May 30, 2023
99825b6
Revert cumsum (#46)
mgehre-amd May 30, 2023
e5215db
Move model.to before first invocation (#48)
mgehre-amd May 30, 2023
243ad62
Pick https://github.com/llvm/torch-mlir/pull/2150 to fix slice + copy…
mgehre-amd May 30, 2023
72adf77
Pick upstream fix for module initializers (#42)
mgehre-amd May 30, 2023
455c7f2
Merge branch 'add_stable_pytorch_tests' into matthias.fix_release (#49)
mgehre-amd May 30, 2023
b639885
.github/workflows/buildRelease.yml: Fix release build after previous …
mgehre-amd May 31, 2023
0606078
do(): Rewrite dataclasses outputs into tuples (#24)
mgehre-amd May 31, 2023
3acbaa1
Use torch.nograd on reproduce() (#52)
mgehre-amd May 31, 2023
ad17fcd
Legalize aten.repeat_interleave.Tensor for torch-mlir (#44)
flemairen6 May 31, 2023
25333e9
python/torch_mlir/compiler_utils.py: Add comment why we need to run t…
mgehre-amd May 31, 2023
97503d6
Support prims.sum / torch.cumsum (#50)
mgehre-amd May 31, 2023
e15c359
[FXML-2172] Torch Div Conversion Fix (#45)
cmcgirr-amd May 31, 2023
1c8ca3c
Adds support for floating point types in torch.arange operation
ttjost May 30, 2023
2e45d5e
Merge pull request #47 from Xilinx/tiagot.arange_fp_support
ttjost May 31, 2023
5aef5b8
Merge remote-tracking branch 'upstream/main' into mgehre.merge_upstre…
mgehre-amd Jun 1, 2023
cbeda16
Support for tosa.custom_op operations. (#58)
ttjost Jun 1, 2023
76b0fe6
Legalize operator torch.aten.empty.memory_format, aten.fill.Scalar & …
flemairen6 Jun 1, 2023
f89c053
[TOSA] Add aten._index_put_impl support (#39)
mgehre-amd Jun 1, 2023
8a05987
TOSA: Support le.scalar & le.tensor (#61)
mgehre-amd Jun 1, 2023
b101938
Support Aten_IndexPutImplOp in 1D (#60)
mgehre-amd Jun 2, 2023
c4666d8
lib/Conversion/TorchToTosa/TosaLegalizeCommon.cpp: Handle type promot…
mgehre-amd Jun 2, 2023
9dcd1be
Adds support for aten.sin and aten.cost through tosa.custom_op. (#62)
ttjost Jun 2, 2023
b25c53a
Torch: Fold RuntimeAssertOp (#65)
mgehre-amd Jun 2, 2023
e53d054
Merge remote-tracking branch 'upstream/main' (#57)
mgehre-amd Jun 2, 2023
b1350f7
Merge remote-tracking branch 'upstream/main' into matthias.merge_upst…
mgehre-amd Jun 5, 2023
2006c1d
Add make_fx_tosa variant to end2end tests (#66)
mgehre-amd Jun 5, 2023
5f6a811
Fix version comparison against stable (#68)
mgehre-amd Jun 5, 2023
0a0c7bc
Add decomposition for im2col (#63)
flemairen6 Jun 5, 2023
c012cdd
repro: Consider %arg0 to be an SSA for matching the error message (#71)
mgehre-amd Jun 5, 2023
3130853
Merge upstream (#69)
mgehre-amd Jun 5, 2023
9948a52
Merge commit 'b1350f7f61d98554f47b6712dd44b1418a42ca88' into matthias…
mgehre-amd Jun 6, 2023
90eaf8c
Merge remote-tracking branch 'upstream/main' into matthias.merge_upst…
mgehre-amd Jun 6, 2023
998c9ff
Adds support for 1D convolutions by rewriting them as 2D convolutions…
ttjost Jun 7, 2023
9be83db
do: Use make_fx flag on compile() (#74)
mgehre-amd Jun 7, 2023
71aee8f
Merge pull request #73 from Xilinx/matthias.merge_upstream
mgehre-amd Jun 7, 2023
fb9547d
TorchToTosa: aten.embedding: Allow indices with any rank (#77)
mgehre-amd Jun 9, 2023
d91a18a
[TOSA] Add support for aten.pow.Tensor_Tensor operation. (#81)
ttjost Jun 9, 2023
f025991
[TOSA] Add support for bool in aten.empty.memory_format. (#82)
ttjost Jun 9, 2023
2dfc2bf
TorchToTosa: Fix type for non-FP32 bias. (#80)
ttjost Jun 9, 2023
867ff64
TorchToTosa: Support AtenSliceTensorOp for any step (#83)
mgehre-amd Jun 9, 2023
2f240bc
Support for group convolutions in TOSA. (#78)
ttjost Jun 9, 2023
7dfe606
[TOSA] Fix result type for Conv1D operations. (#79)
ttjost Jun 9, 2023
dfc3c0d
python/torch_mlir/dynamo.py: Decompose index_select (#85)
mgehre-amd Jun 9, 2023
3f8a1cd
TOSA: slice: Support start < 0, start < end and start + sizeOfDim < 0…
mgehre-amd Jun 9, 2023
2cb0421
python/torch_mlir/dynamo.py: Decompose torch.aten.linalg_vector_norm.…
ttjost Jun 12, 2023
aae8f14
Fix SliceOp::fold to check step (introduced by #37) (#87)
mgehre-amd Jun 12, 2023
3f24fe6
TOSA: Concat: promote input types (#88)
mgehre-amd Jun 12, 2023
917d5a8
Add decomposition for index_select along with a test (#67)
flemairen6 Jun 12, 2023
54cad09
TorchToTosa: support different variations of aten.clamp operation. (#89)
ttjost Jun 13, 2023
79bbe93
Merge commit 'ddea56a8' into matthias.merge_upstream
mgehre-amd Jun 13, 2023
7dfeb6a
TorchToTosa: Refactor aten.sqrt lowering pass and add support for (#90)
ttjost Jun 13, 2023
2418e31
Merge pull request #92 from Xilinx/matthias.merge_upstream
mgehre-amd Jun 14, 2023
66039d1
Add tosa-run and tosa-check to output_types; use IREE for tosa-run (#54)
mgehre-amd Jun 14, 2023
606b2e2
Bump torch-mlir to green commit 6cf7fe4a (Week of 05/29/2023)
mgehre-amd Jun 13, 2023
0a19469
TorchToTosa: attempt to fold tosa::add in AtenBroadcastToOp legalizat…
ttjost Jun 14, 2023
a5081bb
TorchToTosa: legalize aten.erf operation (#97)
ttjost Jun 14, 2023
8ca7252
TorchToTosa: Legalize aten.repeat_interleave operation. (#96)
ttjost Jun 14, 2023
0cafd6f
Merge branch 'feature/misc_fixes' into matthias.bump_llvm_green-6cf7fe4a
mgehre-amd Jun 14, 2023
e273e67
Recompose index.Tensor
mgehre-amd Jun 14, 2023
6b34a9b
Update to LLVM green commit 2b4807ba044230ed6243f5c3a1329a9344de758d …
mgehre-amd Jun 15, 2023
c79870c
Merge branch 'matthias.bump_llvm_green-2b4807' into matthias.recompos…
mgehre-amd Jun 16, 2023
4e2282d
Merge pull request #98 from Xilinx/matthias.recompose_index_tensor
mgehre-amd Jun 16, 2023
198c510
Merge pull request #104 from Xilinx/matthias.bump_llvm_green-2b4807
mgehre-amd Jun 16, 2023
4b6d89a
Derive output_size of repeat_interleave when inputs are broadcast(fil…
mgehre-amd Jun 19, 2023
47b3580
python/torch_mlir/repro.py: Reduce inputs (#103)
mgehre-amd Jun 19, 2023
42de546
RecomposeComplexOps: Don't call erase after replaceOpWithNewOp (#111)
mgehre-amd Jun 21, 2023
cd9cb51
lib/Conversion/TorchToTosa/TorchToTosa.cpp: Empty line (#107)
mgehre-amd Jun 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and Test

on:
pull_request:
branches: [ main ]
branches: [ feature/misc_fixes ]
push:
branches: [ main ]
branches: [ feature/misc_fixes ]
workflow_dispatch:

# Ensure that only a single job or workflow using the same
Expand All @@ -25,9 +25,9 @@ jobs:
strategy:
fail-fast: true
matrix:
os-arch: [ubuntu-x86_64, macos-arm64, windows-x86_64]
llvm-build: [in-tree, out-of-tree]
torch-binary: [ON, OFF]
os-arch: [ubuntu-x86_64] # macos-arm64, windows-x86_64
llvm-build: [in-tree] # out-of-tree
torch-binary: [ON] # OFF
torch-version: [nightly, stable]
exclude:
# Exclude llvm in-tree and pytorch source
Expand All @@ -51,11 +51,11 @@ jobs:
include:
# Specify OS versions
- os-arch: ubuntu-x86_64
os: a100
- os-arch: macos-arm64
os: macos-latest
- os-arch: windows-x86_64
os: windows-latest
os: ubuntu-latest # a100
#- os-arch: macos-arm64
# os: macos-latest
#- os-arch: windows-x86_64
# os: windows-latest
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -71,7 +71,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0

- name: Fetch PyTorch commit hash
if: ${{ matrix.os-arch != 'windows-x86_64' }}
Expand Down
37 changes: 26 additions & 11 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ on:
jobs:
build_linux:
name: Manylinux x86_64 Build
runs-on: a100
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
packages: write
strategy:
matrix:
package: [ torch-mlir, torch-mlir-core ]
py_version: [ cp38-cp38, cp311-cp311 ]
package: [ torch-mlir ]
py_version: [ cp38-cp38, cp310-cp310 ] # cp311-cp311
torch-version: [stable] # nightly
exclude:
- package: torch-mlir-core
py_version: cp38-cp38
Expand All @@ -36,7 +41,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0

- uses: ./.github/actions/setup-build
with:
Expand All @@ -46,7 +50,11 @@ jobs:
cd $GITHUB_WORKSPACE
TM_PACKAGE_VERSION=${{ github.event.inputs.python_package_version }}
printf "TORCH_MLIR_PYTHON_PACKAGE_VERSION=%s\n" $TM_PACKAGE_VERSION > ./torch_mlir_package_version
TM_PYTHON_VERSIONS=${{ matrix.py_version }} TM_PACKAGES=${{ matrix.package }} ./build_tools/python_deploy/build_linux_packages.sh
TM_SKIP_TESTS=ON \
TM_PYTHON_VERSIONS=${{ matrix.py_version }} \
TM_PACKAGES=${{ matrix.package }} \
TM_TORCH_VERSION="${{ matrix.torch-version }}" \
./build_tools/python_deploy/build_linux_packages.sh

# If we were given a release_id, then upload the package we just built
# to the github releases page.
Expand All @@ -55,7 +63,7 @@ jobs:
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ github.event.inputs.release_id }}
assets_path: ./build_tools/python_deploy/wheelhouse/torch*.whl
Expand All @@ -66,7 +74,7 @@ jobs:
id: publish_release
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ github.event.inputs.release_id }}
- name: Create dist directory
Expand All @@ -86,6 +94,7 @@ jobs:
path: dist

build_linux_arm64:
if: false
name: Manylinux arm64 Build
runs-on: linux-arm64
strategy:
Expand Down Expand Up @@ -155,6 +164,7 @@ jobs:
path: dist

build_macos:
if: false
name: MacOS Build
runs-on: macos-latest
strategy:
Expand Down Expand Up @@ -215,6 +225,7 @@ jobs:
path: dist

build_windows:
if: false
name: Windows Build
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -286,11 +297,15 @@ jobs:

publish_releases:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
packages: write
needs:
- build_linux
- build_linux_arm64
- build_macos
- build_windows
#- build_linux_arm64
#- build_macos
#- build_windows

# Publish even if one of the builds failed
if: ${{ always() }}
Expand All @@ -300,7 +315,7 @@ jobs:
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Publish releases page
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

# Wheels must be published from a linux environment.
#
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gh-pages-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
scrape_and_publish_releases:
name: "Scrape and publish releases"
runs-on: ubuntu-latest
permissions:
contents: write

# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
if: github.repository == 'xilinx/torch-mlir'

steps:
- name: Prepare workspace
Expand All @@ -20,10 +22,8 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checking out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
- name: Run scrape releases script
run: python ./build_tools/scrape_releases.py llvm torch-mlir > /tmp/index.html
run: python ./build_tools/scrape_releases.py xilinx torch-mlir > /tmp/index.html
shell: bash
- run: git fetch --all
- run: git switch github-pages
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/oneshotSnapshotPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ jobs:
name: "Tag snapshot release"
runs-on: ubuntu-latest
# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
#if: github.repository == 'llvm/torch-mlir'
steps:
- name: Prepare workspace
run: |
# Clear the workspace directory so that we don't run into errors about
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Checking out repository
- name: Checkout torch-mlir
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
submodules: 'true'
fetch-depth: 0

- name: Compute version
run: |
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/releaseSnapshotPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release snapshot package

on:
schedule:
- cron: '0 11 * * *'
- cron: '17 4 * * *'

workflow_dispatch:

Expand All @@ -11,7 +11,12 @@ jobs:
name: "Tag snapshot release"
runs-on: ubuntu-latest
# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
#if: github.repository == 'llvm/torch-mlir'
permissions:
contents: write
actions: write
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:

- name: Prepare workspace
Expand All @@ -22,8 +27,6 @@ jobs:

- name: Checking out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

- name: Compute version
run: |
Expand All @@ -40,15 +43,15 @@ jobs:
- name: Pushing changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.BRANCH_NAME }}
tags: true

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.tag_name }}
release_name: torch-mlir snapshot ${{ env.tag_name }}
Expand All @@ -57,17 +60,15 @@ jobs:
draft: true
prerelease: false

- name: "Invoke workflow :: Build and Test"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Build and Test
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
ref: "${{ env.tag_name }}"
# - name: "Invoke workflow :: Build and Test"
# uses: benc-uk/workflow-dispatch@v1
# with:
# workflow: Build and Test
# ref: "${{ env.tag_name }}"

- name: "Invoke workflow :: Release Build"
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Release Build
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
ref: "${{ env.tag_name }}"
inputs: '{"release_id": "${{ steps.create_release.outputs.id }}", "python_package_version": "${{ env.package_version }}"}'
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "externals/llvm-project"]
path = externals/llvm-project
url = https://github.com/llvm/llvm-project.git
url = https://github.com/Xilinx/llvm-project.git
branch = misc_fixes
[submodule "externals/mlir-hlo"]
path = externals/mlir-hlo
url = https://github.com/tensorflow/mlir-hlo.git
12 changes: 7 additions & 5 deletions build_tools/python_deploy/build_linux_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ function run_on_host() {
docker run --rm \
-v "${repo_root}:/main_checkout/torch-mlir" \
-v "${TM_OUTPUT_DIR}:/wheelhouse" \
-v "${HOME}:/home/${USER}" \
-v "${PWD}:$PWD" \
--user ${USERID}:${GROUPID} \
--workdir="/home/$USER" \
--workdir="$PWD" \
--volume="/etc/group:/etc/group:ro" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
Expand Down Expand Up @@ -275,7 +275,6 @@ function test_in_tree() {

cd /main_checkout/torch-mlir/
export PYTHONPATH="/main_checkout/torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir"

case $torch_version in
nightly)
echo ":::: Test with nightly torch"
Expand All @@ -300,7 +299,10 @@ function test_in_tree() {
exit 1
;;
esac


echo ":::: Run make_fx + TOSA e2e integration tests"
python -m e2e_testing.main --config=make_fx_tosa -v

echo ":::: Run TorchDynamo e2e integration tests"
python -m e2e_testing.main --config=torchdynamo -v

Expand Down Expand Up @@ -422,7 +424,7 @@ function build_torch_mlir() {
;;
stable)
echo ":::: Using stable dependencies"
python3 -m pip install --no-cache-dir torch torchvision
python3 -m pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu
python3 -m pip install --no-cache-dir -r /main_checkout/torch-mlir/build-requirements.txt
CMAKE_GENERATOR=Ninja \
TORCH_MLIR_PYTHON_PACKAGE_VERSION=${TORCH_MLIR_PYTHON_PACKAGE_VERSION} \
Expand Down
7 changes: 6 additions & 1 deletion e2e_testing/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

from .xfail_sets import (
LINALG_XFAIL_SET,
MAKE_FX_TOSA_PASS_SET,
STABLEHLO_PASS_SET,
TOSA_PASS_SET,
LTC_XFAIL_SET,
Expand All @@ -42,7 +43,7 @@
register_all_tests()

def _get_argparse():
config_choices = ["native_torch", "torchscript", "linalg", "stablehlo", "tosa", "lazy_tensor_core", "torchdynamo"]
config_choices = ["native_torch", "torchscript", "linalg", "stablehlo", "make_fx_tosa", "tosa", "lazy_tensor_core", "torchdynamo"]
parser = argparse.ArgumentParser(description="Run torchscript e2e tests.")
parser.add_argument("-c", "--config",
choices=config_choices,
Expand Down Expand Up @@ -94,6 +95,10 @@ def main():
config = TosaBackendTestConfig(LinalgOnTensorsTosaBackend())
xfail_set = all_test_unique_names - TOSA_PASS_SET
crashing_set = set()
elif args.config == "make_fx_tosa":
config = TosaBackendTestConfig(LinalgOnTensorsTosaBackend(), use_make_fx=True)
xfail_set = all_test_unique_names - MAKE_FX_TOSA_PASS_SET
crashing_set = set()
elif args.config == "stablehlo":
config = StablehloBackendTestConfig(LinalgOnTensorsStablehloBackend())
xfail_set = all_test_unique_names - STABLEHLO_PASS_SET
Expand Down
Loading