-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build CUDA 12.8 docker image for packaging
- Loading branch information
1 parent
35fd2c9
commit cdfccf8
Showing
7 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 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,54 @@ | ||
# Docker image: mlc-ai/package-vulkan | ||
|
||
FROM quay.io/pypa/manylinux_2_28_x86_64 | ||
|
||
# install core | ||
COPY install/almalinux_install_core.sh /install/almalinux_install_core.sh | ||
RUN bash /install/almalinux_install_core.sh | ||
|
||
# install cmake | ||
COPY install/almalinux_install_cmake.sh /install/almalinux_install_cmake.sh | ||
RUN bash /install/almalinux_install_cmake.sh | ||
|
||
# install llvm | ||
COPY install/almalinux_install_llvm.sh /install/almalinux_install_llvm.sh | ||
RUN bash /install/almalinux_install_llvm.sh | ||
|
||
# install cuda | ||
COPY install/almalinux_install_cuda_128.sh /install/almalinux_install_cuda.sh | ||
RUN bash /install/almalinux_install_cuda.sh | ||
ENV CUDA_HOME=/usr/local/cuda | ||
ENV PATH=${CUDA_HOME}/bin:${PATH} | ||
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${PATH} | ||
|
||
# install vulkan sdk | ||
COPY install/almalinux_install_vulkan_sdk.sh /install/almalinux_install_vulkan_sdk.sh | ||
RUN bash /install/almalinux_install_vulkan_sdk.sh | ||
|
||
# upgrade patchelf due to the bug in patchelf 0.10 | ||
# see details at https://stackoverflow.com/questions/61007071/auditwheel-repair-not-working-as-expected | ||
COPY install/almalinux_install_patchelf.sh /install/almalinux_install_patchelf.sh | ||
RUN bash /install/almalinux_install_patchelf.sh | ||
|
||
# Install Conda | ||
COPY install/almalinux_install_conda.sh /install/almalinux_install_conda.sh | ||
RUN bash /install/almalinux_install_conda.sh | ||
ENV PATH=/opt/conda/bin:${PATH} | ||
|
||
# Install Python | ||
RUN conda create -n py39 python=3.9 -y | ||
RUN conda create -n py310 python=3.10 -y | ||
RUN conda create -n py311 python=3.11 -y | ||
RUN conda create -n py312 python=3.12 -y | ||
RUN conda create -n py313 python=3.13 -y | ||
COPY install/almalinux_install_python_package.sh /install/almalinux_install_python_package.sh | ||
RUN bash /install/almalinux_install_python_package.sh | ||
|
||
# Install auditwheel | ||
COPY install/almalinux_install_auditwheel.sh /install/almalinux_install_auditwheel.sh | ||
RUN bash /install/almalinux_install_auditwheel.sh | ||
ENV AUDITWHEEL_PLAT=manylinux_2_28_x86_64 | ||
|
||
# Install Rust | ||
COPY install/almalinux_install_rust.sh /install/almalinux_install_rust.sh | ||
RUN bash /install/almalinux_install_rust.sh |
This file contains 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,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
dnf install epel-release -y | ||
dnf update -y | ||
rpm -q epel-release | ||
yum config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo | ||
sed -i '2imodule_hotfixes=1' /etc/yum.repos.d/cuda-rhel8.repo | ||
dnf install kernel-devel -y | ||
dnf install cuda-12-8 -y | ||
|
||
NCCL_VERSION=$(dnf --showduplicates list libnccl | grep "cuda12.8" | tail -1 | awk '{print $2}') | ||
dnf install libnccl-$NCCL_VERSION libnccl-devel-$NCCL_VERSION libnccl-static-$NCCL_VERSION -y | ||
dnf install nvshmem -y |
This file contains 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 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 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 |
---|---|---|
|
@@ -169,6 +169,7 @@ def main(): | |
"cuda-12.2", | ||
"cuda-12.3", | ||
"cuda-12.4", | ||
"cuda-12.8", | ||
"rocm-6.1", | ||
"rocm-6.2", | ||
], | ||
|