Skip to content

Commit 625dd01

Browse files
authored
Merge pull request #993 from ROCmSoftwarePlatform/IFU-master-2022-04-11
IFU-master-2022-04-11
2 parents 9dad297 + 87dbfd5 commit 625dd01

File tree

960 files changed

+56423
-26600
lines changed

Some content is hidden

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

960 files changed

+56423
-26600
lines changed

.circleci/cimodel/data/dimensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"102",
55
"113",
66
"115",
7+
"116",
78
]
89

910
ROCM_VERSIONS = [

.circleci/docker/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ case "$image" in
145145
VISION=yes
146146
KATEX=yes
147147
;;
148+
pytorch-linux-bionic-cuda11.6-cudnn8-py3-gcc7)
149+
CUDA_VERSION=11.6.0
150+
CUDNN_VERSION=8
151+
ANACONDA_PYTHON_VERSION=3.7
152+
CMAKE_VERSION=3.10.3
153+
GCC_VERSION=7
154+
PROTOBUF=yes
155+
DB=yes
156+
VISION=yes
157+
KATEX=yes
158+
;;
148159
pytorch-linux-xenial-py3-clang5-asan)
149160
ANACONDA_PYTHON_VERSION=3.7
150161
CLANG_VERSION=5.0

.circleci/docker/common/install_user.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
set -ex
44

55
# Mirror jenkins user in container
6-
echo "jenkins:x:1014:1014::/var/lib/jenkins:" >> /etc/passwd
7-
echo "jenkins:x:1014:" >> /etc/group
6+
# jenkins user as ec2-user should have the same user-id
7+
echo "jenkins:x:1000:1000::/var/lib/jenkins:" >> /etc/passwd
8+
echo "jenkins:x:1000:" >> /etc/group
89

910
# Create $HOME
1011
mkdir -p /var/lib/jenkins

.circleci/scripts/binary_linux_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if [[ "\$python_nodot" = *39* ]]; then
5353
NUMPY_PIN=">=1.20"
5454
fi
5555
56-
if [[ "$DESIRED_CUDA" == "cu112" || "$DESIRED_CUDA" == "cu115" ]]; then
56+
if [[ "$DESIRED_CUDA" == "cu115" || "$DESIRED_CUDA" == "cu116" ]]; then
5757
EXTRA_CONDA_FLAGS="-c=conda-forge"
5858
fi
5959

.circleci/scripts/cpp_doc_push_script.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ cp torch/_utils_internal.py tools/shared
6565

6666
# Generate PyTorch files
6767
time python tools/setup_helpers/generate_code.py \
68-
--native-functions-path aten/src/ATen/native/native_functions.yaml \
69-
--nn-path aten/src/
68+
--native-functions-path aten/src/ATen/native/native_functions.yaml
7069

7170
# Build the docs
7271
pushd docs/cpp

.circleci/scripts/setup_ci_environment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if ! command -v aws >/dev/null; then
3232
fi
3333

3434
if [ -n "${USE_CUDA_DOCKER_RUNTIME:-}" ]; then
35-
DRIVER_FN="NVIDIA-Linux-x86_64-495.44.run"
35+
DRIVER_FN="NVIDIA-Linux-x86_64-510.60.02.run"
3636
wget "https://s3.amazonaws.com/ossci-linux/nvidia_driver/$DRIVER_FN"
3737
sudo /bin/bash "$DRIVER_FN" -s --no-drm || (sudo cat /var/log/nvidia-installer.log && false)
3838
nvidia-smi

.circleci/scripts/windows_cuda_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ case ${CUDA_VERSION} in
2222
cuda_installer_name="cuda_11.5.0_496.13_win10"
2323
cuda_install_packages="thrust_11.5 nvcc_11.5 cuobjdump_11.5 nvprune_11.5 nvprof_11.5 cupti_11.5 cublas_11.5 cublas_dev_11.5 cudart_11.5 cufft_11.5 cufft_dev_11.5 curand_11.5 curand_dev_11.5 cusolver_11.5 cusolver_dev_11.5 cusparse_11.5 cusparse_dev_11.5 npp_11.5 npp_dev_11.5 nvrtc_11.5 nvrtc_dev_11.5 nvml_dev_11.5"
2424
;;
25+
11.6)
26+
cuda_installer_name="cuda_11.6.0_511.23_windows"
27+
cuda_install_packages="thrust_11.6 nvcc_11.6 cuobjdump_11.6 nvprune_11.6 nvprof_11.6 cupti_11.6 cublas_11.6 cublas_dev_11.6 cudart_11.6 cufft_11.6 cufft_dev_11.6 curand_11.6 curand_dev_11.6 cusolver_11.6 cusolver_dev_11.6 cusparse_11.6 cusparse_dev_11.6 npp_11.6 npp_dev_11.6 nvrtc_11.6 nvrtc_dev_11.6 nvml_dev_11.6"
28+
;;
2529
*)
2630
echo "CUDA_VERSION $CUDA_VERSION is not supported yet"
2731
exit 1

