Oguz Ulgen
1df14f1bf8
Move has_triton to top level triton utils so that dynamo can also access ( #109832 )
...
it without creating cyclic dependencies
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109832
Approved by: https://github.com/zou3519
2023-09-22 19:33:41 +00:00
William Wen
117da58b65
[dynamo 3.11] enable dynamo unittests in 3.11 ( #98104 )
...
Enable most dynamo unittests for 3.11. There are a few tests that are skipped due to failures that will be addressed in upcoming PRs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98104
Approved by: https://github.com/yanboliang , https://github.com/voznesenskym , https://github.com/albanD , https://github.com/jansel , https://github.com/jerryzh168 , https://github.com/malfet
2023-04-10 20:04:10 +00:00
PyTorch MergeBot
22411b6f02
Revert "[dynamo 3.11] enable dynamo unittests in 3.11 ( #98104 )"
...
This reverts commit 0066f3405f .
Reverted https://github.com/pytorch/pytorch/pull/98104 on behalf of https://github.com/huydhn due to Sorry for reverting your PR, but it is failing on CPU 3.11 test in trunk 0066f3405f . This is probably a landrace
2023-04-07 00:05:30 +00:00
William Wen
0066f3405f
[dynamo 3.11] enable dynamo unittests in 3.11 ( #98104 )
...
Enable most dynamo unittests for 3.11. There are a few tests that are skipped due to failures that will be addressed in upcoming PRs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98104
Approved by: https://github.com/yanboliang , https://github.com/voznesenskym , https://github.com/albanD , https://github.com/jansel , https://github.com/jerryzh168 , https://github.com/malfet
2023-04-06 23:15:48 +00:00
Jack Taylor
45296f87ec
Fix for verify_dynamo on ROCm ( #97013 )
...
Prior to this change ROCm was not exiting check_cuda, causing an exception at packaging.version.parse(torch.version.cuda), this change exits check_cuda if torch.version.cuda is None
```
python verify_dynamo.py
Python version: 3.9.16
`torch` version: 2.1.0a0+git2b2f10c
CUDA version: None
ROCM version: 5.4
All required checks passed
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97013
Approved by: https://github.com/jithunnair-amd , https://github.com/malfet , https://github.com/kit1980
2023-03-21 03:19:31 +00:00
William Wen
5cdedab0cc
Raise error if torch.compile is called from windows or py 3.11 ( #94940 )
...
For https://github.com/pytorch/pytorch/issues/94914
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94940
Approved by: https://github.com/albanD
2023-02-16 23:34:52 +00:00
Douglas Lehr
77d1135566
[ROCm] Pyt 2.0 rocm staging ( #94660 )
...
Add triton support for ROCm builds of PyTorch.
* Enables inductor and dynamo when rocm is detected
* Adds support for pytorch-triton-mlir backend
* Adds check_rocm support for verify_dynamo.py
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94660
Approved by: https://github.com/malfet
2023-02-15 06:15:18 +00:00
Xuehai Pan
5b1cedacde
[BE] [2/3] Rewrite super() calls in functorch and torch ( #94588 )
...
Rewrite Python built-in class `super()` calls. Only non-semantic changes should be applied.
- #94587
- #94588
- #94592
Also, methods with only a `super()` call are removed:
```diff
class MyModule(nn.Module):
- def __init__(self):
- super().__init__()
-
def forward(self, ...):
...
```
Some cases that change the semantics should be kept unchanged. E.g.:
f152a79be9/caffe2/python/net_printer.py (L184-L190)
f152a79be9/test/test_jit_fuser_te.py (L2628-L2635)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94588
Approved by: https://github.com/ezyang , https://github.com/albanD
2023-02-10 21:16:33 +00:00
Nikita Shulga
5976f0bdfe
Set min supported Python version to 3.8 ( #93155 )
...
Also, grep for `if sys.version_info .cond. (3, 8)` and replaces them with appropriate action.
This is a last in a series of PRs that moved CI/CD away from testing PyTorch behavior against Python-3.7.
Fixes https://github.com/pytorch/pytorch/issues/80513
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93155
Approved by: https://github.com/huydhn
2023-01-29 18:28:46 +00:00
William Wen
0c3537a3c3
Add dynamo smoke tests to CI ( #89302 )
...
Add dynamo smoke tests to CI, which checks for python/torch/cuda versions and runs simple dynamo examples on a few backends, including inductor. Smoke tests will run on dynamo and inductor shards.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89302
Approved by: https://github.com/malfet
2022-11-30 21:24:45 +00:00
William Wen
6efdcb0788
Add dynamo smoke test ( #87400 )
...
https://github.com/pytorch/torchdynamo/issues/1733
Move the old smoke test over from the old dynamo repo.
cc @jansel @lezcano @fdrocha
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87400
Approved by: https://github.com/msaroufim
2022-10-21 17:30:14 +00:00