Skip to content

Instantly share code, notes, and snippets.

@johnlees
Created July 20, 2021 14:45
Show Gist options
  • Save johnlees/309301a843fff7c891a9d4ed2f67e01c to your computer and use it in GitHub Desktop.
Save johnlees/309301a843fff7c891a9d4ed2f67e01c to your computer and use it in GitHub Desktop.
Git patch for CUDA 11.1
From 95ea1abb942e8da86faa1f1856fed316dcd95985 Mon Sep 17 00:00:00 2001
From: John Lees <lees.john6@gmail.com>
Date: Tue, 20 Jul 2021 15:44:19 +0100
Subject: [PATCH] Update CUDA version
---
docker/Dockerfile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 46b9668..2682d7e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ARG CUDA=11.0
-FROM nvidia/cuda:${CUDA}-base
+ARG CUDA=11.1
+FROM nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04
# FROM directive resets ARGS, so we specify again (the value is retained if
# previously set).
ARG CUDA
@@ -52,7 +52,7 @@ ENV PATH="/opt/conda/bin:$PATH"
RUN conda update -qy conda \
&& conda install -y -c conda-forge \
openmm=7.5.1 \
- cudatoolkit==${CUDA}.3 \
+ cudatoolkit==${CUDA}.1 \
pdbfixer \
pip
@@ -63,7 +63,7 @@ RUN wget -q -P /app/alphafold/alphafold/common/ \
# Install pip packages.
RUN pip3 install --upgrade pip \
&& pip3 install -r /app/alphafold/requirements.txt \
- && pip3 install --upgrade jax jaxlib==0.1.69+cuda${CUDA/./} -f \
+ && pip3 install --upgrade jax jaxlib==0.1.69+cuda111 -f \
https://storage.googleapis.com/jax-releases/jax_releases.html
# Apply OpenMM patch.
--
2.17.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment