Skip to content

Commit

Permalink
Docker: Upgrade to nvidia/cuda:11.8.0-devel-ubuntu20.04 and disable C…
Browse files Browse the repository at this point in the history
…UDA JIT cache
  • Loading branch information
oschuett committed Oct 25, 2022
1 parent 1d3909a commit 331359a
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 10 deletions.
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.prod_cuda_A100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.prod_cuda_A100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.prod_cuda_P100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.prod_cuda_P100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.prod_cuda_V100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.prod_cuda_V100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_cuda_A100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_cuda_A100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_cuda_P100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_cuda_P100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_cuda_V100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_cuda_V100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_performance_cuda_A100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_performance_cuda_A100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_performance_cuda_P100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_performance_cuda_P100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/Dockerfile.test_performance_cuda_V100
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
# Usage: docker build -f ./Dockerfile.test_performance_cuda_V100 ../../
#

FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04

# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64

# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1

# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down
6 changes: 5 additions & 1 deletion tools/docker/generate_dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,16 @@ def toolchain_intel() -> str:
# ======================================================================================
def toolchain_cuda(gpu_ver: str) -> str:
return rf"""
FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04
# Setup CUDA environment.
ENV CUDA_PATH /usr/local/cuda
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64
# Disable JIT cache as there seems to be an issue with file locking on overlayfs.
# See also https://github.com/cp2k/cp2k/pull/2337
ENV CUDA_CACHE_DISABLE 1
# Install Ubuntu packages.
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
gfortran \
Expand Down

0 comments on commit 331359a

Please sign in to comment.