-
Notifications
You must be signed in to change notification settings - Fork 905
ci: Add CUDA 13.1 CI container support #2465
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
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8b09767
Add cu131 container in CI build
bkryu 9249b58
Add missing dockerfile for 131
bkryu 19ee57a
Update cuda-python version
bkryu 61e30af
Wildcard versioning for cuda-python and update cudnn dependence for 13.1
bkryu a37bdca
Nightly torch 131
bkryu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "CUDA Development Container", | ||
| "build": { | ||
| "dockerfile": "../../docker/Dockerfile.cu131.dev", | ||
| "context": "../../" | ||
| }, | ||
| "runArgs": [ | ||
| "--gpus=all" | ||
| ], | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "llvm-vs-code-extensions.vscode-clangd", | ||
| "ms-python.python", | ||
| "nvidia.nsight-vscode-edition", | ||
| "xaver.clang-format", | ||
| "charliermarsh.ruff", | ||
| "matangover.mypy" | ||
| ] | ||
| } | ||
| }, | ||
| "mounts": [ | ||
| "type=bind,source=${localEnv:HOME}/.ssh,target=/home/devuser/.ssh,readonly" | ||
| ], | ||
| "remoteUser": "devuser" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| FROM nvidia/cuda:13.1.1-devel-ubuntu24.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| # Update package lists and install system dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| curl \ | ||
| git \ | ||
| wget | ||
|
|
||
| # Install python | ||
| COPY docker/install/install_python.sh /install/install_python.sh | ||
| RUN bash /install/install_python.sh /opt/conda py312 | ||
|
|
||
| # Set home directory | ||
| WORKDIR /workspace | ||
|
|
||
| RUN echo "source activate py312" >> ~/.bashrc | ||
| ENV PATH="/opt/conda/bin:$PATH" | ||
| ENV PATH="/opt/conda/envs/py312/bin:$PATH" | ||
|
|
||
| # Triton | ||
| ENV TRITON_PTXAS_PATH="/usr/local/cuda/bin/ptxas" | ||
|
|
||
| # Install torch and other python packages | ||
| COPY requirements.txt /install/requirements.txt | ||
| COPY docker/install/install_python_packages.sh /install/install_python_packages.sh | ||
| # use nightly/cu131 temporarily and change to cu131 when torch releases stable version | ||
| RUN bash /install/install_python_packages.sh nightly/cu131 | ||
|
|
||
| # Install mpi4py in the conda environment | ||
| RUN conda install -n py312 -y mpi4py mpich | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| FROM nvidia/cuda:13.1.1-devel-ubuntu24.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| # Update package lists and install system dependencies | ||
| RUN apt-get update && apt-get install -y \ | ||
| curl \ | ||
| git \ | ||
| wget \ | ||
| clang-format \ | ||
| clangd-19 \ | ||
| vim \ | ||
| zsh \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Create a non-root user | ||
| ARG USERNAME=devuser | ||
| ARG USER_UID=1003 | ||
| ARG USER_GID=$USER_UID | ||
|
|
||
| # Create the user | ||
| RUN groupadd --gid $USER_GID $USERNAME \ | ||
| && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
| # [Optional] Add sudo support | ||
| && apt-get update \ | ||
| && apt-get install -y sudo \ | ||
| && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
| && chmod 0440 /etc/sudoers.d/$USERNAME \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
bkryu marked this conversation as resolved.
|
||
|
|
||
| # Remove default 'ubuntu' user (UID 1000) to prevent devcontainer permission conflicts | ||
| # Ref: https://github.com/rapidsai/devcontainers/pull/373 | ||
| RUN if grep ubuntu:x:1000:1000 /etc/passwd >/dev/null; then userdel -f -r ubuntu; fi | ||
|
|
||
| # Switch to non-root user | ||
| USER $USERNAME | ||
| WORKDIR /home/$USERNAME | ||
|
|
||
| # Install python | ||
| COPY docker/install/install_python.sh /install/install_python.sh | ||
| RUN bash /install/install_python.sh /home/$USERNAME/conda py312 | ||
|
|
||
| RUN echo "source activate py312" >> ~/.bashrc | ||
| ENV PATH="/home/$USERNAME/conda/bin:$PATH" | ||
| ENV PATH="/home/$USERNAME/conda/envs/py312/bin:$PATH" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| # Install torch and other python packages | ||
| COPY requirements.txt /install/requirements.txt | ||
| COPY docker/install/install_python_packages.sh /install/install_python_packages.sh | ||
| # use nightly/cu131 temporarily and change to cu131 when torch releases stable version | ||
| RUN bash /install/install_python_packages.sh nightly/cu131 && pip3 install pre-commit | ||
|
|
||
| # Install mpi4py in the conda environment | ||
| RUN conda install -n py312 -y mpi4py mpich | ||
|
|
||
| # Install oh-my-zsh | ||
| RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | ||
|
|
||
| # Install zsh-autosuggestions | ||
| RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | ||
|
|
||
| # Configure zsh | ||
| RUN sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="fino-time"/' ~/.zshrc && \ | ||
| sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions)/' ~/.zshrc | ||
|
|
||
| # clangd | ||
| ENV PATH="/usr/lib/llvm-19/bin:$PATH" | ||
|
|
||
| # Triton | ||
| ENV TRITON_PTXAS_PATH="/usr/local/cuda/bin/ptxas" | ||
|
|
||
| # Set zsh as default shell | ||
| ENV SHELL=/bin/zsh | ||
| CMD [ "zsh" ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.