From cc688f7c75602b52fb8cda94fb24d800d8576b40 Mon Sep 17 00:00:00 2001 From: Evan Lezar <7723350-elezar@users.noreply.gitlab.com> Date: Mon, 8 Jan 2024 11:42:42 +0000 Subject: [PATCH] Merge branch 'log-requested-mode' into 'main' Log explicitly requested runtime mode See merge request nvidia/container-toolkit/container-toolkit!527 --- CHANGELOG.md | 1 + internal/info/auto.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc74bf23..ee60beb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Include `nvidia/nvoptix.bin` in list of graphics mounts. * Include `vulkan/icd.d/nvidia_layers.json` in list of graphics mounts. * Fixed bug in `nvidia-ctk config` command when using `--set`. The types of applied config options are now applied correctly. +* Log explicitly requested runtime mode. ## v1.14.3 * [toolkit-container] Bump CUDA base image version to 12.2.2. diff --git a/internal/info/auto.go b/internal/info/auto.go index 760d33d9..a99b35b9 100644 --- a/internal/info/auto.go +++ b/internal/info/auto.go @@ -63,6 +63,7 @@ func ResolveAutoMode(logger logger.Interface, mode string, image image.CUDA) (rm // resolveMode determines the correct mode for the platform if set to "auto" func (r resolver) resolveMode(mode string, image image.CUDA) (rmode string) { if mode != "auto" { + r.logger.Infof("Using requested mode '%s'", mode) return mode } defer func() {