Skip to content

Commit

Permalink
Enable nvJPEG2K for CUDA 11.2 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL committed Jan 14, 2021
1 parent fc408ef commit ab7489a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/Dockerfile.cuda112.x86_64.deps
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@ RUN curl -LO https://developer.download.nvidia.com/compute/cuda/11.2.0/local_ins
./cuda_*.run --silent --no-opengl-libs --toolkit && \
rm -f cuda_*.run;

RUN NVJPEG2K_VERSION=0.1.0 && \
apt-get update && \
apt-get install wget software-properties-common -y && \
wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" && \
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && \
apt-get update && \
apt-get install libnvjpeg2k0 libnvjpeg2k-dev -y && \
cp /usr/include/nvjpeg2k* /usr/local/cuda/include/ && \
cp /usr/lib/x86_64-linux-gnu/libnvjpeg2k* /usr/local/cuda/lib64/ && \
rm -rf /var/lib/apt/lists/*

FROM scratch
COPY --from=cuda /usr/local/cuda /usr/local/cuda

0 comments on commit ab7489a

Please sign in to comment.