-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Janusz Lisiecki <[email protected]>
- Loading branch information
Showing
5 changed files
with
76 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG TOOLKIT_BASE_IMAGE=ubuntu:20.04 | ||
FROM ${TOOLKIT_BASE_IMAGE} as cuda | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && apt install -y libxml2 curl perl gcc && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -LO https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda_12.8.0_570.86.10_linux_sbsa.run && \ | ||
chmod +x cuda_*.run && \ | ||
./cuda_*.run --silent --no-opengl-libs --toolkit && \ | ||
rm -f cuda_*.run; | ||
|
||
RUN NVJPEG2K_VERSION=0.8.1.40-1 && \ | ||
CUFILE_VERSION=1.13.0.11-1 && \ | ||
CUDA_VERSION_MAJOR=12 && \ | ||
CUDA_VERSION_MINOR=8 && \ | ||
apt-get update && \ | ||
apt-get install wget software-properties-common -y && \ | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/sbsa/3bf863cc.pub && \ | ||
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/sbsa/ /" && \ | ||
apt-get update && \ | ||
apt-get install libnvjpeg2k0-dev-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libnvjpeg2k0-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libnvjpeg2k0-static-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libcufile-dev-${CUDA_VERSION_MAJOR}-${CUDA_VERSION_MINOR}=${CUFILE_VERSION} -y && \ | ||
cp /usr/include/libnvjpeg2k/${CUDA_VERSION_MAJOR}/* /usr/local/cuda/include/ && \ | ||
cp /usr/lib/sbsa-linux-gnu/libnvjpeg2k/${CUDA_VERSION_MAJOR}/* /usr/local/cuda/lib64/ && \ | ||
rm -rf /var/lib/apt/lists/* |
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,38 @@ | ||
ARG TOOLKIT_BASE_IMAGE=ubuntu:20.04 | ||
FROM ${TOOLKIT_BASE_IMAGE} as cuda | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && apt install -y libxml2 curl perl gcc && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -LO https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda_12.8.0_570.86.10_linux.run && \ | ||
chmod +x cuda_*.run && \ | ||
./cuda_*.run --silent --no-opengl-libs --toolkit && \ | ||
rm -f cuda_*.run; | ||
|
||
RUN NVJPEG2K_VERSION=0.8.1.40-1 && \ | ||
CUFILE_VERSION=1.13.0.11-1 && \ | ||
NVCOMP_VERSION=2.6.1 && \ | ||
CUDA_VERSION_MAJOR=12 && \ | ||
CUDA_VERSION_MINOR=8 && \ | ||
apt-get update && \ | ||
apt-get install wget software-properties-common -y && \ | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub && \ | ||
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" && \ | ||
apt-get update && \ | ||
apt-get install libnvjpeg2k0-dev-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libnvjpeg2k0-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libnvjpeg2k0-static-cuda-${CUDA_VERSION_MAJOR}=${NVJPEG2K_VERSION} \ | ||
libcufile-dev-${CUDA_VERSION_MAJOR}-${CUDA_VERSION_MINOR}=${CUFILE_VERSION} -y && \ | ||
cp /usr/include/libnvjpeg2k/${CUDA_VERSION_MAJOR}/* /usr/local/cuda/include/ && \ | ||
cp /usr/lib/x86_64-linux-gnu/libnvjpeg2k/${CUDA_VERSION_MAJOR}/* /usr/local/cuda/lib64/ && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
mkdir nvcomp && \ | ||
cd nvcomp && \ | ||
wget https://developer.download.nvidia.com/compute/nvcomp/${NVCOMP_VERSION}/local_installers/nvcomp_${NVCOMP_VERSION}_x86_64_${CUDA_VERSION_MAJOR}.x.tgz && \ | ||
tar -xvf nvcomp*.tgz && \ | ||
cp -rv include/nvcomp* /usr/local/cuda/include/ && \ | ||
cp -v lib/*.so /usr/local/cuda/lib64/ && \ | ||
cd .. && \ | ||
rm -rf nvcomp |
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