mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Retry apt-get during setup_ci_workspace (#63319)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63319 Test Plan: Imported from OSS Reviewed By: anjali411 Differential Revision: D30346067 Pulled By: bertmaher fbshipit-source-id: 2aafa97e78f9297553d772b2524d6f1c0ebaa46e
This commit is contained in:
parent
dbcfd7739f
commit
0074a099a8
1 changed files with 2 additions and 2 deletions
|
|
@ -43,9 +43,9 @@ if [ -n "${USE_CUDA_DOCKER_RUNTIME:-}" ]; then
|
|||
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
|
||||
curl -s -L "https://nvidia.github.io/nvidia-docker/${distribution}/nvidia-docker.list" | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
|
||||
|
||||
sudo apt-get update -qq
|
||||
retry sudo apt-get update -qq
|
||||
# Necessary to get the `--gpus` flag to function within docker
|
||||
sudo apt-get install -y nvidia-container-toolkit
|
||||
retry sudo apt-get install -y nvidia-container-toolkit
|
||||
sudo systemctl restart docker
|
||||
else
|
||||
# Explicitly remove nvidia docker apt repositories if not building for cuda
|
||||
|
|
|
|||
Loading…
Reference in a new issue