Trying to build an older version of DALI

I’m having problems building an older version of DALI (v1.0.0) from GitHub - NVIDIA/DALI: A GPU-accelerated library containing highly optimized building blocks and an execution engine for data processing to accelerate deep learning training and inference applications.. I’ve created a branch of the v1.0.0 tag. I get the following error when I use the command:

PYVER=3.8.10 CUDA_VERSION=11.2 BUILD_TEST=OFF BUILD_BENCHMARK=OFF ./build.sh
#0 13.58 Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
#0 13.84 Setting up python3-software-properties (0.96.24.32.20) ...
#0 13.96 Setting up software-properties-common (0.96.24.32.20) ...
#0 14.07 Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
#0 14.07 Processing triggers for dbus (1.12.2-1ubuntu1.4) ...
#0 14.17 Warning: apt-key output should not be parsed (stdout is not a terminal)
#0 14.31 OK
#0 14.80 Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
#0 14.81 Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
#0 14.83 Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
#0 14.87 Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease [1581 B]
#0 14.90 Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
#0 15.12 Err:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
#0 15.12   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
#0 15.20 Reading package lists...
#0 16.20 W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
#0 16.20 E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is not signed.
------
Dockerfile.cuda112.x86_64.deps:32
--------------------
  31 |     
  32 | >>> RUN NVJPEG2K_VERSION=0.2.0 && \
  33 | >>>     NVCOMP_VERSION=2.4 && \
  34 | >>>     apt-get update && \
  35 | >>>     apt-get install wget software-properties-common -y && \
  36 | >>>     wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
  37 | >>>     add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" && \
  38 | >>>     apt-key adv --keyserver developer.download.nvidia.com --recv-keys A4B469963BF863CC && \
  39 | >>>     apt-get update && \
  40 | >>>     apt-get install libnvjpeg2k0 libnvjpeg2k-dev -y && \
  41 | >>>     cp /usr/include/nvjpeg2k* /usr/local/cuda/include/ && \
  42 | >>>     cp /usr/lib/x86_64-linux-gnu/libnvjpeg2k* /usr/local/cuda/lib64/ && \
  43 | >>>     rm -rf /var/lib/apt/lists/* && \
  44 | >>>     mkdir nvcomp && \
  45 | >>>     cd nvcomp && \
  46 | >>>     wget https://developer.download.nvidia.com/compute/nvcomp/${NVCOMP_VERSION}/local_installers/nvcomp_install_CUDA_11.x.tgz && \
  47 | >>>     tar -xvf nvcomp*.tgz && \
  48 | >>>     cp -rv include/nvcomp* /usr/local/cuda/include/ && \
  49 | >>>     cp -v lib/*.so /usr/local/cuda/lib64/ && \
  50 | >>>     cd .. && \
  51 | >>>     rm -rf nvcomp
--------------------
ERROR: failed to solve: process "/bin/sh -c NVJPEG2K_VERSION=0.2.0 &&     NVCOMP_VERSION=2.4 &&     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 --keyserver developer.download.nvidia.com --recv-keys A4B469963BF863CC &&     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/* &&     mkdir nvcomp &&     cd nvcomp &&     wget https://developer.download.nvidia.com/compute/nvcomp/${NVCOMP_VERSION}/local_installers/nvcomp_install_CUDA_11.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" did not complete successfully: exit code: 100
user@syseng-3-dell-hpc:/rockshare/user/tniro/repos/DALI/docker$ PYVER=3.8.10 CUDA_VERSION=11.2 BUILD_TEST=OFF BUILD_BENCHMARK=OFF ./build.sh

The file https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub does exist. So I’m not sure if I’m missing something. Note that I’m able to build the main branch.

Thanks
Tony

I hacked the docker/Dockerfile.cuda112.x86_64.deps by adding
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC and got around this issue.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.