Skip to content

Commit

Permalink
make sparseml Docker fix conditional (#942)
Browse files Browse the repository at this point in the history
* remove sparseml Dockerfile cuda temporary error fix

the original error has been fixed (https://github.com/NVIDIA/nvidia-docker/issues/1632) and pulling the latest nvidia cuda ubuntu image and running the fix will produce an error

**test_plan**
build passes locally (second rm command gets a no such file error previously)

* make fix conditional

* command fix
  • Loading branch information
bfineran committed Jul 22, 2022
1 parent b6d5293 commit 50a8c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04 as base
# As of 05/05/22 nvidia images are broken. Two lines below are a temporary fix.
# Source: https://github.com/NVIDIA/nvidia-docker/issues/1632

RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list
RUN if [ -f /etc/apt/sources.list.d/cuda.list ] ; then rm /etc/apt/sources.list.d/cuda.list ; fi
RUN if [ -f /etc/apt/sources.list.d/nvidia-ml.list ] ; then rm /etc/apt/sources.list.d/nvidia-ml.list ; fi

RUN : \
&& apt-get update \
Expand Down

0 comments on commit 50a8c1f

Please sign in to comment.