func init_() error { r := C.nvmlInit_dl() if r == C.NVML_ERROR_LIBRARY_NOT_FOUND { return errors.New("could not load NVML library") } return errorString(r) }
func Init() error { if err := C.nvmlInit_dl(); err != nil { return errors.New(C.GoString(err)) } return nvmlErr(C.nvmlInit()) }