INNER CODE UNIT · Go

func

NVIDIA/gpu-operator · cmd/nvidia-validator/main.go:845

func (d *Driver) runValidation(silent bool) (driverInfo, error) {
	err := validateHostDriver(silent)
	if err == nil {
		log.Info("Detected a pre-installed driver on the host")
		return getDriverInfo(true, hostRootFlag, hostRootFlag, "/host"), nil
	}

	log.Infof("No pre-installed driver detected on the host: %v", err)

	log.Info("Validating containerized driver installation")

	driverManagedByOperator, err := isDriverManagedByOperator(d.ctx)
	if err != nil {
		return driverInfo{}, fmt.Errorf("error checking if driver is managed by GPU Operator: %w", err)
	}

	err = validateDriverContainer(silent, driverManagedByOperator)
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…