Skip to content

Commit

Permalink
cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
briney committed Dec 3, 2024
1 parent 05f251b commit 4298ee4
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions jupyterhub/deeplearning/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,33 @@ RUN wget --directory-prefix=${REQUIREMENTS_DIR} https://raw.githubusercontent.co
# Version error fix: https://github.com/google-deepmind/alphafold/issues/945
# RUN mamba install -y -c nvidia --file ${REQUIREMENTS_DIR}/cuda_mamba.txt \

RUN mamba install --yes -c nvidia "cuda-toolkit~=12.4" \
# RUN mamba install --yes -c nvidia "cuda-toolkit~=12.4" \
# && mamba clean --all -f -y \
# # link cuda directory (installed by mamba) to /usr/local/cuda
# # without this, jax can't find libdevice.10.bc
# # see: https://github.com/jax-ml/jax/issues/4452
# && sudo mkdir -p /usr/local/cuda \
# && sudo ln -s /opt/conda/* /usr/local/cuda/


RUN mamba install --yes -c nvidia \
"cuda~=12.4" \
"cuda-tools~=12.4" \
"cuda-toolkit~=12.4" \
# "cuda-version~=12.4" \
"cuda-command-line-tools~=12.4" \
"cuda-compiler~=12.4" \
"cuda-runtime~=12.4" \
&& mamba clean --all -f -y \
# link cuda directory (installed by mamba) to /usr/local/cuda
# without this, jax can't find libdevice.10.bc
# see: https://github.com/jax-ml/jax/issues/4452
&& sudo mkdir -p /usr/local/cuda \
&& sudo ln -s /opt/conda/* /usr/local/cuda/


RUN mamba install --yes -c nvidia \
"cuda~=12.4" \
"cuda-tools~=12.4" \
# "cuda-toolkit~=12.4" \
"cuda-version~=12.4" \
"cuda-command-line-tools~=12.4" \
"cuda-compiler~=12.4" \
"cuda-runtime~=12.4" \
&& mamba clean --all -f -y
# # link cuda directory (installed by mamba) to /usr/local/cuda
# # without this, jax can't find libdevice.10.bc
# # see: https://github.com/jax-ml/jax/issues/4452
# && sudo mkdir -p /usr/local/cuda \
# && sudo ln -s /opt/conda/* /usr/local/cuda/


# RUN python3 -m pip install nvidia-pyindex
Expand Down

0 comments on commit 4298ee4

Please sign in to comment.