-
Notifications
You must be signed in to change notification settings - Fork 6k
feat: Add CUDA 13.2 Dockerfile #78673
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,73 @@ | ||||||||||||||
| # A image for building paddle binaries | ||||||||||||||
| # Use cuda devel base image for both cpu and gpu environment | ||||||||||||||
| # When you modify it, please be aware of cudnn-runtime version | ||||||||||||||
| ARG CUDA_VERSION=13.2 | ||||||||||||||
| ARG BASE_TARGET=cuda${CUDA_VERSION} | ||||||||||||||
|
|
||||||||||||||
| FROM nvcr.io/nvidia/cuda:13.2.0-cudnn-devel-ubuntu24.04 as base | ||||||||||||||
| MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com> | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| # ENV variables | ||||||||||||||
| ARG WITH_GPU | ||||||||||||||
| ARG WITH_AVX | ||||||||||||||
| ARG PYTHON_VERSION=3.12 | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个镜像里是不是直接 3.14?@swgu98
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 得加 |
||||||||||||||
|
|
||||||||||||||
| ENV WITH_GPU=${WITH_GPU:-ON} | ||||||||||||||
| ENV WITH_AVX=${WITH_AVX:-ON} | ||||||||||||||
| ENV DEBIAN_FRONTEND=noninteractive | ||||||||||||||
| ENV LD_LIBRARY_PATH=/usr/local/cuda-${CUDA_VERSION}/compat:/usr/local/cuda-${CUDA_VERSION}/targets/x86_64-linux/lib:$LD_LIBRARY_PATH | ||||||||||||||
|
|
||||||||||||||
| ENV HOME /root | ||||||||||||||
|
|
||||||||||||||
| RUN apt-get update --allow-unauthenticated && \ | ||||||||||||||
|
||||||||||||||
| RUN apt-get update --allow-unauthenticated && \ | |
| RUN apt-get update && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nccl 应该打在镜像里吗?这里出问题,是不是因为 setup.py 里没有加 nvidia-nccl-cu13 依赖?@swgu98 @risemeup1
Copilot
AI
Apr 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMake is downloaded and extracted without any integrity verification (checksum/signature). To reduce supply-chain risk and improve reproducibility, pin and verify the tarball (e.g., SHA256) before extracting, or install CMake via a trusted package source.
| WORKDIR /home | |
| RUN wget -q https://cmake.org/files/v3.31/cmake-3.31.0-linux-x86_64.tar.gz && \ | |
| WORKDIR /home | |
| ARG CMAKE_SHA256=<PINNED_CMAKE_3_31_0_LINUX_X86_64_TAR_GZ_SHA256> | |
| RUN wget -q https://cmake.org/files/v3.31/cmake-3.31.0-linux-x86_64.tar.gz && \ | |
| echo "${CMAKE_SHA256} cmake-3.31.0-linux-x86_64.tar.gz" | sha256sum -c - && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header comment grammar: "A image" should be "An image".