Merge branch 'log-requested-mode' into 'main'

Log explicitly requested runtime mode

See merge request nvidia/container-toolkit/container-toolkit!527
This commit is contained in:
Evan Lezar 2024-01-08 11:42:42 +00:00 committed by Evan Lezar
parent 7566eb124a
commit cc688f7c75
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
* Include `nvidia/nvoptix.bin` in list of graphics mounts. * Include `nvidia/nvoptix.bin` in list of graphics mounts.
* Include `vulkan/icd.d/nvidia_layers.json` 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. * 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 ## v1.14.3
* [toolkit-container] Bump CUDA base image version to 12.2.2. * [toolkit-container] Bump CUDA base image version to 12.2.2.

View File

@ -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" // resolveMode determines the correct mode for the platform if set to "auto"
func (r resolver) resolveMode(mode string, image image.CUDA) (rmode string) { func (r resolver) resolveMode(mode string, image image.CUDA) (rmode string) {
if mode != "auto" { if mode != "auto" {
r.logger.Infof("Using requested mode '%s'", mode)
return mode return mode
} }
defer func() { defer func() {