Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added cuda installation to the GPU dockerfile for paddlepaddle to work in the image #28554

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docker/DockerfileGPU
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ RUN apt-get update && \
pip3 install setuptools==58.5.3


# install cuda 12.2
RUN wget https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda-repo-debian10-12-2-local_12.2.0-535.54.03-1_amd64.deb && \
dpkg -i cuda-repo-debian10-12-2-local_12.2.0-535.54.03-1_amd64.deb && \
cp /var/cuda-repo-debian10-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/ && \
add-apt-repository contrib && \
apt-get update && \
apt-get -y install cuda && \
rm cuda-repo-debian10-12-2-local_12.2.0-535.54.03-1_amd64.deb
ENV LD_LIBRARY_PATH=/usr/local/cuda-12.2


# install cudnn
RUN wget https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.0.0.312_cuda12-archive.tar.xz && \
tar -xf cudnn-linux-x86_64-9.0.0.312_cuda12-archive.tar.xz && \
cp cuda/include/cudnn.h /usr/local/cuda-12.2/include && \
cp cuda/lib64/libcudnn* /usr/local/cuda-12.2/lib64 && \
chmod a+r /usr/local/cuda-12.2/include/cudnn.h


# install Ivy Upstream
RUN git clone --progress --recurse-submodules https://github.com/unifyai/ivy --depth 1 && \
cd ivy && \
Expand Down
Loading