Skip to content

Commit 2e1ea85

Browse files
wanchaolpytorchmergebot
authored andcommitted
[dtensor] move all tests to distribute/tensor folder (pytorch#144166)
as titled, mainly moving files Pull Request resolved: pytorch#144166 Approved by: https://github.com/Skylion007
1 parent d0f5df8 commit 2e1ea85

35 files changed

+18
-19
lines changed

.ci/pytorch/multigpu-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ if [[ "${SHARD_NUMBER:-2}" == "2" ]]; then
4343
time python test/run_test.py --verbose -i distributed/test_functional_api
4444

4545
# DTensor tests
46-
time python test/run_test.py --verbose -i distributed/_tensor/test_random_ops
47-
time python test/run_test.py --verbose -i distributed/_tensor/test_dtensor_compile
46+
time python test/run_test.py --verbose -i distributed/tensor/test_random_ops
47+
time python test/run_test.py --verbose -i distributed/tensor/test_dtensor_compile
4848

4949
# DeviceMesh test
5050
time python test/run_test.py --verbose -i distributed/test_device_mesh

.ci/pytorch/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ test_inductor_distributed() {
329329
python test/run_test.py -i inductor/test_aot_inductor.py -k test_non_default_cuda_device --verbose
330330
python test/run_test.py -i inductor/test_aot_inductor.py -k test_replicate_on_devices --verbose
331331
python test/run_test.py -i distributed/test_c10d_functional_native.py --verbose
332-
python test/run_test.py -i distributed/_tensor/test_dtensor_compile.py --verbose
332+
python test/run_test.py -i distributed/tensor/test_dtensor_compile.py --verbose
333333
python test/run_test.py -i distributed/tensor/parallel/test_micro_pipeline_tp.py --verbose
334334
python test/run_test.py -i distributed/_composable/test_replicate_with_compiler.py --verbose
335335
python test/run_test.py -i distributed/_composable/fsdp/test_fully_shard_comm.py --verbose

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
- torch/fx/experimental/sym_node.py
3131
- torch/fx/experimental/validator.py
3232
- torch/fx/experimental/proxy_tensor.py
33-
- test/distributed/_tensor/test_dtensor_compile.py
33+
- test/distributed/tensor/test_dtensor_compile.py
3434
- test/distributed/tensor/parallel/test_fsdp_2d_parallel.py
35-
- torch/distributed/_tensor/**
35+
- torch/distributed/tensor/**
3636
- torch/distributed/fsdp/**
3737
- torch/csrc/inductor/**
3838
- torch/csrc/dynamo/**

test/distributed/_tensor/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/distributed/tensor/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Run distributed tensor tests:
2+
3+
from root, run (either CPU or GPU)
4+
5+
`pytest test/distributed/tensor/test_dtensor.py`
6+
7+
8+
run specific test cases and print stdout/stderr:
9+
10+
`pytest test/distributed/tensor/test_dtensor.py -s -k test_from_local`
File renamed without changes.

0 commit comments

Comments
 (0)