Skip to content

Commit b6e1944

Browse files
seemetherefacebook-github-bot
authored andcommitted
.circleci: Explicitly remove nvidia apt repos (#41367)
Summary: The nvidia apt repositories seem to be left over on the amd nodes so let's just go ahead and remove them explicitly if we're not testing for CUDA Example: https://app.circleci.com/pipelines/github/pytorch/pytorch/190222/workflows/8f75b5cd-1afd-43dc-9fa7-f7b058f07b46/jobs/6223743/steps Signed-off-by: Eli Uriegas <eliuriegas@fb.com> Pull Request resolved: #41367 Reviewed By: ezyang Differential Revision: D22513844 Pulled By: seemethere fbshipit-source-id: 6da4dd8423de5f7ec80c7904187cf80c1b91ab14
1 parent d601325 commit b6e1944

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.circleci/scripts/setup_ci_environment.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ if [[ "${BUILD_ENVIRONMENT}" == *cu* ]]; then
77
echo "deb https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64 /" | sudo tee -a /etc/apt/sources.list.d/nvidia-docker.list
88
echo "deb https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64 /" | sudo tee -a /etc/apt/sources.list.d/nvidia-docker.list
99
echo "deb https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64 /" | sudo tee -a /etc/apt/sources.list.d/nvidia-docker.list
10+
else
11+
# Explicitly remove nvidia docker apt repositories if not building for cuda
12+
sudo rm -rf /etc/apt/sources.list.d/nvidia-docker.list
1013
fi
1114

1215
# Remove unnecessary sources

0 commit comments

Comments
 (0)