func DriverGetVersion() (driverVersion, err int) { var cDriverVersion, cErr C.int cErr = C.int(C.cuDriverGetVersion(&cDriverVersion)) driverVersion = int(cDriverVersion) err = int(cErr) return }
// Returns the CUDA driver version. func Version() int { var version C.int err := Result(C.cuDriverGetVersion(&version)) if err != SUCCESS { panic(err) } return int(version) }