gaoyvfeng
50f23ff6f8
rename-HAS_CUDA-to-HAS_CUDA_AND_TRITON ( #159883 )
...
Fixes #159399
"Modified torch.testing._internal.inductor_utils and test/inductor"
Pull Request resolved: https://github.com/pytorch/pytorch/pull/159883
Approved by: https://github.com/janeyx99
2025-08-08 15:44:52 +00:00
Tom Ritchford
d8c8ba2440
Fix unused Python variables in test/[e-z]* ( #136964 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136964
Approved by: https://github.com/justinchuby , https://github.com/albanD
2024-12-18 23:02:30 +00:00
Oguz Ulgen
920f0426ae
Add None return type to init -- tests rest ( #132376 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132376
Approved by: https://github.com/jamesjwu
ghstack dependencies: #132335 , #132351 , #132352
2024-08-01 15:44:51 +00:00
Xuehai Pan
134bc4fc34
[BE][Easy][12/19] enforce style for empty lines in import segments in test/i*/ ( #129763 )
...
See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501 . Most changes are auto-generated by linter.
You can review these PRs via:
```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129763
Approved by: https://github.com/jansel
2024-07-18 07:49:19 +00:00
PyTorch MergeBot
b732b52f1e
Revert "[BE][Easy][12/19] enforce style for empty lines in import segments in test/i*/ ( #129763 )"
...
This reverts commit aecc746fcc .
Reverted https://github.com/pytorch/pytorch/pull/129763 on behalf of https://github.com/XuehaiPan due to need reland after rerunning lintrunner on main ([comment](https://github.com/pytorch/pytorch/pull/129763#issuecomment-2235736732 ))
2024-07-18 06:39:58 +00:00
Xuehai Pan
aecc746fcc
[BE][Easy][12/19] enforce style for empty lines in import segments in test/i*/ ( #129763 )
...
See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501 . Most changes are auto-generated by linter.
You can review these PRs via:
```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129763
Approved by: https://github.com/jansel
2024-07-18 05:13:41 +00:00
xinan.lin
cc518ebd38
[Inductor Intel GPU backend Upstream] Reuse inductor test for Intel GPU (PART 2) ( #124147 )
...
Reuse Inductor test case for Intel GPU.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/124147
Approved by: https://github.com/EikanWang , https://github.com/jansel
2024-06-16 08:07:05 +00:00
Sam Larsen
535bc71d03
Enable FX graph caching in another batch of inductor tests ( #121697 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/121697
Approved by: https://github.com/eellison
2024-03-15 19:38:51 +00:00
PyTorch MergeBot
1e60174891
Revert "[dynamo] Add run_inductor_tests entrypoint ( #113278 )"
...
This reverts commit b00311ce9e .
Reverted https://github.com/pytorch/pytorch/pull/113278 on behalf of https://github.com/huydhn due to Sorry for reverting your stack, but it is failing to list test internally with buck2 ([comment](https://github.com/pytorch/pytorch/pull/113278#issuecomment-1811646325 ))
2023-11-15 01:19:48 +00:00
Jason Ansel
b00311ce9e
[dynamo] Add run_inductor_tests entrypoint ( #113278 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/113278
Approved by: https://github.com/yanboliang
2023-11-11 08:54:43 +00:00
Jack Taylor
60e65a70e5
[ROCm] enable cudagraph inductor UTs on ROCm ( #105662 )
...
These tests can now be enabled after a hipGraph fix landed in 5.6.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105662
Approved by: https://github.com/jithunnair-amd , https://github.com/malfet
2023-08-01 20:55:27 +00:00
Jack Taylor
ede1965f5d
Enable additional inductor test suites on ROCm ( #102270 )
...
Enables additional inductor UTs on ROCm, following from https://github.com/pytorch/pytorch/pull/100981
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102270
Approved by: https://github.com/malfet
2023-06-22 00:36:35 +00:00
Jack Taylor
187eb7ca88
Enable default workflow PyT 2.0 UTs on ROCm stack ( #100981 )
...
PR to enable default workflow PyTorch 2.0 unit tests for the ROCm stack.
- Enables all the dynamo unit test suites
- Enables some of the inductor unit test suites
- `test_config`
- `test_cpp_wrapper` (cpu only)
- `test_minifier`
- `test_standalone_compile`
- `test_torchinductor_dynamic_shapes`
- `test_torchinductor_opinfo`
- `test_torchinductor`
- `test_triton_wrapper`
- Introduces TEST_WITH_ROCM conditions for unit test skip/fail dictionaries in test_torchinductor_dynamic_shapes.py and test_torchinductor_opinfo.py
Note this PR follows on from the discussions for the previous UT enablement PR https://github.com/pytorch/pytorch/pull/97988 , we have opted to only enable a few inductor suites at the moment to ease the upstreaming effort as these files are changing very quickly.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100981
Approved by: https://github.com/jithunnair-amd , https://github.com/malfet
2023-05-15 23:45:04 +00:00
Michael Lazos
ee9a9b7add
Remove old logging callsites ( #98095 )
...
Get around GH first issue, OSS only changes for https://github.com/pytorch/pytorch/pull/97182
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98095
Approved by: https://github.com/anijain2305
2023-04-01 00:57:37 +00:00
puririshi98
8aa34602f7
Jetson Update for CI Redo ( #94549 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94549
Approved by: https://github.com/ezyang , https://github.com/malfet
2023-02-21 17:13:38 +00:00
Xuehai Pan
046e88a291
[BE] [3/3] Rewrite super() calls in test ( #94592 )
...
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/94592
Approved by: https://github.com/ezyang , https://github.com/seemethere
2023-02-12 22:20:53 +00:00
Nikita Shulga
768bd3fb4a
Add torch.compile implementation ( #89607 )
...
`torch.compile` can be used either as decorator or to optimize model directly, for example:
```
@torch.compile
def foo(x):
return torch.sin(x) + x.max()
```
or
```
mod = torch.nn.ReLU()
optimized_mod = torch.compile(mod, mode="max-autotune")
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89607
Approved by: https://github.com/soumith
2022-12-01 20:17:52 +00:00
Bert Maher
87163fe8df
[inductor] Trivial smoke-test ( #87598 )
...
As we're bringing up dynamo+inductor on Meta-internal infra, I keep
wanting a stupidly simple program to run to see if anything at all is working.
This test is that program :-p.
Obviously test_torchinductor.py is more comprehensive but it's also harder to
tell exactly what's going on, whereas this test fits on one screen.
Differential Revision: [D40595798](https://our.internmc.facebook.com/intern/diff/D40595798/ )
**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D40595798/ )!
cc @jansel @lezcano @fdrocha @mlazos @soumith @voznesenskym @yanboliang @penguinwu @anijain2305
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87598
Approved by: https://github.com/anijain2305 , https://github.com/brad-mengchi
2022-10-25 14:29:44 +00:00