.circleci/scripts/windows_cudnn_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ case ${CUDA_VERSION} in
2222
# Since cudnn 8.3 the filename have changed
2323
cudnn_file_name="cudnn-windows-x86_64-8.3.2.44_cuda${CUDA_VERSION}-archive"
2424
;;
25+
11.6)
26+
# Use cudnn8.3 with hard-coded cuda11.5 version
27+
cudnn_file_name="cudnn-windows-x86_64-8.3.2.44_cuda11.5-archive"
28+
;;
2529
*)
2630
echo "CUDA_VERSION: ${CUDA_VERSION} not supported yet"
2731
exit 1

.github/actions/download-build-artifacts/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
steps:
1616
- name: Download PyTorch Build Artifacts from S3
1717
if: ${{ !inputs.use-gha }}
18-
uses: seemethere/download-artifact-s3@0504774707cbc8603d7dca922e8026eb8bf3b47b
18+
uses: seemethere/download-artifact-s3@v3
1919
with:
2020
name: ${{ inputs.name }}
2121

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Get workflow job id
2+
3+
description: Get the ID of the workflow job that is currently running.
4+
5+
inputs:
6+
github-token:
7+
description: GITHUB_TOKEN
8+
required: true
9+
10+
outputs:
11+
job-id:
12+
description: The retrieved workflow job id
13+
value: ${{ steps.get-job-id.outputs.job-id }}
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- uses: nick-fields/retry@71062288b76e2b6214ebde0e673ce0de1755740a
19+
id: get-job-id
20+
env:
21+
GITHUB_TOKEN: ${{ inputs.github-token }}
22+
with:
23+
shell: bash
24+
timeout_minutes: 10
25+
max_attempts: 5
26+
retry_wait_seconds: 30
27+
command: |
28+
set -x
29+
python3 -m pip install requests==2.26.0
30+
GHA_WORKFLOW_JOB_ID=$(python3 .github/scripts/get_workflow_job_id.py "${GITHUB_RUN_ID}" "${RUNNER_NAME}")
31+
echo "::set-output name=job-id::${GHA_WORKFLOW_JOB_ID}"

.github/actions/setup-win/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ runs:
3131
run: |
3232
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
3333
34+
# Since it's just a defensive command, the workflow should continue even the command fails
35+
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
36+
shell: powershell
37+
run: |
38+
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
39+
3440
- name: Install Visual Studio 2019 toolchain
3541
shell: powershell
3642
env:

.github/actions/upload-test-artifacts/action.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ inputs:
77
description: If set to any value, upload GHA. Otherwise upload to S3.
88
required: false
99
file-suffix:
10-
description: Suffix to add to the filename of the artifacts
10+
description: |
11+
Suffix to add to the filename of the artifacts. This should include the
12+
workflow job id, see [Job id in artifacts].
1113
required: true
1214

1315
runs:
1416
using: composite
1517
steps:
1618
# Mac/Linux zip
1719
- name: Zip JSONs for upload
18-
if: runner.os != 'Windows'
20+
if: runner.os != 'Windows' && !inputs.use-gha
1921
shell: bash
2022
env:
2123
FILE_SUFFIX: ${{ inputs.file-suffix }}
@@ -25,7 +27,7 @@ runs:
2527
zip -r "test-jsons-${FILE_SUFFIX}.zip" test -i '*.json'
2628
2729
- name: Zip test reports for upload
28-
if: runner.os != 'Windows'
30+
if: runner.os != 'Windows' && !inputs.use-gha
2931
shell: bash
3032
env:
3133
FILE_SUFFIX: ${{ inputs.file-suffix }}
@@ -36,7 +38,7 @@ runs:
3638
3739
# Windows zip
3840
- name: Zip JSONs for upload
39-
if: runner.os == 'Windows'
41+
if: runner.os == 'Windows' && !inputs.use-gha
4042
shell: powershell
4143
env:
4244
FILE_SUFFIX: ${{ inputs.file-suffix }}
@@ -45,7 +47,7 @@ runs:
4547
7z a "test-jsons-$Env:FILE_SUFFIX.zip" -ir'!test\*.json'
4648
4749
- name: Zip test reports for upload
48-
if: runner.os == 'Windows'
50+
if: runner.os == 'Windows' && !inputs.use-gha
4951
shell: powershell
5052
env:
5153
FILE_SUFFIX: ${{ inputs.file-suffix }}
@@ -55,15 +57,15 @@ runs:
5557
5658
# S3 upload
5759
- name: Store Test Downloaded JSONs on S3
58-
uses: seemethere/upload-artifact-s3@v3
60+
uses: seemethere/upload-artifact-s3@v4
5961
if: ${{ !inputs.use-gha }}
6062
with:
6163
retention-days: 14
6264
if-no-files-found: warn
6365
path: test-jsons-*.zip
6466

