mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Log explicitly requested runtime mode
For users running the nvidia-container-runtime it would be useful to determine the runtime mode used from the logs directly instead of relying on other log messages as signals. This change ensures that an explicitly selected mode is also logged instead of only when mode=auto. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user