Skip to content

Commit

Permalink
add implicit pytorch dev depends (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi authored Jul 13, 2024
1 parent 723ee81 commit 09e2267
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockers/ubuntu-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,17 @@ RUN if [ "${TORCH_INSTALL}" == "source" ]; then \
CUDNN_PACKAGE_NAME="${CUDNN_VERSION}-1" && \
apt upgrade -y --allow-downgrades --allow-change-held-packages && \
apt install -y libcudnn9-cuda-${CUDA_VERSION_M}=${CUDNN_PACKAGE_NAME} \
libcudnn9-dev-cuda-${CUDA_VERSION_M}=${CUDNN_PACKAGE_NAME}; \
libcudnn9-dev-cuda-${CUDA_VERSION_M}=${CUDNN_PACKAGE_NAME} \
nlohmann-json3-dev ; \
else \
CUDA_VERSION_MM=${CUDA_VERSION%.*} && \
# There are some test failures from cuDNN 12.1, so 'upgrade' requests for 12.1 to 12.2. \
CUDA_VERSION_MM="${CUDA_VERSION_MM/12.1/12.2}" && \
CUDNN_PACKAGE_NAME="${CUDNN_VERSION}-1+cuda${CUDA_VERSION_MM}" && \
apt upgrade -y --allow-downgrades --allow-change-held-packages && \
apt install -y libcudnn8=${CUDNN_PACKAGE_NAME} \
libcudnn8-dev=${CUDNN_PACKAGE_NAME}; \
libcudnn8-dev=${CUDNN_PACKAGE_NAME} \
nlohmann-json3-dev ; \
fi && \
rm -rf /root/.cache && \
rm -rf /var/lib/apt/lists/*; \
Expand Down

0 comments on commit 09e2267

Please sign in to comment.