6567
- name: Store Test Reports on S3
66-
uses: seemethere/upload-artifact-s3@v3
68+
uses: seemethere/upload-artifact-s3@v4
6769
if: ${{ !inputs.use-gha }}
6870
with:
6971
retention-days: 14
@@ -75,15 +77,18 @@ runs:
7577
uses: actions/upload-artifact@v2
7678
if: inputs.use-gha
7779
with:
80+
# Add the run attempt, see [Artifact run attempt]
81+
name: test-jsons-runattempt${{ github.run_attempt }}-${{ inputs.file-suffix }}.zip
7882
retention-days: 14
7983
if-no-files-found: warn
80-
path: test-jsons-*.zip
84+
path: test/**/*.json
8185

8286
- name: Store Test Reports on Github
8387
uses: actions/upload-artifact@v2
8488
if: inputs.use-gha
8589
with:
86-
name: test-reports
90+
# Add the run attempt, see [Artifact run attempt]
91+
name: test-reports-runattempt${{ github.run_attempt }}-${{ inputs.file-suffix }}.zip
8792
retention-days: 14
8893
if-no-files-found: error
89-
path: test-reports-*.zip
94+
path: test/**/*.xml

.github/generated-ciflow-ruleset.json

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

.github/merge_rules.json

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -44,80 +44,7 @@
4444
{
4545
"name": "superuser",
4646
"patterns": ["*"],
47-
"approved_by": [
48-
"aaronenyeshi",
49-
"alanwaketan",
50-
"albanD",
51-
"angelayi",
52-
"anijain2305",
53-
"anjali411",
54-
"ansley",
55-
"awgu",
56-
"bertmaher",
57-
"bdhirsh",
58-
"cbalioglu",
59-
"Chillee",
60-
"cpuhrsch",
61-
"dagitses",
62-
"davidberard98",
63-
"desertfire",
64-
"eellison",
65-
"ejguan",
66-
"ezyang",
67-
"fduwjj",
68-
"Gamrix",
69-
"gchanan",
70-
"george-qi",
71-
"gmagogsfm",
72-
"hlu1",
73-
"huiguoo",
74-
"H-Huang",
75-
"jaceyca",
76-
"jamesr66a",
77-
"jansel",
78-
"jbschlosser",
79-
"jiayisuse",
80-
"Krovatkin",
81-
"kumpera",
82-
"kwen2501",
83-
"malfet",
84-
"mikaylagawarecki",
85-
"mikeiovine",
86-
"mingzhe09088",
87-
"mrshenli",
88-
"mruberry",
89-
"navahgar",
90-
"ngimel",
91-
"NicolasHug",
92-
"nikithamalgifb",
93-
"NivekT",
94-
"osalpekar",
95-
"PaliC",
96-
"pbelevich",
97-
"pritamdamania87",
98-
"qihqi",
99-
"robieta",
100-
"rohan-varma",
101-
"saketh-are",
102-
"samdow",
103-
"seemethere",
104-
"SherlockNoMad",
105-
"shunting314",
106-
"soulitzer",
107-
"suo",
108-
"tugsbayasgalan",
109-
"VitalyFedyunin",
110-
"vmoens",
111-
"wanchaol",
112-
"wconstab",
113-
"wenleix",
114-
"yaroslavvb",
115-
"zdevito",
116-
"zhaojuanmao",
117-
"zhxchen17",
118-
"ZolotukhinM",
119-
"zou3519"
120-
],
47+
"approved_by": ["pytorch/metamates"],
12148
"mandatory_checks_name": ["Facebook CLA Check", "Lint"]
12249
}
12350
]

.github/scale-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runner_types:
3030
linux.2xlarge:
3131
instance_type: c5.2xlarge
3232
os: linux
33-
max_available: 500
33+
max_available: 750
3434
disk_size: 150
3535
is_ephemeral: false
3636
linux.4xlarge: # for binary-builds

0 commit comments

Comments
 (0)