Skip to content

Commit 97a4e52

Browse files
atalmanfacebook-github-bot
authored andcommitted
CUDA 11.6 workflows (pytorch#75518)
Summary: Adding CUDA 11.6 workflows . Please note we still depend on conda-forge for cuda 11.6. Issue created to remove conda-forge dependency: [75532](pytorch#75532) Pull Request resolved: pytorch#75518 Reviewed By: janeyx99 Differential Revision: D35516057 Pulled By: atalman fbshipit-source-id: 44a3a0f8954d98adca2280b2e9f203267ebe98cd
1 parent aae11d9 commit 97a4e52

20 files changed

+12801
-12852
lines changed

.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

.github/scripts/generate_binary_build_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import Dict, List, Tuple, Optional
1414

1515

16-
CUDA_ARCHES = ["10.2", "11.3", "11.5"]
16+
CUDA_ARCHES = ["10.2", "11.3", "11.5", "11.6"]
1717

1818

1919
ROCM_ARCHES = ["4.5.2", "5.0"]

.github/templates/common.yml.j2

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -136,23 +136,10 @@ on:
136136
{%- endmacro -%}
137137

138138
{%- macro setup_ec2_linux() -%}
139-
!{{ display_ec2_information() }}
140-
- name: Start docker if docker deamon is not running
141-
run: |
142-
if systemctl is-active --quiet docker; then
143-
echo "Docker daemon is running...";
144-
else
145-
echo "Starting docker deamon..." && sudo systemctl start docker;
146-
fi
147-
- name: Log in to ECR
148-
env:
149-
AWS_RETRY_MODE: standard
150-
AWS_MAX_ATTEMPTS: 5
151-
run: |
152-
AWS_ACCOUNT_ID=$(aws sts get-caller-identity|grep Account|cut -f4 -d\")
153-
!{{ add_retry_to_env() }}
154-
retry aws ecr get-login-password --region "$AWS_DEFAULT_REGION" | docker login --username AWS \
155-
--password-stdin "$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com"
139+
- name: Checkout PyTorch
140+
uses: pytorch/pytorch/.github/actions/checkout-pytorch@master
141+
- name: Setup Linux
142+
uses: ./.github/actions/setup-linux
156143
- name: Chown workspace
157144
run: |
158145
!{{ add_retry_to_env() }}
@@ -167,9 +154,6 @@ on:
167154
uses: seemethere/add-github-ssh-key@v1
168155
with:
169156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170-
- name: Preserve github env variables for use in docker
171-
run: |
172-
env | grep '^GITHUB' > "/tmp/github_env_${GITHUB_RUN_ID}"
173157
{%- endmacro -%}
174158

175159
{%- macro setup_rocm_linux() -%}

0 commit comments

Comments
 (0)