You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@LambdaHJ this changes the behaviour between calling nvmlInit from C directly or using the go bindings. I think with #69 ensuring that multiple calls to dl.New() and Open() return the same underlying handle, we don't need to wrap the entire call in sync.Once.
The call to Init() should always forward to nvmlInit(), but we could consider wrapping the other logic in sync.Once. Feel free to propose a PR for review.
I don't think we want to prevent someone from shutting down and reinitializing NVML without restarting their program. This would be required, for example, if someone were to reload the nvidia kernel module.
Like this
The text was updated successfully, but these errors were encountered: