Skip to content

Commit

Permalink
Use the conda channel defined in docker.Makefile to install cudatoolk…
Browse files Browse the repository at this point in the history
…it (pytorch#53316)

Summary: Pull Request resolved: pytorch#53316

Test Plan:
Nightly Docker build CI

This is a follow-up PR after docker moved default CUDA => 11.1. Only merge this after pytorch#53299 is committed.

Reviewed By: albanD

Differential Revision: D26996287

Pulled By: xuzhao9

fbshipit-source-id: 0c2e03da41d036d7aada3e07d479a3dede219f58
  • Loading branch information
xuzhao9 authored and facebook-github-bot committed Mar 12, 2021
1 parent 90dfdef commit 7763bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/build_publish_nightly_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
set -xeuo pipefail

PYTORCH_DOCKER_TAG=$(git describe --tags --always)-devel
CUDA_VERSION=11.1.1
CUDA_VERSION=11.1

# Build PyTorch nightly docker
make -f docker.Makefile \
DOCKER_REGISTRY=ghcr.io \
DOCKER_ORG=pytorch \
CUDA_VERSION=${CUDA_VERSION} \
CUDA_CHANNEL=conda-forge \
DOCKER_IMAGE=pytorch-nightly \
DOCKER_TAG=${PYTORCH_DOCKER_TAG} \
INSTALL_CHANNEL=pytorch-nightly BUILD_TYPE=official devel-image
Expand Down
2 changes: 1 addition & 1 deletion docker.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BASE_RUNTIME = ubuntu:18.04
BASE_DEVEL = nvidia/cuda:$(CUDA_VERSION)-cudnn$(CUDNN_VERSION)-devel-ubuntu18.04

# The conda channel to use to install cudatoolkit
CUDA_CHANNEL = defaults
CUDA_CHANNEL = nvidia
# The conda channel to use to install pytorch / torchvision
INSTALL_CHANNEL = pytorch

Expand Down

0 comments on commit 7763bb6

Please sign in to comment.