diff --git a/internal/config/image/cuda_image.go b/internal/config/image/cuda_image.go index 1fe51c54..f7a6713b 100644 --- a/internal/config/image/cuda_image.go +++ b/internal/config/image/cuda_image.go @@ -148,9 +148,10 @@ func (i CUDA) GetDriverCapabilities() DriverCapabilities { } func (i CUDA) legacyVersion() (string, error) { - majorMinor, err := parseMajorMinorVersion(i[envCUDAVersion]) + cudaVersion := i[envCUDAVersion] + majorMinor, err := parseMajorMinorVersion(cudaVersion) if err != nil { - return "", fmt.Errorf("invalid CUDA version: %v", err) + return "", fmt.Errorf("invalid CUDA version %v: %v", cudaVersion, err) } return majorMinor, nil