Skip to content

Commit 431bda7

Browse files
committed
Update
[ghstack-poisoned]
2 parents 2c991f1 + 6a9713e commit 431bda7

File tree

289 files changed

+4202
-1486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+4202
-1486
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export-D64151426
1+
16b633b4daa7f3d3442be62a3589bd60b2f7fdc7

.ci/pytorch/test.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ test_python() {
296296
}
297297

298298

299-
test_dynamo_shard() {
299+
test_dynamo_wrapped_shard() {
300300
if [[ -z "$NUM_TEST_SHARDS" ]]; then
301301
echo "NUM_TEST_SHARDS must be defined to run a Python test shard"
302302
exit 1
@@ -380,6 +380,10 @@ test_inductor_cpp_wrapper() {
380380
TEST_REPORTS_DIR=$(pwd)/test/test-reports
381381
mkdir -p "$TEST_REPORTS_DIR"
382382

383+
# Run certain inductor unit tests with cpp wrapper. In the end state, we should be able to run all the inductor
384+
# unit tests with cpp wrapper.
385+
python test/run_test.py --include inductor/test_torchinductor.py --verbose
386+
383387
python benchmarks/dynamo/timm_models.py --device cuda --accuracy --amp \
384388
--training --inductor --disable-cudagraphs --only vit_base_patch16_224 \
385389
--output "$TEST_REPORTS_DIR/inductor_cpp_wrapper_training.csv"
@@ -802,7 +806,7 @@ test_without_numpy() {
802806
# Regression test for https://github.com/pytorch/pytorch/issues/66353
803807
python -c "import sys;sys.path.insert(0, 'fake_numpy');import torch;print(torch.tensor([torch.tensor(0.), torch.tensor(1.)]))"
804808
# Regression test for https://github.com/pytorch/pytorch/issues/109387
805-
if [[ "${TEST_CONFIG}" == *dynamo* ]]; then
809+
if [[ "${TEST_CONFIG}" == *dynamo_wrapped* ]]; then
806810
python -c "import sys;sys.path.insert(0, 'fake_numpy');import torch;torch.compile(lambda x:print(x))('Hello World')"
807811
fi
808812
popd
@@ -1475,9 +1479,9 @@ elif [[ "${TEST_CONFIG}" == *inductor* ]]; then
14751479
test_inductor_distributed
14761480
fi
14771481
fi
1478-
elif [[ "${TEST_CONFIG}" == *dynamo* ]]; then
1482+
elif [[ "${TEST_CONFIG}" == *dynamo_wrapped* ]]; then
14791483
install_torchvision
1480-
test_dynamo_shard "${SHARD_NUMBER}"
1484+
test_dynamo_wrapped_shard "${SHARD_NUMBER}"
14811485
if [[ "${SHARD_NUMBER}" == 1 ]]; then
14821486
test_aten
14831487
fi

.github/ci_commit_pins/audio.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
79047bf6bdec9e32c4cffd0f9835b347781fefbf
1+
fa44bdab1fe49bab58389e7b6a33061ffced9bc7

.github/templates/linux_binary_build_workflow.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ env:
5353

5454
jobs:
5555
get-label-type:
56+
if: github.repository_owner == 'pytorch'
5657
name: get-label-type
5758
uses: pytorch/pytorch/.github/workflows/_runner-determinator.yml@main
5859
with:

.github/templates/windows_binary_build_workflow.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ env:
5454

5555
jobs:
5656
get-label-type:
57+
if: github.repository_owner == 'pytorch'
5758
name: get-label-type
5859
uses: pytorch/pytorch/.github/workflows/_runner-determinator.yml@main
5960
with:

.github/workflows/auto_request_review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
auto-request-review:
88
# Don't run on forked repos
9-
if: ${{ !github.event.pull_request.head.repo.fork }}
9+
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'pytorch' }}
1010
permissions:
1111
contents: read
1212
pull-requests: write

.github/workflows/build-android-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ concurrency:
2626

2727
jobs:
2828
android-build-test:
29+
if: github.repository_owner == 'pytorch'
2930
name: android-build-test
3031
uses: ./.github/workflows/_run_android_tests.yml
3132
with:

.github/workflows/build-conda-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ concurrency:
3131

3232
jobs:
3333
build-docker:
34+
if: github.repository_owner == 'pytorch'
3435
environment: ${{ (github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags/v')) && 'docker-build' || '' }}
3536
runs-on: linux.9xlarge.ephemeral
3637
strategy:

.github/workflows/build-ios-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ concurrency:
3838
jobs:
3939
# TODO: Figure out how to migrate this job to M1 runner
4040
ios-build-test:
41+
if: github.repository_owner == 'pytorch'
4142
name: ios-build-test
4243
uses: ./.github/workflows/_ios-build-test.yml
4344
with:

.github/workflows/build-libtorch-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ concurrency:
3030

3131
jobs:
3232
get-label-type:
33+
if: github.repository_owner == 'pytorch'
3334
name: get-label-type
3435
uses: pytorch/pytorch/.github/workflows/_runner-determinator.yml@main
3536
with:

0 commit comments

Comments
 (0)