From 54d8cf7b185dfff56a70c26cbb460e0f5d2a12e6 Mon Sep 17 00:00:00 2001 From: "Shiva Krishna, Merla" Date: Tue, 27 Oct 2020 20:23:24 -0700 Subject: [PATCH] Ignore default constraints enabled in the cuda11 based images to allow DCGM to work with other driver versions below r450 Signed-off-by: Shiva Krishna, Merla --- docker/Dockerfile.ubi8 | 2 ++ docker/Dockerfile.ubuntu18.04 | 3 ++- docker/Dockerfile.ubuntu20.04 | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.ubi8 b/docker/Dockerfile.ubi8 index 5f42595..ab79f68 100644 --- a/docker/Dockerfile.ubi8 +++ b/docker/Dockerfile.ubi8 @@ -19,6 +19,8 @@ COPY --from=builder /go/src/github.com/NVIDIA/gpu-monitoring-tools/dcgm-exporter COPY etc/dcgm-exporter /etc/dcgm-exporter ENV NVIDIA_VISIBLE_DEVICES=all +# disable all constraints on the configurations required by NVIDIA container toolkit +ENV NVIDIA_DISABLE_REQUIRE="true" # Required for DCP metrics ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,compat32 diff --git a/docker/Dockerfile.ubuntu18.04 b/docker/Dockerfile.ubuntu18.04 index 993715d..8a7d76f 100644 --- a/docker/Dockerfile.ubuntu18.04 +++ b/docker/Dockerfile.ubuntu18.04 @@ -24,7 +24,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Required for DCP metrics ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,compat32 - +# disable all constraints on the configurations required by NVIDIA container toolkit +ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_VISIBLE_DEVICES=all ENV NO_SETCAP= diff --git a/docker/Dockerfile.ubuntu20.04 b/docker/Dockerfile.ubuntu20.04 index e806cdb..2c0ada0 100644 --- a/docker/Dockerfile.ubuntu20.04 +++ b/docker/Dockerfile.ubuntu20.04 @@ -24,7 +24,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Required for DCP metrics ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,compat32 - +# disable all constraints on the configurations required by NVIDIA container toolkit +ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_VISIBLE_DEVICES=all ENV NO_SETCAP=