MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / validate

Method validate

cmd/nvidia-validator/main.go:1068–1087  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1066}
1067
1068func (g *GDRCopy) validate() error {
1069 // delete driver status file if already present
1070 err := deleteStatusFile(outputDirFlag + "/" + gdrCopyStatusFile)
1071 if err != nil {
1072 return err
1073 }
1074
1075 err = g.runValidation(false)
1076 if err != nil {
1077 log.Info("gdrcopy driver is not ready")
1078 return err
1079 }
1080
1081 // create driver status file
1082 err = createStatusFile(outputDirFlag + "/" + gdrCopyStatusFile)
1083 if err != nil {
1084 return err
1085 }
1086 return nil
1087}
1088
1089func (g *GDRCopy) runValidation(silent bool) error {
1090 // check for gdrdrv module to be loaded

Callers 1

validateComponentFunction · 0.95

Calls 3

runValidationMethod · 0.95
deleteStatusFileFunction · 0.85
createStatusFileFunction · 0.85

Tested by

no test coverage detected