From df2eef08a390df672f59fc0b42250406ea989c20 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 19 Feb 2024 17:24:04 +1100 Subject: [PATCH] MAINT: remove CUDA=11.8 --- .github/workflows/build.yml | 13 ++--- cuda-11.8.0-anaconda-2023-09-py311/Dockerfile | 49 ------------------- .../environment.yml | 26 ---------- 3 files changed, 3 insertions(+), 85 deletions(-) delete mode 100644 cuda-11.8.0-anaconda-2023-09-py311/Dockerfile delete mode 100644 cuda-11.8.0-anaconda-2023-09-py311/environment.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0563095..12005e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,16 +108,9 @@ jobs: # push: true # tags: mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-d - # - name: Build & Push (cuda-12.3.1-anaconda-2023-09-py311) - # uses: docker/build-push-action@v3.2.0 - # with: - # context: cuda-12.3.1-anaconda-2023-09-py311 - # push: true - # tags: mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2023-09-py311 - - - name: Build & Push (cuda-11.8.0-anaconda-2023-09-py311) + - name: Build & Push (cuda-12.3.1-anaconda-2023-09-py311) uses: docker/build-push-action@v3.2.0 with: - context: cuda-11.8.0-anaconda-2023-09-py311 + context: cuda-12.3.1-anaconda-2023-09-py311 push: true - tags: mmcky/quantecon-lecture-python:cuda-11.8.0-anaconda-2023-09-py311 \ No newline at end of file + tags: mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2023-09-py311 \ No newline at end of file diff --git a/cuda-11.8.0-anaconda-2023-09-py311/Dockerfile b/cuda-11.8.0-anaconda-2023-09-py311/Dockerfile deleted file mode 100644 index a5d5e3b..0000000 --- a/cuda-11.8.0-anaconda-2023-09-py311/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 - -ENV DEBIAN_FRONTEND=noninteractive -RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - -# Install base utilities -RUN apt-get update && \ - apt-get install -y sudo - -# Install tzdata -# ENV TZ=Etc/UTC -# RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -RUN apt-get install -y tzdata - -# Install developer tools -RUN apt-get install -y build-essential && \ - apt-get install -y wget && \ - apt-get install -y git && \ - apt-get install -y python3-pip - -# Install LaTeX build system -RUN apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng ghostscript cm-super - -# Clean apt -RUN sudo apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# Install miniconda -ENV CONDA_DIR /opt/conda -RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ - /bin/bash ~/miniconda.sh -b -p /opt/conda -RUN rm -rf Miniconda3-latest-Linux-x86_64.sh - -# Put conda in path so we can use conda activate -ENV PATH=$CONDA_DIR/bin:$PATH - -# Setup Environment -COPY environment.yml . -RUN conda env create -f environment.yml -RUN echo "source activate quantecon" > ~/.bashrc -ENV PATH /opt/conda/envs/quantecon/bin:$PATH - -# Install JAX -RUN nvcc --version -RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 -RUN pip install pyro-ppl -RUN pip install "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html -# Note: always install jax[cuda] last to ensure proper CUDA+CUDANN version linking -RUN pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html diff --git a/cuda-11.8.0-anaconda-2023-09-py311/environment.yml b/cuda-11.8.0-anaconda-2023-09-py311/environment.yml deleted file mode 100644 index f275d6c..0000000 --- a/cuda-11.8.0-anaconda-2023-09-py311/environment.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: quantecon -channels: - - default -dependencies: - - python=3.11 - - anaconda=2023.09 - - pip - - pip: - - jupyter-book==0.15.1 - - quantecon-book-theme==0.7.1 - - sphinx-tojupyter==0.3.0 - - sphinxext-rediraffe==0.2.7 - - sphinx-reredirects==0.1.3 - - sphinx-exercise==0.4.1 - - ghp-import==1.1.0 - - sphinxcontrib-youtube==1.1.0 - - sphinx-togglebutton==0.3.1 - - array-to-latex - - prettytable - - kaleido - - arviz - # Docker Requirements - - pytz - # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) - - docutils==0.17.1 -