Skip to content

Commit 253e4b6

Browse files
committed
2 parents 3a8e823 + 1baebbb commit 253e4b6

File tree

937 files changed

+23045
-8335
lines changed

Some content is hidden

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

937 files changed

+23045
-8335
lines changed

.circleci/cimodel/data/dimensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
]
99

1010
ROCM_VERSIONS = [
11-
"3.9",
1211
"3.10",
12+
"4.0",
1313
]
1414

1515
ROCM_VERSION_LABELS = ["rocm" + v for v in ROCM_VERSIONS]

.circleci/config.yml

Lines changed: 105 additions & 105 deletions
Large diffs are not rendered by default.

.circleci/docker/common/install_conda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
109109
numba \
110110
llvmlite \
111111
unittest-xml-reporting \
112+
boto3==1.16.34 \
112113
coverage \
113114
hypothesis==4.53.2 \
114115
mypy==0.770 \

.circleci/scripts/binary_linux_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ set -eux -o pipefail
77
88
python_nodot="\$(echo $DESIRED_PYTHON | tr -d m.u)"
99
10+
1011
# Set up Python
1112
if [[ "$PACKAGE_TYPE" == conda ]]; then
13+
# There was a bug that was introduced in conda-package-handling >= 1.6.1 that makes archives
14+
# above a certain size fail out when attempting to extract
15+
# see: https://github.com/conda/conda-package-handling/issues/71
16+
conda install -y conda-package-handling=1.6.0
1217
retry conda create -qyn testenv python="$DESIRED_PYTHON"
1318
source activate testenv >/dev/null
1419
elif [[ "$PACKAGE_TYPE" != libtorch ]]; then

.circleci/verbatim-sources/job-specs/pytorch-job-specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
export CIRCLE_JOB="$CIRCLE_JOB"
202202
export CIRCLE_WORKFLOW_ID="$CIRCLE_WORKFLOW_ID"
203203
cd workspace
204-
python test/print_test_stats.py test
204+
python test/print_test_stats.py --upload-to-s3 test
205205
EOL
206206
echo "(cat docker_commands.sh | docker exec -u jenkins -i "$id" bash) 2>&1" > command.sh
207207
unbuffer bash command.sh | ts

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ cppcoreguidelines-*,
2222
hicpp-exception-baseclass,
2323
hicpp-avoid-goto,
2424
modernize-*,
25+
-modernize-concat-nested-namespaces,
2526
-modernize-return-braced-init-list,
2627
-modernize-use-auto,
2728
-modernize-use-default-member-init,

.github/workflows/lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ jobs:
1717
architecture: x64
1818
- name: Checkout PyTorch
1919
uses: actions/checkout@v1
20+
- name: Checkout PR tip
21+
run: |
22+
set -eux
23+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
24+
# We are on a PR, so actions/checkout leaves us on a merge commit.
25+
# Check out the actual tip of the branch.
26+
git checkout ${{ github.event.pull_request.head.sha }}
27+
fi
28+
echo ::set-output name=commit_sha::$(git rev-parse HEAD)
29+
id: get_pr_tip
2030
- name: Ensure consistent CircleCI YAML config
2131
run: |
2232
pip install -r requirements.txt
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Update S3 HTML indices for download.pytorch.org
2+
on:
3+
schedule:
4+
# Update the indices every 30 minutes
5+
- cron: "*/30 * * * *"
6+
# Have the ability to trigger this job manually using the API as well
7+
workflow_dispatch:
8+
9+
jobs:
10+
update-html:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'pytorch' }}
13+
strategy:
14+
matrix:
15+
prefix: ["whl", "whl/test", "whl/nightly"]
16+
steps:
17+
- name: Run updater image
18+
env:
19+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_UPDATE_ACCESS_KEY_ID }}
20+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_UPDATE_SECRET_ACCESS_KEY }}
21+
uses: docker://pytorch/manage_s3_html
22+
with:
23+
args: ${{ matrix.prefix }}

.jenkins/pytorch/win-build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ fi
3838

3939
export SCRIPT_HELPERS_DIR=$SCRIPT_PARENT_DIR/win-test-helpers
4040

41+
set +ex
42+
grep -E -R 'PyLong_(From|As)(Unsigned|)Long\(' --exclude=python_numbers.h torch/
43+
PYLONG_API_CHECK=$?
44+
if [[ $PYLONG_API_CHECK == 0 ]]; then
45+
echo "Usage of PyLong_{From,As}{Unsigned}Long API may lead to overflow errors on Windows"
46+
echo "because \`sizeof(long) == 4\` and \`sizeof(unsigned long) == 4\`."
47+
echo "Please include \"torch/csrc/python_numbers.h\" and use the correspoding APIs instead."
48+
echo "PyLong_FromLong -> THPUtils_packInt32 / THPUtils_packInt64"
49+
echo "PyLong_AsLong -> THPUtils_unpackInt (32-bit) / THPUtils_unpackLong (64-bit)"
50+
echo "PyLong_FromUnsignedLong -> THPUtils_packUInt32 / THPUtils_packUInt64"
51+
echo "PyLong_AsUnsignedLong -> THPUtils_unpackUInt32 / THPUtils_unpackUInt64"
52+
exit 1
53+
fi
54+
set -ex
55+
4156
$SCRIPT_HELPERS_DIR/build_pytorch.bat
4257

4358
assert_git_not_dirty

BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ filegroup(
373373
filegroup(
374374
name = "thc_srcs_cu",
375375
srcs = [
376-
"aten/src/THC/THCBlas.cu.cc",
377376
"aten/src/THC/THCReduceApplyUtils.cu.cc",
378377
"aten/src/THC/THCSleep.cu.cc",
379378
"aten/src/THC/THCSortUtils.cu.cc",

0 commit comments

Comments
 (0)